fish-station/Content.Shared/Damage
Samuka 12b9e3735b
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>
2025-12-14 22:31:15 +00:00
..
Components Change stamina slowdown to use a percentage-based threshold (#41691) 2025-12-03 21:55:04 +00:00
Events Predict damage examine (#40168) 2025-10-10 23:23:26 +00:00
ForceSay Added Pain Numbness Trait (#34538) 2025-01-27 11:34:20 +01:00
Prototypes Update DamageableSystem to modern standards (#39417) 2025-10-27 19:53:04 +00:00
Systems Move logic from EvenHealthChangeEntityEffectSystem to the damage system API (#41684) 2025-12-14 22:31:15 +00:00
DamageModifierSet.cs Update DamageableSystem to modern standards (#39417) 2025-10-27 19:53:04 +00:00
DamageSpecifier.cs Update DamageableSystem to modern standards (#39417) 2025-10-27 19:53:04 +00:00
DamageSpecifierDictionarySerializer.cs Add SaveLoadSavePrototype test (#18859) 2023-08-08 17:27:16 +10:00
DamageVisualizerKeys.cs Cleanup the namespaces (#8132) 2022-05-13 17:59:03 +10:00