-
-
Notifications
You must be signed in to change notification settings - Fork 444
/
Copy pathstop_time.dm
32 lines (26 loc) · 1.07 KB
/
stop_time.dm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/datum/action/cooldown/spell/timestop
name = "Stop Time"
desc = "This spell stops time for everyone except for you, \
allowing you to move freely while your enemies and even projectiles are frozen."
button_icon_state = "time"
school = SCHOOL_FORBIDDEN // Fucking with time is not appreciated by anyone
cooldown_time = 50 SECONDS
cooldown_reduction_per_rank = 10 SECONDS
invocation = "TOKI YO TOMARE!"
invocation_type = INVOCATION_SHOUT
/// The radius / range of the time stop.
var/timestop_range = 2
/// The duration of the time stop.
var/timestop_duration = 10 SECONDS
///The timestop effect we use
var/timestop_effect = /obj/effect/timestop/wizard
/datum/action/cooldown/spell/timestop/Grant(mob/grant_to)
. = ..()
if(owner)
ADD_TRAIT(owner, TRAIT_TIME_STOP_IMMUNE, REF(src))
/datum/action/cooldown/spell/timestop/Remove(mob/remove_from)
REMOVE_TRAIT(remove_from, TRAIT_TIME_STOP_IMMUNE, REF(src))
return ..()
/datum/action/cooldown/spell/timestop/cast(atom/cast_on)
. = ..()
new timestop_effect(get_turf(cast_on), timestop_range, timestop_duration, list(cast_on))