mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-22 20:43:10 +01:00
Broken windows now drop all their materials when shattered (#14861)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user