Files
Aurora.3/code/modules/spells/aoe_turf/disable_tech.dm
Mykhailo Bykhovtsev 5f9a4ac859 More bugfixes (#4752)
Made generic empulse_exclusive which takes list of atoms that needs to be excluded.

Wizard disable technology(emp) spell uses empulse_exclusive with caster being excluded from being EMPed. This will allow IPC wizard not damage themselves with cast. But it will still damage other wizard IPCs.

Added screwdriver, crowbar and a wrench to janitor's closet. Fixed #4755

Replaced turrets in ERT ready room with cencomm check turrets. Fixed #4742
2018-05-17 22:38:26 +03:00

34 lines
813 B
Plaintext

/spell/aoe_turf/disable_tech
name = "Disable Tech"
desc = "This spell disables all weapons, cameras and most other technology in range."
feedback = "DT"
charge_max = 400
spell_flags = NEEDSCLOTHES
invocation = "NEC CANTIO"
invocation_type = SpI_SHOUT
selection_type = "range"
range = 0
inner_radius = -1
cast_sound = 'sound/magic/Disable_Tech.ogg'
cooldown_min = 200 //50 deciseconds reduction per rank
var/emp_heavy = 3
var/emp_light = 5
hud_state = "wiz_tech"
/spell/aoe_turf/disable_tech/cast(list/targets, mob/user)
for(var/turf/target in targets)
empulse(get_turf(target), emp_heavy, emp_light, log = TRUE, exclude = list(user))
return
/spell/aoe_turf/disable_tech/empower_spell()
if(!..())
return 0
emp_heavy += 2
emp_light += 2
return "You've increased the range of [src]."