Skip to content

Commit faa7588

Browse files
authored
fixes Plasma Fixation causing a lot of runtimes in mice (#6595)
1 parent 67ff930 commit faa7588

File tree

1 file changed

+8
-11
lines changed
  • monkestation/code/modules/virology/disease/symtoms/helpful

1 file changed

+8
-11
lines changed

monkestation/code/modules/virology/disease/symtoms/helpful/plasma_heal.dm

+8-11
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
max_chance = 45
2121
badness = EFFECT_DANGER_HELPFUL
2222
severity = 0
23-
23+
2424
var/passive_message = span_notice("You feel an odd attraction to plasma.")
2525
var/temp_rate = 1
2626

@@ -79,7 +79,7 @@
7979
return TRUE
8080
return FALSE
8181

82-
/datum/symptom/plasma_heal/proc/Heal(mob/living/carbon/M, actual_power)
82+
/datum/symptom/plasma_heal/proc/Heal(mob/living/M, actual_power)
8383
var/heal_amt = BASE_HEAL_PLASMA_FIXATION * actual_power
8484

8585
if(prob(5))
@@ -95,17 +95,14 @@
9595
if(prob(5))
9696
to_chat(M, span_notice("You feel warmer."))
9797

98+
9899
M.adjustToxLoss(-heal_amt)
99100

100-
var/list/parts = M.get_damaged_bodyparts(1,1, BODYTYPE_ORGANIC)
101-
if(!parts.len)
102-
return
103-
if(prob(5))
104-
to_chat(M, span_notice("The pain from your wounds fades rapidly."))
105-
for(var/obj/item/bodypart/L in parts)
106-
if(L.heal_damage(heal_amt/parts.len, heal_amt/parts.len, BODYTYPE_ORGANIC))
107-
M.update_damage_overlays()
108-
return 1
101+
if(M.getBruteLoss_nonProsthetic() > 0 || M.getFireLoss_nonProsthetic() > 0)
102+
M.heal_overall_damage(brute = heal_amt, burn = heal_amt, required_bodytype = BODYTYPE_ORGANIC)
103+
if(prob(5))
104+
to_chat(M, span_notice("The pain from your wounds fades rapidly."))
105+
return TRUE
109106

110107
///Plasma End
111108
#undef HEALING_PER_MOL

0 commit comments

Comments
 (0)