mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-20 07:02:05 +00:00
Blobs can destroy atmospherics tanks, very slowly.
This commit is contained in:
@@ -99,6 +99,10 @@
|
|||||||
if(GR)
|
if(GR)
|
||||||
qdel(GR)
|
qdel(GR)
|
||||||
return
|
return
|
||||||
|
var/obj/structure/tank_wall/TW = locate() in T
|
||||||
|
if(TW)
|
||||||
|
TW.take_damage(rand(5,20))
|
||||||
|
return
|
||||||
for(var/obj/machinery/door/D in T) // There can be several - and some of them can be open, locate() is not suitable
|
for(var/obj/machinery/door/D in T) // There can be several - and some of them can be open, locate() is not suitable
|
||||||
if(D.density)
|
if(D.density)
|
||||||
attack_door(D)
|
attack_door(D)
|
||||||
|
|||||||
@@ -8,6 +8,7 @@
|
|||||||
icon_state = "m-1"
|
icon_state = "m-1"
|
||||||
|
|
||||||
atmos_canpass = CANPASS_DENSITY
|
atmos_canpass = CANPASS_DENSITY
|
||||||
|
var/health = 1000
|
||||||
|
|
||||||
/obj/structure/tank_wall/Initialize(mapload)
|
/obj/structure/tank_wall/Initialize(mapload)
|
||||||
. = ..()
|
. = ..()
|
||||||
@@ -22,6 +23,12 @@
|
|||||||
update_nearby_tiles()
|
update_nearby_tiles()
|
||||||
return ..()
|
return ..()
|
||||||
|
|
||||||
|
/obj/structure/tank_wall/proc/take_damage(var/damage)
|
||||||
|
health -= damage
|
||||||
|
if(health <= 0)
|
||||||
|
visible_message(SPAN_WARNING("\The [src] falls apart!"))
|
||||||
|
qdel(src)
|
||||||
|
|
||||||
/obj/structure/tank_wall/phoron
|
/obj/structure/tank_wall/phoron
|
||||||
name = "phoron gas tank"
|
name = "phoron gas tank"
|
||||||
desc = "An impact resistant tank to safely contain highly pressurised gasses. This one contains phoron."
|
desc = "An impact resistant tank to safely contain highly pressurised gasses. This one contains phoron."
|
||||||
|
|||||||
Reference in New Issue
Block a user