mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2025-12-20 23:21:20 +00:00
Cores can now be locked and unlocked by a verb. Locked cores cannot be removed by anyone. Cores automatically unlock if the wearer dies or otherwise stops existing for some reason. Healing spells now induce a flat instability cost on the healer instead of it being split between healer and healed. The amount healed is greatly increased if used on someone besides the healer. Mend Organs is now called Great Mend Wounds, and now heals broken bones, IB, eye damage, and blood loss in addition to internal organs. Radiating instability (the purple glow) now gives a warning to people afflicted. Instability discounts should start applying correctly for specific cores. Instability now affects all living mobs and not just humans. This includes borgs and simple animals. Phase shift now adds ongoing instability while hiding inside the rift. Projectile spells should be logged now. Wards last forever, and should not die in vacuum now. Restoration aura is now green colored and not blue. Simple mobs and cyborgs are now harmed by lightning.
28 lines
1.1 KiB
Plaintext
28 lines
1.1 KiB
Plaintext
/datum/technomancer/spell/shared_burden
|
|
name = "Shared Burden"
|
|
desc = "One of the few functions able to adjust instability, this allows you to take someone else's instability."
|
|
cost = 50
|
|
obj_path = /obj/item/weapon/spell/shared_burden
|
|
category = SUPPORT_SPELLS
|
|
|
|
/obj/item/weapon/spell/shared_burden
|
|
name = "shared burden"
|
|
icon_state = "shared_burden"
|
|
desc = "Send instability from the target to you, for whatever reason you'd want to."
|
|
cast_methods = CAST_MELEE
|
|
aspect = ASPECT_UNSTABLE
|
|
|
|
/obj/item/weapon/spell/shared_burden/on_melee_cast(atom/hit_atom, mob/living/user, def_zone)
|
|
if(ishuman(hit_atom))
|
|
var/mob/living/carbon/human/H = hit_atom
|
|
if(H == user)
|
|
user << "<span class='warning'>Draining instability out of you to put it back seems a bit pointless.</span>"
|
|
return 0
|
|
if(!H.instability)
|
|
user << "<span class='warning'>\The [H] has no instability to drain.</span>"
|
|
return 0
|
|
if(pay_energy(500))
|
|
var/instability_to_drain = min(H.instability, 25)
|
|
user << "<span class='notice'>You draw instability away from \the [H] and towards you.</span>"
|
|
adjust_instability(instability_to_drain)
|
|
H.adjust_instability(-instability_to_drain) |