mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 18:32:03 +00:00
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
13 lines
452 B
Plaintext
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
|