Broken windows now drop all their materials when shattered (#14861)

This commit is contained in:
Jaraci
2022-10-25 12:03:01 +02:00
committed by GitHub
parent ecb2e77fa6
commit a527c73f6e
2 changed files with 16 additions and 11 deletions
+3 -11
View File
@@ -697,18 +697,10 @@
playsound(src, /decl/sound_category/glass_break_sound, 70, 1)
if(display_message)
visible_message(SPAN_WARNING("\The [src] shatters!"))
if(dir == SOUTHWEST)
var/index = null
index = 0
while(index < 2)
new shardtype(loc)
if(reinf)
new /obj/item/stack/rods(loc)
index++
else
if(reinf)
new /obj/item/stack/rods(loc, 4)
for(var/i = 1 to 4)
new shardtype(loc)
if(reinf)
new /obj/item/stack/rods(loc)
qdel(src)
return