There are static readonly string arrays in a few places that hinder or directly prevent the ability to mod certain things.
the most prominent one is TUNING.DUPLICANTSTATS.ALL_ATTRIBUTES / TUNING.DUPLICANTSTATS.DISTRIBUTED_ATTRIBUTES (and while at it, also APTITUDE_ATTRIBUTE_BONUSES).
When trying to add a custom minion attribute, the method MinionStartingStats.GenerateAttributes() will throw the error "Need to add " + skillAptitude.Key.relevantAttributes[index].Id + " to TUNING.DUPLICANTSTATS.ALL_ATTRIBUTES", this is however impossible to do since that array is readonly.
This is also the case for Shower.EffectsRemoved, Clinic.EffectsRemoved and MassageTable.EffectsRemoved, however here it is just inconvenient to patch around instead of straight up making things impossible.
Could the readonly flag on these arrays be removed so it becomes easier/possible to mod these things?
Thanks in advance
Try adding a new (modded) value to one of the mentioned arrays via harmony patching - notice it is impossible
-
1
A developer has marked this issue as fixed. This means that the issue has been addressed in the current development build and will likely be in the next update.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now