mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-29 07:59:01 +01:00
Refactor Get Pain (#22847)
This PR refactors get_pain() to be essentially performance free. Previously it was a member of the top 5 most expensive procs. I had to touch a metric shitton of files to make this happen. Notably get_pain() was also 1/3rd of the entire processing cost for Mobs - Life
This commit is contained in:
@@ -108,7 +108,7 @@
|
||||
to_chat(user, SPAN_NOTICE("You flow your regenerative psionic energy through the flesh of their [external_organ.name]..."))
|
||||
if(!do_mob(user, H, 10 SECONDS / effect_multiplier) || !pay_energy(20))
|
||||
return
|
||||
external_organ.heal_damage(external_organ.get_brute_damage(), external_organ.get_burn_damage(), internal = FALSE, robo_repair = FALSE)
|
||||
external_organ.heal_damage(LIMB_GET_BRUTE_DAMAGE(external_organ), LIMB_GET_BURN_DAMAGE(external_organ), internal = FALSE, robo_repair = FALSE)
|
||||
to_chat(user, SPAN_NOTICE("You mend their [external_organ.name]'s flesh."))
|
||||
for(var/datum/wound/W as anything in external_organ.wounds)
|
||||
if(LAZYLEN(W.embedded_objects))
|
||||
|
||||
Reference in New Issue
Block a user