Files
wylab-station-14/Content.Server
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
..
2025-12-14 02:04:28 +00:00
2025-08-03 21:20:37 +02:00
2025-08-19 09:42:54 +02:00
2025-11-14 22:10:09 +00:00
2025-11-30 13:58:39 +00:00
2025-09-09 18:17:56 +02:00
2025-12-08 01:10:28 +00:00
2025-10-25 14:40:48 +00:00
2025-04-18 13:45:48 +10:00
2025-04-19 11:38:22 +10:00
2025-04-19 16:20:40 +10:00
2025-09-17 23:59:07 +02:00
2025-06-21 11:23:19 -04:00
2025-08-03 21:20:37 +02:00
2025-02-14 16:46:25 +01:00
2025-10-04 11:24:42 +00:00
2025-10-25 14:40:48 +00:00
2025-09-25 23:33:28 +02:00
2025-06-23 13:32:56 +02:00
2025-09-01 18:24:37 +03:00
2025-08-03 21:20:37 +02:00
2025-03-13 10:09:07 -07:00
2025-05-20 01:08:55 -04:00
2025-08-03 21:20:37 +02:00
2025-08-03 21:20:37 +02:00
2025-09-25 23:33:28 +02:00
2025-04-10 22:19:48 -07:00
2025-08-03 21:20:37 +02:00
2025-09-09 18:17:56 +02:00
2025-11-30 10:25:22 +00:00
2025-10-25 14:40:48 +00:00
2025-09-17 23:59:07 +02:00
2025-11-08 20:55:02 +00:00
2025-06-21 11:23:19 -04:00
2025-04-19 16:20:40 +10:00
2025-06-07 17:51:38 +02:00
2025-10-04 11:24:42 +00:00
2025-11-23 05:14:12 -08:00
2025-11-30 10:25:22 +00:00
2025-08-03 21:20:37 +02:00
2025-11-14 22:10:09 +00:00
2025-07-17 12:34:00 -04:00
2025-10-25 14:40:48 +00:00
2025-09-24 01:32:20 +02:00
2025-12-01 12:21:52 +00:00
2025-11-08 20:55:02 +00:00
2025-07-10 04:39:34 +02:00
2025-12-07 02:35:46 +00:00
2025-08-03 21:20:37 +02:00
2025-06-23 02:40:55 +02:00
2025-09-09 18:17:56 +02:00
2025-11-14 22:10:09 +00:00