mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-01-03 22:22:31 +00:00
This had no fucking reason to exist, Shadowling spells are not wizard spells, genetics powers are not wizard spells, ghost Booing is not a wizard spell, etc.
25 lines
769 B
Plaintext
25 lines
769 B
Plaintext
/obj/effect/proc_holder/spell/aoe_turf/knock
|
|
name = "Knock"
|
|
desc = "This spell opens nearby doors and does not require wizard garb."
|
|
|
|
school = "transmutation"
|
|
charge_max = 100
|
|
clothes_req = 0
|
|
invocation = "AULIE OXIN FIERA"
|
|
invocation_type = "whisper"
|
|
range = 3
|
|
cooldown_min = 20 //20 deciseconds reduction per rank
|
|
|
|
action_icon_state = "knock"
|
|
|
|
/obj/effect/proc_holder/spell/aoe_turf/knock/cast(list/targets)
|
|
for(var/turf/T in targets)
|
|
for(var/obj/machinery/door/door in T.contents)
|
|
spawn(1)
|
|
if(istype(door,/obj/machinery/door/airlock/hatch/gamma))
|
|
return
|
|
if(istype(door,/obj/machinery/door/airlock))
|
|
var/obj/machinery/door/airlock/A = door
|
|
A.unlock(1) //forced because it's magic!
|
|
door.open()
|
|
return |