Skip to content

Commit

Permalink
change
Browse files Browse the repository at this point in the history
  • Loading branch information
InsaneRed committed Mar 19, 2024
1 parent 63f1d67 commit e4c4a50
Showing 1 changed file with 13 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -828,9 +828,6 @@
if (!X.Adjacent(A))
to_chat(X, SPAN_XENODANGER("We must be within touching distance of [targetXeno]!"))
return
if(istype(targetXeno.strain, /datum/xeno_strain/warden))
to_chat(X, SPAN_XENODANGER("We cannot heal a sister of the same strain!"))
return
if (SEND_SIGNAL(targetXeno, COMSIG_XENO_PRE_HEAL) & COMPONENT_CANCEL_XENO_HEAL)
to_chat(X, SPAN_XENOWARNING("We cannot heal this xeno!"))
return
Expand All @@ -847,15 +844,25 @@
if (!behavior.use_internal_hp_ability(bonus_heal))
bonus_heal = 0



to_chat(X, SPAN_XENODANGER("We heal [targetXeno]!"))
to_chat(targetXeno, SPAN_XENOHIGHDANGER("We are healed by [X]!"))
targetXeno.gain_health(heal_amount + bonus_heal)
//Amount to heal in this cast of the ability
var/quantity_healed = heal_amount
if(istype(targetXeno.strain, /datum/xeno_strain/warden))
// Half the healing if warden
quantity_healed = quantity_healed / 2
else
quantity_healed = quantity_healed + bonus_heal

targetXeno.gain_health(quantity_healed)
targetXeno.visible_message(SPAN_BOLDNOTICE("[X] places its claws on [targetXeno], and its wounds are quickly sealed!")) //marines probably should know if a xeno gets healed
X.gain_health(heal_amount*0.5 + bonus_heal*0.5)
X.flick_heal_overlay(3 SECONDS, "#00B800")
behavior.transferred_healing += heal_amount
behavior.transferred_healing += quantity_healed
use_plasma = TRUE //it's already hard enough to gauge health without hp showing on the mob
targetXeno.flick_heal_overlay(3 SECONDS, "#00B800")//so the visible_message and recovery overlay will warn marines and possibly predators that the xenomorph has been healed!
targetXeno.flick_heal_overlay(3 SECONDS, "#00B800")//so the visible_message and recovery overlay will warn marines and possibly predators that the xenomorph has been healed!rn marines and possibly predators that the xenomorph has been healed!

else if (curr_effect_type == WARDEN_HEAL_DEBUFFS)
if (X.observed_xeno != null)
Expand Down

0 comments on commit e4c4a50

Please sign in to comment.