fish-station/Content.Shared/Damage/Systems
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
..
DamageableSystem.API.cs Move logic from EvenHealthChangeEntityEffectSystem to the damage system API (#41684) 2025-12-14 22:31:15 +00:00
DamageableSystem.BenchmarkHelpers.cs Update DamageableSystem to modern standards (#39417) 2025-10-27 19:53:04 +00:00
DamageableSystem.cs Update DamageableSystem to modern standards (#39417) 2025-10-27 19:53:04 +00:00
DamageableSystem.Events.cs Update DamageableSystem to modern standards (#39417) 2025-10-27 19:53:04 +00:00
DamageContactsSystem.cs Damaged by contact fix (#31921) 2024-09-07 17:46:24 -06:00
DamageExamineSystem.cs Optimization! 2024-11-10 00:45:54 -06:00
DamageOnAttackedSystem.cs Update DamageableSystem to modern standards (#39417) 2025-10-27 19:53:04 +00:00
DamageOnHighSpeedImpactSystem.cs Stunnable New Status and Cleanup (#38618) 2025-07-21 19:22:11 +02:00
DamageOnHoldingSystem.cs replace all uses of TryGetContainingContainer with non-obsolete overload (#30583) 2024-08-04 15:38:53 +10:00
DamageOnInteractSystem.cs Update DamageableSystem to modern standards (#39417) 2025-10-27 19:53:04 +00:00
DamagePopupSystem.cs Target Dummies Now Show Damage Numbers from Projectiles to User (#40101) 2025-09-23 10:20:46 -07:00
DamageProtectionBuffSystem.cs Add haloperidol, potassium iodide (#27454) 2024-08-03 03:12:08 +10:00
PassiveDamageSystem.cs Update DamageableSystem to modern standards (#39417) 2025-10-27 19:53:04 +00:00
RequireProjectileTargetSystem.cs Update DamageableSystem to modern standards (#39417) 2025-10-27 19:53:04 +00:00
SharedDamageOtherOnHitSystem.cs Predict damage examine (#40168) 2025-10-10 23:23:26 +00:00
SharedGodmodeSystem.cs Update DamageableSystem to modern standards (#39417) 2025-10-27 19:53:04 +00:00
SharedStaminaSystem.cs Change stamina slowdown to use a percentage-based threshold (#41691) 2025-12-03 21:55:04 +00:00
SharedStaminaSystem.Modifier.cs StaminaSystem to SharedStaminaSystem (#37199) 2025-05-06 12:39:05 -04:00
SharedStaminaSystem.Resistance.cs StaminaSystem to SharedStaminaSystem (#37199) 2025-05-06 12:39:05 -04:00
SlowOnDamageSystem.cs Update DamageableSystem to modern standards (#39417) 2025-10-27 19:53:04 +00:00