mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-13 09:05:11 +01:00
Merge pull request #14669 from xxalpha/shingles
Objects under rwindows don't break.
This commit is contained in:
@@ -11,7 +11,6 @@
|
||||
var/health = 10
|
||||
var/destroyed = 0
|
||||
var/obj/item/stack/rods/stored
|
||||
level = 3
|
||||
|
||||
/obj/structure/grille/New()
|
||||
stored = new/obj/item/stack/rods(src)
|
||||
|
||||
@@ -58,20 +58,11 @@
|
||||
spawnfragments()
|
||||
return
|
||||
|
||||
|
||||
/obj/structure/window/ex_act(severity, target)
|
||||
switch(severity)
|
||||
if(1)
|
||||
qdel(src)
|
||||
return
|
||||
if(2)
|
||||
spawnfragments()
|
||||
return
|
||||
if(3)
|
||||
if(prob(50))
|
||||
spawnfragments()
|
||||
return
|
||||
|
||||
if(severity == 1)
|
||||
qdel(src)
|
||||
else
|
||||
spawnfragments()
|
||||
|
||||
/obj/structure/window/blob_act()
|
||||
spawnfragments()
|
||||
@@ -308,7 +299,7 @@
|
||||
return
|
||||
|
||||
/obj/structure/window/proc/spawnfragments()
|
||||
if(!loc) //if already qdel'd somehow, we do nothing
|
||||
if(qdeleted())
|
||||
return
|
||||
var/turf/T = loc
|
||||
for(var/obj/item/I in storeditems)
|
||||
@@ -454,6 +445,16 @@
|
||||
maxhealth = 50
|
||||
explosion_block = 1
|
||||
|
||||
/obj/structure/window/reinforced/ex_act(severity, target)
|
||||
switch(severity)
|
||||
if(1)
|
||||
qdel(src)
|
||||
if(2)
|
||||
spawnfragments()
|
||||
if(3)
|
||||
if(prob(50))
|
||||
spawnfragments()
|
||||
|
||||
/obj/structure/window/reinforced/tinted
|
||||
name = "tinted window"
|
||||
icon_state = "twindow"
|
||||
|
||||
Reference in New Issue
Block a user