From 0fe8795a1fa7c427146c699ec8bded2371f64f59 Mon Sep 17 00:00:00 2001 From: Chompstation Bot Date: Sat, 3 Jul 2021 23:30:45 +0000 Subject: [PATCH] Fix indentation --- code/game/objects/structures/watercloset.dm | 62 +++++++++++++++++++++ 1 file changed, 62 insertions(+) diff --git a/code/game/objects/structures/watercloset.dm b/code/game/objects/structures/watercloset.dm index f512c3a799..80d44a713f 100644 --- a/code/game/objects/structures/watercloset.dm +++ b/code/game/objects/structures/watercloset.dm @@ -92,6 +92,68 @@ return +<<<<<<< HEAD +||||||| parent of 582e77035c... Merge pull request #10854 from VOREStation/Arokha/fixindent +/obj/structure/toilet/prison/attack_hand(mob/living/user) + return + +/obj/structure/toilet/prison/attackby(obj/item/I, mob/living/user) + if(istype(I, /obj/item/weapon/grab)) + user.setClickCooldown(user.get_attack_speed(I)) + var/obj/item/weapon/grab/G = I + + if(isliving(G.affecting)) + var/mob/living/GM = G.affecting + + if(G.state>1) + if(!GM.loc == get_turf(src)) + to_chat(user, "[GM.name] needs to be on the toilet.") + return + if(open && !swirlie) + user.visible_message("[user] starts to give [GM.name] a swirlie!", "You start to give [GM.name] a swirlie!") + swirlie = GM + if(do_after(user, 30, GM)) + user.visible_message("[user] gives [GM.name] a swirlie!", "You give [GM.name] a swirlie!", "You hear a toilet flushing.") + if(!GM.internal) + GM.adjustOxyLoss(5) + swirlie = null + else + user.visible_message("[user] slams [GM.name] into the [src]!", "You slam [GM.name] into the [src]!") + GM.adjustBruteLoss(5) + else + to_chat(user, "You need a tighter grip.") + +======= +/obj/structure/toilet/prison/attack_hand(mob/living/user) + return + +/obj/structure/toilet/prison/attackby(obj/item/I, mob/living/user) + if(istype(I, /obj/item/weapon/grab)) + user.setClickCooldown(user.get_attack_speed(I)) + var/obj/item/weapon/grab/G = I + + if(isliving(G.affecting)) + var/mob/living/GM = G.affecting + + if(G.state>1) + if(!GM.loc == get_turf(src)) + to_chat(user, "[GM.name] needs to be on the toilet.") + return + if(open && !swirlie) + user.visible_message("[user] starts to give [GM.name] a swirlie!", "You start to give [GM.name] a swirlie!") + swirlie = GM + if(do_after(user, 30, GM)) + user.visible_message("[user] gives [GM.name] a swirlie!", "You give [GM.name] a swirlie!", "You hear a toilet flushing.") + if(!GM.internal) + GM.adjustOxyLoss(5) + swirlie = null + else + user.visible_message("[user] slams [GM.name] into the [src]!", "You slam [GM.name] into the [src]!") + GM.adjustBruteLoss(5) + else + to_chat(user, "You need a tighter grip.") + +>>>>>>> 582e77035c... Merge pull request #10854 from VOREStation/Arokha/fixindent /obj/structure/urinal name = "urinal"