mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-15 12:43:13 +00:00
36 lines
1.1 KiB
Plaintext
36 lines
1.1 KiB
Plaintext
/datum/technomancer/spell/haste
|
|
name = "Haste"
|
|
desc = "Allows the target to run at speeds that should not be possible for an ordinary being. For five seconds, the target \
|
|
runs extremly fast, and cannot be slowed by any means."
|
|
spell_power_desc = "Duration is scaled up."
|
|
cost = 100
|
|
obj_path = /obj/item/weapon/spell/insert/haste
|
|
ability_icon_state = "tech_haste"
|
|
category = SUPPORT_SPELLS
|
|
|
|
/obj/item/weapon/spell/insert/haste
|
|
name = "haste"
|
|
desc = "Now you can outrun a Teshari!"
|
|
icon_state = "haste"
|
|
cast_methods = CAST_RANGED
|
|
aspect = ASPECT_FORCE
|
|
light_color = "#FF5C5C"
|
|
inserting = /obj/item/weapon/inserted_spell/haste
|
|
|
|
/obj/item/weapon/inserted_spell/haste/on_insert()
|
|
spawn(1)
|
|
if(isliving(host))
|
|
var/mob/living/L = host
|
|
L.force_max_speed = 1
|
|
L << "<span class='notice'>You suddenly find it much easier to move.</span>"
|
|
L.adjust_instability(10)
|
|
spawn(round(5 SECONDS * spell_power_at_creation, 1))
|
|
if(src)
|
|
on_expire()
|
|
|
|
/obj/item/weapon/inserted_spell/haste/on_expire()
|
|
if(isliving(host))
|
|
var/mob/living/L = host
|
|
L.force_max_speed = 0
|
|
L << "<span class='warning'>You feel slow again.</span>"
|
|
..() |