mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 18:22:39 +00:00
44 lines
1.7 KiB
Plaintext
44 lines
1.7 KiB
Plaintext
/datum/technomancer/spell/mend_life
|
|
name = "Mend Life"
|
|
desc = "Heals minor wounds, such as cuts, bruises, burns, and other non-lifethreatening injuries. \
|
|
Instability is split between the target and technomancer, if seperate. The function will end prematurely \
|
|
if the target is completely healthy, preventing further instability."
|
|
spell_power_desc = "Healing amount increased."
|
|
cost = 50
|
|
obj_path = /obj/item/weapon/spell/modifier/mend_life
|
|
ability_icon_state = "tech_mendwounds"
|
|
category = SUPPORT_SPELLS
|
|
|
|
/obj/item/weapon/spell/modifier/mend_life
|
|
name = "mend life"
|
|
desc = "Watch your wounds close up before your eyes."
|
|
icon_state = "mend_life"
|
|
cast_methods = CAST_MELEE
|
|
aspect = ASPECT_BIOMED
|
|
light_color = "#FF5C5C"
|
|
modifier_type = /datum/modifier/technomancer/mend_life
|
|
modifier_duration = 10 SECONDS
|
|
|
|
/datum/modifier/technomancer/mend_life
|
|
name = "mend life"
|
|
desc = "You feel rather refreshed."
|
|
mob_overlay_state = "green_sparkles"
|
|
|
|
on_created_text = "<span class='warning'>Sparkles begin to appear around you, and you feel really.. refreshed.</span>"
|
|
on_expired_text = "<span class='notice'>The sparkles have faded, although you feel healthier than before.</span>"
|
|
stacks = MODIFIER_STACK_EXTEND
|
|
|
|
/datum/modifier/technomancer/mend_life/tick()
|
|
if(holder.isSynthetic()) // Don't heal synths!
|
|
expire()
|
|
return
|
|
if(!holder.getBruteLoss() && !holder.getFireLoss()) // No point existing if the spell can't heal.
|
|
expire()
|
|
return
|
|
holder.adjustBruteLoss(-4 * spell_power) // Should heal roughly 20 burn/brute over 10 seconds, as tick() is run every 2 seconds.
|
|
holder.adjustFireLoss(-4 * spell_power) // Ditto.
|
|
holder.adjust_instability(1)
|
|
if(origin)
|
|
var/mob/living/L = origin.resolve()
|
|
if(istype(L))
|
|
L.adjust_instability(1) |