Open Chickenudoom opened 9 years ago
I can check that out
So after a little bit of investigating:
Not sure what the behavior will be like when you have positive regen and hit max toxicity... Game might assume it's always negative. Might have to add a bit of new logic to deal with this.
OTHER OPTIONS: on drinking a potion, add a new toxicity effect with custom values for duration and strength (positive value). There is at least one place that assumes there is only one toxicity effect at a time (PlayerAbilityManager OnToxicityChanged()), so this might require changes elsewhere.
create a new effect for toxicity regen. Add a new effect of this type whenever you drink a potion.
I'm too tired to code right now... had a long week. but this should hopefully help!
We need a script that adds +2 toxicityRegen for every potion/decoction the player consumes - I've tried my hand at this, but with no luck. :(
I'll attach the script with this comment, maybe one of you guys can tweak it so it actually works?? I had to convert it to a .txt file for it to upload correctly. Ctrl+F "chicken" and you'll see my changes.
toxicity.txt