From d39089c42c5364cedf83cf65a55b2eb43b15e0c5 Mon Sep 17 00:00:00 2001
From: TDSSS <32099540+TDSSS@users.noreply.github.com>
Date: Wed, 10 Feb 2021 19:26:50 +0100
Subject: [PATCH] More stealthy fake walls (#15130)
* stealthy fake falls
* Comment adjustment
---
code/game/objects/structures/false_walls.dm | 16 ++++++++++++++++
code/game/turfs/simulated/walls.dm | 2 +-
2 files changed, 17 insertions(+), 1 deletion(-)
diff --git a/code/game/objects/structures/false_walls.dm b/code/game/objects/structures/false_walls.dm
index 78213cc7418..f00d36463c9 100644
--- a/code/game/objects/structures/false_walls.dm
+++ b/code/game/objects/structures/false_walls.dm
@@ -39,6 +39,18 @@
. = ..()
air_update_turf(1)
+/obj/structure/falsewall/examine_status(mob/user)
+ var/healthpercent = (obj_integrity/max_integrity) * 100
+ switch(healthpercent)
+ if(100)
+ return "It looks fully intact."
+ if(70 to 99)
+ return "It looks slightly damaged."
+ if(40 to 70)
+ return "It looks moderately damaged."
+ if(0 to 40)
+ return "It looks heavily damaged."
+
/obj/structure/falsewall/ratvar_act()
new /obj/structure/falsewall/brass(loc)
qdel(src)
@@ -161,6 +173,10 @@
walltype = /turf/simulated/wall/r_wall
mineral = /obj/item/stack/sheet/plasteel
+/obj/structure/falsewall/reinforced/examine_status(mob/user)
+ . = ..()
+ . += "
The outer grille is fully intact." //not going to fake other states of disassembly
+
/obj/structure/falsewall/reinforced/ChangeToWall(delete = 1)
var/turf/T = get_turf(src)
T.ChangeTurf(/turf/simulated/wall/r_wall)
diff --git a/code/game/turfs/simulated/walls.dm b/code/game/turfs/simulated/walls.dm
index 7de2a45c8d8..6b8e5affdd1 100644
--- a/code/game/turfs/simulated/walls.dm
+++ b/code/game/turfs/simulated/walls.dm
@@ -51,7 +51,7 @@
. = ..()
//Appearance
-/turf/simulated/wall/examine(mob/user)
+/turf/simulated/wall/examine(mob/user) //If you change this, consider changing the examine_status proc of false walls to match
. = ..()
if(!damage)