-
-
Notifications
You must be signed in to change notification settings - Fork 444
/
Copy paththe_traps.dm
35 lines (28 loc) · 993 Bytes
/
the_traps.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
33
34
35
/datum/action/cooldown/spell/conjure/the_traps
name = "The Traps!"
desc = "Summon a number of traps around you. They will damage and enrage any enemies that step on them."
button_icon_state = "the_traps"
cooldown_time = 25 SECONDS
cooldown_reduction_per_rank = 5 SECONDS
invocation = "CAVERE INSIDIAS"
invocation_type = INVOCATION_SHOUT
summon_radius = 3
summon_type = list(
/obj/structure/trap/stun,
/obj/structure/trap/fire,
/obj/structure/trap/chill,
/obj/structure/trap/damage,
)
summon_lifespan = 5 MINUTES
summon_amount = 5
/// The amount of charges the traps spawn with.
var/trap_charges = 1
/datum/action/cooldown/spell/conjure/the_traps/post_summon(atom/summoned_object, atom/cast_on)
if(!istype(summoned_object, /obj/structure/trap))
return
var/obj/structure/trap/summoned_trap = summoned_object
summoned_trap.charges = trap_charges
if(ismob(cast_on))
var/mob/mob_caster = cast_on
if(mob_caster.mind)
summoned_trap.immune_minds += owner.mind