From 800f1c8c33bb1be7005ce95c985ce06277bb40d6 Mon Sep 17 00:00:00 2001 From: Geeves Date: Mon, 23 Nov 2020 14:14:27 +0200 Subject: [PATCH] Floorlike Lattices (#10384) --- code/_helpers/turfs.dm | 6 +++++- html/changelogs/geeves-construction_stuff.yml | 6 ++++++ 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 html/changelogs/geeves-construction_stuff.yml diff --git a/code/_helpers/turfs.dm b/code/_helpers/turfs.dm index 4e3a88538c7..d13bb2e6004 100644 --- a/code/_helpers/turfs.dm +++ b/code/_helpers/turfs.dm @@ -10,7 +10,11 @@ return (istype(T, /turf/simulated/wall) || istype(T, /turf/unsimulated/wall)) /proc/isfloor(turf/T) - return (istype(T, /turf/simulated/floor) || istype(T, /turf/unsimulated/floor)) + if(locate(/obj/structure/lattice) in T) + return TRUE + else if(istype(T, /turf/simulated/floor) || istype(T, /turf/unsimulated/floor)) + return TRUE + return FALSE //Edit by Nanako diff --git a/html/changelogs/geeves-construction_stuff.yml b/html/changelogs/geeves-construction_stuff.yml new file mode 100644 index 00000000000..163df7388e3 --- /dev/null +++ b/html/changelogs/geeves-construction_stuff.yml @@ -0,0 +1,6 @@ +author: Geeves + +delete-after: True + +changes: + - tweak: "Lattices, catwalks, and grates are now considered floors, which allows you to build certain structures such as railings, on top of them." \ No newline at end of file