Fixes resin stacking & allows lasers to pass through resin (#28842)

* Fixes resin stacking
Lets you shoot through Resin with lasers!

* Small code cleanup

* TRUE
This commit is contained in:
Ergovisavi
2017-06-27 09:29:26 -04:00
committed by Jordan Brown
parent 930b15e625
commit a08aa9e3a2
2 changed files with 8 additions and 0 deletions
@@ -276,6 +276,10 @@
for(var/obj/item/Item in O)
Item.extinguish()
/obj/structure/foamedmetal/resin/CanPass(atom/movable/mover, turf/target, height)
if(istype(mover) && mover.checkpass(PASSGLASS))
return TRUE
. = ..()
#undef ALUMINUM_FOAM
#undef IRON_FOAM
@@ -295,6 +295,10 @@
if(nozzle_mode == RESIN_FOAM)
if(!Adj|| !isturf(target))
return
for(var/S in target)
if(istype(S, /obj/effect/particle_effect/foam/metal/resin) || istype(S, /obj/structure/foamedmetal/resin))
to_chat(user, "<span class='warning'>There's already resin here!</span>")
return
if(metal_synthesis_cooldown < 5)
var/obj/effect/particle_effect/foam/metal/resin/F = new (get_turf(target))
F.amount = 0