Reinforced windows and windoors are a bit more resistant to fires and blasts

- Regular windows/windoors: 1073k
- Reinforced windows/windoors: 1873k
- Reinforced windows/windoors will count as walls for blast range calculation (The lowest possible value)
This commit is contained in:
Ikarrus
2015-07-13 23:31:34 -06:00
parent b284e44df4
commit 2bc5fd2db9
4 changed files with 21 additions and 2 deletions
+4 -1
View File
@@ -9,6 +9,7 @@
flags = ON_BORDER
opacity = 0
var/obj/item/weapon/airlock_electronics/electronics = null
var/reinf = 0
/obj/machinery/door/window/New()
..()
@@ -184,7 +185,7 @@
..()
/obj/machinery/door/window/temperature_expose(datum/gas_mixture/air, exposed_temperature, exposed_volume)
if(exposed_temperature > T0C + 800)
if(exposed_temperature > T0C + (reinf ? 1600 : 800))
take_damage(round(exposed_volume / 200))
..()
@@ -380,6 +381,8 @@
base_state = "leftsecure"
var/id = null
health = 300.0 //Stronger doors for prison (regular window door health is 200)
reinf = 1
explosion_block = 1
/obj/machinery/door/window/northleft
+8
View File
@@ -102,6 +102,10 @@
if(D.density && D.explosion_block)
dist += D.explosion_block
for(var/obj/structure/window/W in Trajectory)
if(W.reinf && W.fulltile)
dist += W.explosion_block
var/flame_dist = 0
var/throw_dist = dist
@@ -205,6 +209,10 @@
if(D.density && D.explosion_block)
dist += D.explosion_block
for(var/obj/structure/window/W in TT)
if(W.explosion_block && W.fulltile)
dist += W.explosion_block
if(dist < dev)
T.color = "red"
T.maptext = "Dev"
+3 -1
View File
@@ -409,7 +409,7 @@
overlays += crack_overlay
/obj/structure/window/temperature_expose(datum/gas_mixture/air, exposed_temperature, exposed_volume)
if(exposed_temperature > T0C + 800)
if(exposed_temperature > T0C + (reinf ? 1600 : 800))
hit(round(exposed_volume / 100), 0)
..()
@@ -421,6 +421,7 @@
icon_state = "rwindow"
reinf = 1
maxhealth = 50
explosion_block = 1
/obj/structure/window/reinforced/tinted
name = "tinted window"
@@ -472,3 +473,4 @@
reinf = 1
smooth = 1
canSmoothWith = null
explosion_block = 1
+6
View File
@@ -0,0 +1,6 @@
author: Ikarrus
delete-after: True
changes:
- tweak: "Reinforced windows and windoors are a bit more resistant to fires and blasts."