From 42ecd91c8ce13f0c6e540a8fa55d72dd71b16347 Mon Sep 17 00:00:00 2001 From: Shadowfire Date: Sat, 10 Aug 2019 14:21:35 +0200 Subject: [PATCH] Some last minute changes to casino! --- code/game/machinery/casino.dm | 40 ++++++++++++++++------------ maps/northern_star/northern_star.dm | 1 + sound/machines/slotmachine_pull.ogg | Bin 0 -> 78420 bytes 3 files changed, 24 insertions(+), 17 deletions(-) create mode 100644 sound/machines/slotmachine_pull.ogg 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!

Roulette

- So this game of roulette is all about chance! what happens is that people bet on different odds and hope for the best as the dealer rolls the ball and makes that roulette thingy make than fun addicting spin! Once it lands on something its either bust or payout! Pretty simple, right?
+ So this game of roulette is all about chance! what happens is that people bet on different odds and hope for the best as the dealer rolls the ball and makes that roulette thingy make than fun addicting spin! Once it lands on a number between 0 and 36 its either bust or payout! Pretty simple, right?
Everyone starts by putting their bets down, people can bet more than once before the ball goes rolling, the odds and their payoffs are these: Gear Accessories - Masks - ALL MASK ARE 50 except chameleon! + Masks and hats - EVERYTHING IS 50 except chameleon! Costumes - All costumes are 150!