Removes unused parameter times_fired from mob procs (#94590)

## About The Pull Request
What it says on the tin. `times_fired` is the most unused parameter in
all mob procs. I say most because there were just 2 cases where it was
used
- handling breathing
- handling heartbeat

Besides these 2 cases this parameter did nothing in every proc. Removing
it does 2 things
- Makes those procs more readable as it now has 1 less parameter that
was documented poorly and did nothing
- Makes those procs slightly faster as we are passing 1 less variable to
its parameter call stack

It can easily be substituted with `SSmobs.times_fired` which was its
original value anyways

## Changelog
🆑
code: removes an unused parameter `times_fired` from mob life procs.
Making them function slightly faster
/🆑
This commit is contained in:
SyncIt21
2025-12-26 20:21:33 +05:30
committed by GitHub
parent 8b5cb8f2dd
commit 7c5ef1cfb8
168 changed files with 742 additions and 744 deletions
+1 -1
View File
@@ -163,7 +163,7 @@
return
AddElement(/datum/element/attack_zone_randomiser)
/mob/living/basic/Life(seconds_per_tick = SSMOBS_DT, times_fired)
/mob/living/basic/Life(seconds_per_tick = SSMOBS_DT)
. = ..()
if(staminaloss > 0)
adjust_stamina_loss(-stamina_recovery * seconds_per_tick, forced = TRUE)