Modify Prototypes
Posted: Sat Oct 05, 2019 8:35 pm
Hey, I want to add new variables to entities and items to work with. These values need to be preserved for the thing's entire life, from item to entity and back, and when stacked in an inventory.
Just went through the modding tutorial so I'm pretty new; ways I'm thinking this would have to be done are:
A: Add new variables to the prototype that all the things I want to affect inherit from.
B: Check all prototypes after they are created and if they are of type x or y or z, add the new variables to them.
I'm not sure which loading stage these could/should be done at either?
Thanks for any help!
Just went through the modding tutorial so I'm pretty new; ways I'm thinking this would have to be done are:
A: Add new variables to the prototype that all the things I want to affect inherit from.
B: Check all prototypes after they are created and if they are of type x or y or z, add the new variables to them.
I'm not sure which loading stage these could/should be done at either?
Thanks for any help!