From 8f44b5a731e40679ba70c0ef2952cf632d92bd53 Mon Sep 17 00:00:00 2001 From: Geoengi <139566513+Geoengi@users.noreply.github.com> Date: Thu, 26 Dec 2024 06:18:20 +0000 Subject: [PATCH] fucked my whole life up --- code/game/machinery/roulette_machine.dm | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/code/game/machinery/roulette_machine.dm b/code/game/machinery/roulette_machine.dm index 20f7a2f09cb4..9d183790c7d2 100644 --- a/code/game/machinery/roulette_machine.dm +++ b/code/game/machinery/roulette_machine.dm @@ -86,7 +86,7 @@ data["AccountBalance"] = C.registered_account.account_balance else data["AccountBalance"] = 0 - data["CanUnbolt"] = (H.get_idcard() == my_card) + data["CanUnbolt"] = (C == my_card) return data @@ -95,9 +95,11 @@ if(.) return + var/mob/living/carbon/human/H = usr switch(action) if("anchor") - set_anchored(!anchored) + if(my_card == H.get_bankcard()) + set_anchored(!anchored) . = TRUE if("ChangeBetAmount") chosen_bet_amount = clamp(text2num(params["amount"]), 10, 500) @@ -117,7 +119,7 @@ if(istype(W, /obj/item/card/bank)) playsound(src, 'sound/machines/card_slide.ogg', 50, TRUE) - if(machine_stat & MAINT || !on || locked) + if(machine_stat & MAINT || !on || locked|| !powered()) to_chat(user, "The machine appears to be disabled.") return FALSE