diff --git a/code/game/machinery/casino.dm b/code/game/machinery/casino.dm index d2e837b094..c09e06edb8 100644 --- a/code/game/machinery/casino.dm +++ b/code/game/machinery/casino.dm @@ -31,7 +31,7 @@ visible_message("\ [user] spins the roulette and throws inside little ball.") playsound(src.loc, 'sound/machines/roulette.ogg', 40, 1) busy = 1 - icon_state = "roulette_wheel_spinning" + icon_state = "roulette_wheel_spinning" var/result = rand(0,36) var/color = "green" add_fingerprint(user) @@ -106,8 +106,9 @@ to_chat(user,"You dont have enough chips to gamble! ") return - visible_message("\ [user] puts 5 credits in the slot machine and presses start.") + to_chat(user,"You puts 5 credits in the slot machine and presses start.") cashmoney.worth -= 5 + cashmoney.update_icon() if(cashmoney.worth <= 0) usr.drop_from_inventory(cashmoney) @@ -116,12 +117,13 @@ busy = 1 icon_state = "slotmachine_rolling" + playsound(src.loc, 'sound/machines/slotmachine_pull.ogg', 15, 1) var/slot1 = rand(0,9) switch(slot1) - if(0 to 2) symbol1 = "cherry" - if(3 to 3) symbol1 = "lemon" - if(4 to 4) symbol1 = "watermelon" + if(1 to 3) symbol1 = "cherry" + if(4 to 4) symbol1 = "lemon" + //if(4 to 4) symbol1 = "watermelon" if(5 to 5) symbol1 = "bell" if(6 to 6) symbol1 = "four leaf clover" if(7 to 7) symbol1 = "seven" @@ -130,9 +132,9 @@ var/slot2 = rand(0,9) switch(slot2) - if(0 to 2) symbol2 = "cherry" - if(3 to 3) symbol2 = "lemon" - if(4 to 4) symbol2 = "watermelon" + if(1 to 3) symbol2 = "cherry" + if(4 to 4) symbol2 = "lemon" + //if(4 to 4) symbol2 = "watermelon" if(5 to 5) symbol2 = "bell" if(6 to 6) symbol2 = "four leaf clover" if(7 to 7) symbol2 = "seven" @@ -141,9 +143,9 @@ var/slot3 = rand(0,9) switch(slot3) - if(0 to 2) symbol3 = "cherry" - if(3 to 3) symbol3 = "lemon" - if(4 to 4) symbol3 = "watermelon" + if(1 to 3) symbol3 = "cherry" + if(4 to 4) symbol3 = "lemon" + //if(4 to 4) symbol3 = "watermelon" if(5 to 5) symbol3 = "bell" if(6 to 6) symbol3 = "four leaf clover" if(7 to 7) symbol3 = "seven" @@ -157,7 +159,7 @@ spawn(delaytime) - visible_message("The slot machine flashes with bright colours as the slots lights up with a [symbol1], a [symbol2] and a [symbol3]!") + to_chat(user,"The slot machine flashes with bright colours as the slots lights up with a [symbol1], a [symbol2] and a [symbol3]!") if (symbol1 == "cherry" && symbol2 == "cherry" && symbol3 == "cherry") output = "Three cherries! The slot machine deposits chips worth 25 credits!" @@ -198,7 +200,7 @@ icon_state = initial(icon_state) // Set it back to the original iconstate. if(!output) // Is there anything to output? If not, consider it a loss. - visible_message("Better luck next time!") + to_chat(user,"Better luck next time!") busy = FALSE return @@ -250,7 +252,7 @@ return visible_message("\ [user] spins the wheel of fortune!") busy = 1 - icon_state = "wheel_of_fortune_spinning" + icon_state = "wheel_of_fortune_spinning" var/result = rand(1,interval) add_fingerprint(user) spawn(5 SECONDS) @@ -680,7 +682,7 @@ And thats it! Now go out there and gamble your savings away! This casino allows bets between 5 and 50 with double down ignoring that limit!