erdelf / AlienRaces

Rimworld mod alien race framework
MIT License
103 stars 69 forks source link

Dev #106

Open Ashilstraza opened 5 months ago

Ashilstraza commented 5 months ago

Code finagling to allow for hot reloading of defs without HAR choking and throwing up errors.

An override on the comp was added that is called once a hot reload has been completed. This then calls a new method that contains all the race restriction list code that normally gets run on startup after patching has been done. This recreates the lists in case something had changed in a race.

An additional change to the default offsets was included to prevent the offsets being added multiple times if it gets called more than once.

Apologies about the random format differences that snuck in.

Ashilstraza commented 5 months ago

Reverted the offsetDefaults change since it was not needed anymore and would cause unintended issues