mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-24 00:51:26 +00:00
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
34 lines
813 B
Plaintext
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]."
|