Delta-v/Content.Shared/EntityEffects
Samuka 29aceb4e03 Move logic from EvenHealthChangeEntityEffectSystem to the damage system API (#41684)
* add two methods

* move stuff to damage system api

* use TryIndex

* simplify

* minor fix

* add helper functions

* fix

* remove random new line

* simplify

* remove unnecessary lines

* rename to GetDamage

* Got it working

* make more clear

* why backwards

* value should be the amount to heal

* fix

* fix all dumb fixedpoint2 edge cases I hope

* One more thing

* fix

* make it more simple

* ops it was backwards

* valueHeal can't be more than remaining

* add all keys beforehand and no need to check and add them inside the loop

* break for loop in case remaining is zero

* comment was wrong

* optimized, works

* remove random spaces

---------

Co-authored-by: Princess Cheeseballs <66055347+Pronana@users.noreply.github.com>
2026-04-04 16:56:52 +02:00
..
Effects Move logic from EvenHealthChangeEntityEffectSystem to the damage system API (#41684) 2026-04-04 16:56:52 +02:00
EntityEffect.cs Fix Entity Effect Scaling (Hopefully) for good and some other misc fixes (#41163) 2025-12-29 11:39:36 -06:00
EntityEffectEvent.cs Predict DestructibleSystem Part 2: First batch of entity effects (#41039) 2025-12-29 11:39:30 -06:00
SharedEntityEffectsSystem.cs Fix Entity Effect Scaling (Hopefully) for good and some other misc fixes (#41163) 2025-12-29 11:39:36 -06:00