RimWorld-ReplaceStuff
RimWorld-ReplaceStuff copied to clipboard
Is it possible to keep the reference to oldThing if it's being replaced by more than one newThing?
One of the things I want to support in my Compatibility mod is replacing the larger (2x4
) Planters from Vanilla Furniture Expanded - Farming
with 2 regular (1x4
) Hydroponics bays. Moving over the grown plant setting is easy enough, but it only moves it over for the first item. I'm assuming that's because when the first Hydroponics is built, the Planter is deconstructed and so when the second Hydroponics is built there's no reference to the original Planter to get it's plant setting anymore.
I couldn't see a way myself but I was hoping you'd have more insight, but I'm wondering if it's possible to either fire an action when the blueprint is placed so I can store a reference to the plant type then or if it's possible to hold onto the original objects settings after despawn for a certain amount of time.