-
Notifications
You must be signed in to change notification settings - Fork 290
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Port over regen modifiers #1558
Port over regen modifiers #1558
Conversation
* Added moddable regeneration-modifers system for monsters Co-authored-by: mrpal <parchiele@gmail.com> Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com> Co-authored-by: Kevin Granade <kevin.granade@gmail.com>
a14fc1a
to
e4069db
Compare
Effect Intensity affects reduction
For whatever reason it was comparing to maxhp instead of current HP.
This won't "stack" on body parts as it does on players, might look into that another time.
359b685
to
ca67666
Compare
It's a bit hard to test with current UI because it doesn't show the heal amounts, but onfire+corroding sludge crawlers are clearly less able to regenerate than healthy ones, so it works. |
Yeah, for the duration of my testing I had it print the results from the heal function, it's how I learned that it doesn't function as intended. |
Summary
SUMMARY: Balance "Allow regeneration to be modified by effects."
Purpose of change
Regenerating monsters currently don't push for smart approaches, preferring a more dakka approach that doesn't really encourage any kind of tactics.
Describe the solution
Port over #50439 from DDA which extends regeneration and allows effects like on fire, corroding and the like to modify the amount healed.
Change it to multiply regeneration by specific amount instead, instead of a flat addition/reduction, which should be more comfortable to use.
Describe alternatives you've considered
Disable regen entirely under specific effects.
Testing
Spawned Debug Monster, used molotovs/acid bombs to set them on fire/give them acid burns. Tested that amount of reduction was appropriate, and that multipliers were being used correctly.
Additional context
Fixed several issues while I was at it. For one, heal function wasn't returning the amount healed but rather the difference between current hp and max hp. Furthermore, monsters did not suffer from the Corroding condition, meaning I couldn't trigger the effects of regeneration modifiers on them.
Finally, this should allow us to bump up regen on more monsters, like the experimental mutant that only regens 1 HP per turn, or even dissoluted devourers. That said, before we start doing this we need more and better ways to apply burning/corroding to monsters. Incendiary rounds seem somewhat unsatisfactory and acid bombs also make it near impossible to enter the area if you're melee or want to loot the corpse.