From 2a7009e5c9f15f70806fa70f4229996e1bb15bcb Mon Sep 17 00:00:00 2001 From: Zonespace <41448081+Zonespace27@users.noreply.github.com> Date: Thu, 30 Nov 2023 03:58:19 -0800 Subject: [PATCH] Resin holes can no longer be made below stairs (#5056) # About the pull request Title. # Explain why it's good for the game You can't see the resin hole or interact with it, making this effectively an exploit. # Changelog :cl: fix: Resin holes can no longer be planted below stairs /:cl: --- .../living/carbon/xenomorph/abilities/general_powers.dm | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/code/modules/mob/living/carbon/xenomorph/abilities/general_powers.dm b/code/modules/mob/living/carbon/xenomorph/abilities/general_powers.dm index 94c0110fc68f..74a46a30e9ba 100644 --- a/code/modules/mob/living/carbon/xenomorph/abilities/general_powers.dm +++ b/code/modules/mob/living/carbon/xenomorph/abilities/general_powers.dm @@ -570,6 +570,13 @@ to_chat(X, SPAN_XENOWARNING("You can only shape on weeds. Find some resin before you start building!")) return FALSE + // This snowflake check exists because stairs specifically are indestructable, tile-covering, and cannot be moved, which allows resin holes to be + // planted under them without any possible counterplay. In the future if resin holes stop being able to be hidden under objects, remove this check. + var/obj/structure/stairs/staircase = locate() in src + if(staircase) + to_chat(X, SPAN_XENOWARNING("You cannot make a hole beneath a staircase!")) + return FALSE + if(alien_weeds.linked_hive.hivenumber != X.hivenumber) to_chat(X, SPAN_XENOWARNING("These weeds don't belong to your hive!")) return FALSE