Skip to content

Commit

Permalink
let's not fuck this up
Browse files Browse the repository at this point in the history
  • Loading branch information
Geoengi authored Dec 24, 2024
1 parent 4dbea4f commit d729ed1
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 @@ -96,8 +96,10 @@
return

switch(action)
if("anchor")
if("anchor" && "CanUnbolt")
set_anchored(!anchored)
else
return
. = TRUE
if("ChangeBetAmount")

Check failure on line 104 in code/game/machinery/roulette_machine.dm

View workflow job for this annotation

GitHub Actions / Run Linters

got 'if', expected one of: '}'
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 d729ed1

Please sign in to comment.