Files
vgstation13/code/modules/spells/construct_spells.dm
MadmanMartian 7b33cd990c Holy futureproofing (#21024)
Rather than several istype(I, /obj/item/weapon/nullrod), now it uses macros

Two macros:

 - Isholyweapon: Used when checking if something is being struck by something holy
 - Isholyprotection: Used when checking if there's something holy that may protect the user
2018-12-13 15:12:00 +01:00

13 lines
452 B
Plaintext

//////////////////////////////Construct Spells/////////////////////////
proc/findNullRod(var/atom/target)
if(isholyprotection(target))
var/turf/T = get_turf(target)
T.turf_animation('icons/effects/96x96.dmi',"nullding",-WORLD_ICON_SIZE,-WORLD_ICON_SIZE,MOB_LAYER+1,'sound/instruments/piano/Ab7.ogg',anim_plane = EFFECTS_PLANE)
return 1
else if(target.contents)
for(var/atom/A in target.contents)
if(findNullRod(A))
return 1
return 0