mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
Related: Cleans up airlock Topic() Power and electricity is now also handled by process instead of sleeps(). Wires, remote door controls, etc. now use airlock procs instead of manhandling variables directly.
21 lines
608 B
Plaintext
21 lines
608 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
|
|
|
|
/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))
|
|
var/obj/machinery/door/airlock/A = door
|
|
A.unlock(1) //forced because it's magic!
|
|
door.open()
|
|
return
|