mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-23 16:42:13 +00:00
38 lines
1.1 KiB
Plaintext
38 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 extremely fast, and cannot be slowed by any means."
|
|
cost = 100
|
|
obj_path = /obj/item/spell/modifier/haste
|
|
ability_icon_state = "tech_haste"
|
|
category = SUPPORT_SPELLS
|
|
|
|
/obj/item/spell/modifier/haste
|
|
name = "haste"
|
|
desc = "Now you can outrun a Tajara!"
|
|
icon_state = "haste"
|
|
cast_methods = CAST_RANGED
|
|
aspect = ASPECT_FORCE
|
|
light_color = "#FF5C5C"
|
|
modifier_type = /datum/modifier/technomancer/haste
|
|
modifier_duration = 5 SECONDS
|
|
|
|
/datum/modifier/technomancer/haste
|
|
on_created_text = "<span class='notice'>You suddenly find it much easier to move.</span>"
|
|
on_expired_text = "<span class='warning'>You feel slow again.</span>"
|
|
|
|
/datum/modifier/technomancer/haste/activate()
|
|
. = ..()
|
|
if(ishuman(target))
|
|
var/mob/living/carbon/human/H = target
|
|
H.move_delay_mod += -0.8
|
|
H.sprint_cost_factor += -0.2
|
|
|
|
/datum/modifier/technomancer/haste/deactivate()
|
|
. = ..()
|
|
if(ishuman(target))
|
|
var/mob/living/carbon/human/H = target
|
|
H.move_delay_mod += 0.8
|
|
H.sprint_cost_factor += 0.2
|
|
|