Files
CHOMPStation2/code/modules/spells/aoe_turf/knock.dm
CHOMPStation2StaffMirrorBot 65f21fb1d3 [MIRROR] end of file Fix (#10355)
Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
2025-03-11 17:58:14 +01:00

46 lines
1.1 KiB
Plaintext

/spell/aoe_turf/knock
name = "Knock"
desc = "This spell opens nearby doors and does not require wizard garb."
school = "transmutation"
charge_max = 100
spell_flags = 0
invocation = "AULIE OXIN FIERA"
invocation_type = SpI_WHISPER
range = 3
cooldown_min = 20 //20 deciseconds reduction per rank
hud_state = "wiz_knock"
/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/AL = door //casting is important
AL.locked = 0
door.open()
return
/* Moved to game/gamemodes/cult/construct_spells.dm.
//Construct version
/spell/aoe_turf/knock/harvester
name = "Disintegrate Doors"
desc = "No door shall stop you."
spell_flags = CONSTRUCT_CHECK
charge_max = 100
invocation = ""
invocation_type = "silent"
range = 5
hud_state = "const_knock"
/spell/aoe_turf/knock/harvester/cast(list/targets)
for(var/turf/T in targets)
for(var/obj/machinery/door/door in T.contents)
spawn door.cultify()
return
*/