From b116a237fb3cccacb61b3be898b30e7b88d64faf Mon Sep 17 00:00:00 2001 From: Hatterhat Date: Thu, 4 Nov 2021 21:50:41 -0500 Subject: [PATCH] i hate the engraving antichrist --- code/game/turfs/simulated/floor.dm | 7 +++++++ code/game/turfs/simulated/floor_attackby.dm | 3 --- code/game/turfs/simulated/wall_attacks.dm | 3 --- code/game/turfs/simulated/walls.dm | 7 +++++++ 4 files changed, 14 insertions(+), 6 deletions(-) diff --git a/code/game/turfs/simulated/floor.dm b/code/game/turfs/simulated/floor.dm index 1d37f4b47a..a0caed0b98 100644 --- a/code/game/turfs/simulated/floor.dm +++ b/code/game/turfs/simulated/floor.dm @@ -175,3 +175,10 @@ to_chat(user, span("notice", "You deconstruct \the [src].")) ChangeTurf(get_base_turf_by_area(src), preserve_outdoors = TRUE) return TRUE + +/turf/simulated/floor/AltClick(mob/user) + if(isliving(user)) + var/mob/living/livingUser = user + if(try_graffiti(livingUser, livingUser.get_active_hand())) + return + . = ..() \ No newline at end of file diff --git a/code/game/turfs/simulated/floor_attackby.dm b/code/game/turfs/simulated/floor_attackby.dm index 1168f7a081..32eca414bd 100644 --- a/code/game/turfs/simulated/floor_attackby.dm +++ b/code/game/turfs/simulated/floor_attackby.dm @@ -9,9 +9,6 @@ attack_tile(C, L) // Be on help intent if you want to decon something. return - if(!(C.is_screwdriver() && flooring && (flooring.flags & TURF_REMOVE_SCREWDRIVER)) && try_graffiti(user, C)) - return - // Multi-z roof building if(istype(C, /obj/item/stack/tile/roofing)) var/expended_tile = FALSE // To track the case. If a ceiling is built in a multiz zlevel, it also necessarily roofs it against weather diff --git a/code/game/turfs/simulated/wall_attacks.dm b/code/game/turfs/simulated/wall_attacks.dm index 036cfd5728..8e0b6bae45 100644 --- a/code/game/turfs/simulated/wall_attacks.dm +++ b/code/game/turfs/simulated/wall_attacks.dm @@ -131,9 +131,6 @@ user.setClickCooldown(user.get_attack_speed(W)) - if(!construction_stage && try_graffiti(user, W)) - return - if (!user.IsAdvancedToolUser()) to_chat(user, "You don't have the dexterity to do this!") return diff --git a/code/game/turfs/simulated/walls.dm b/code/game/turfs/simulated/walls.dm index d0bb6d5640..f664e73b40 100644 --- a/code/game/turfs/simulated/walls.dm +++ b/code/game/turfs/simulated/walls.dm @@ -333,3 +333,10 @@ ChangeTurf(/turf/simulated/floor/airless, preserve_outdoors = TRUE) return TRUE return FALSE + +/turf/simulated/wall/AltClick(mob/user) + if(isliving(user)) + var/mob/living/livingUser = user + if(try_graffiti(livingUser, livingUser.get_active_hand())) + return + . = ..() \ No newline at end of file