Skip to content

Commit

Permalink
fucked my whole life up
Browse files Browse the repository at this point in the history
  • Loading branch information
Geoengi authored Dec 26, 2024
1 parent 20fc613 commit 8f44b5a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions code/game/machinery/roulette_machine.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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)
Expand All @@ -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, "<span class='notice'>The machine appears to be disabled.</span>")
return FALSE

Expand Down

0 comments on commit 8f44b5a

Please sign in to comment.