Skip to content

Commit

Permalink
overheals
Browse files Browse the repository at this point in the history
  • Loading branch information
Diegoflores31 committed Aug 1, 2024
1 parent d6250fb commit e9cc8e1
Showing 1 changed file with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,14 @@
macro_path = /datum/action/xeno_action/verb/verb_apply_salve
action_type = XENO_ACTION_CLICK
ability_primacy = XENO_PRIMARY_ACTION_3
xeno_cooldown = 1 SECONDS

/datum/action/xeno_action/activable/apply_salve/use_ability(atom/target_atom)
if(!action_cooldown_check())
return
var/mob/living/carbon/xenomorph/xeno = owner
xeno.xeno_apply_salve(target_atom, health_transfer_amount, max_range, damage_taken_mod)
apply_cooldown()
return ..()

/datum/action/xeno_action/verb/verb_apply_salve()
Expand Down Expand Up @@ -124,9 +128,9 @@
adjustBruteLoss(amount * damage_taken_mod)
use_plasma(amount * 2)
updatehealth()
new /datum/effects/heal_over_time(target_xeno, amount, 10, 1)
target_xeno.xeno_jitter(1 SECONDS)
target_xeno.flick_heal_overlay(10 SECONDS, "#00be6f")
new /datum/effects/heal_over_time(target_xeno, heal_amount = amount)
target_xeno.xeno_jitter(5 SECONDS)
target_xeno.flick_heal_overlay(1 SECONDS, "#00be6f")
to_chat(target_xeno, SPAN_XENOWARNING("[src] covers our wounds with a regenerative resin salve. We feel reinvigorated!"))
to_chat(src, SPAN_XENOWARNING("We regurgitate our vital fluids and some plasma to create a regenerative resin salve and apply it to [target_xeno]'s wounds. We feel weakened..."))
playsound(src, "alien_drool", 25)
Expand All @@ -135,7 +139,7 @@
if(!target_is_healer && !isfacehugger(target_xeno)) // no cheap grinding
healer_delegate.modify_transferred(amount * damage_taken_mod)
update_icons()
addtimer(CALLBACK(healer_delegate, /datum/behavior_delegate/drone_healer/proc/un_salve), 10 SECONDS, TIMER_OVERRIDE|TIMER_UNIQUE)
addtimer(CALLBACK(healer_delegate, /datum/behavior_delegate/drone_healer/proc/un_salve), 5 SECONDS, TIMER_OVERRIDE|TIMER_UNIQUE)

/datum/behavior_delegate/drone_healer
name = "Healer Drone Behavior Delegate"
Expand Down

0 comments on commit e9cc8e1

Please sign in to comment.