mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-01-06 07:32:15 +00:00
Conflicts: code/game/machinery/doors/airlock.dm code/game/machinery/doors/airlock_control.dm code/game/machinery/embedded_controller/docking_program.dm code/modules/shuttles/shuttle.dm nano/css/shared.css
22 lines
694 B
Plaintext
22 lines
694 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
|
|
|
|
/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))
|
|
door:unlock(1) //forced because it's magic!
|
|
door.open()
|
|
return |