From 98418c7f875751a9596eb6a9357f2fb8fc95c7e8 Mon Sep 17 00:00:00 2001 From: Ghommie Date: Thu, 4 Jul 2019 21:54:20 +0200 Subject: [PATCH] [s] ports "Fixes infinite brass generation exploit" --- code/game/turfs/simulated/floor/misc_floor.dm | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/code/game/turfs/simulated/floor/misc_floor.dm b/code/game/turfs/simulated/floor/misc_floor.dm index bff955086c..253a6ead90 100644 --- a/code/game/turfs/simulated/floor/misc_floor.dm +++ b/code/game/turfs/simulated/floor/misc_floor.dm @@ -144,6 +144,7 @@ barefootstep = FOOTSTEP_HARD_BAREFOOT clawfootstep = FOOTSTEP_HARD_CLAW heavyfootstep = FOOTSTEP_GENERIC_HEAVY + var/dropped_brass var/uses_overlay = TRUE var/obj/effect/clockwork/overlay/floor/realappearence @@ -201,7 +202,10 @@ return /turf/open/floor/clockwork/crowbar_act(mob/living/user, obj/item/I) - if(baseturfs == type) + if(islist(baseturfs)) + if(type in baseturfs) + return TRUE + else if(baseturfs == type) return TRUE user.visible_message("[user] begins slowly prying up [src]...", "You begin painstakingly prying up [src]...") if(I.use_tool(src, user, 70, volume=80)) @@ -210,7 +214,14 @@ return TRUE /turf/open/floor/clockwork/make_plating() - new /obj/item/stack/tile/brass(src) + if(!dropped_brass) + new /obj/item/stack/tile/brass(src) + dropped_brass = TRUE + if(islist(baseturfs)) + if(type in baseturfs) + return + else if(baseturfs == type) + return return ..() /turf/open/floor/clockwork/narsie_act()