From 503a7160d379f0782f624717bf43db9ea221633b Mon Sep 17 00:00:00 2001
From: Shadow-Quill <44811257+Shadow-Quill@users.noreply.github.com>
Date: Fri, 6 Sep 2019 15:21:42 -0500
Subject: [PATCH 1/2] chances of winnar
---
code/game/machinery/slotmachine.dm | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/code/game/machinery/slotmachine.dm b/code/game/machinery/slotmachine.dm
index fa99ecf8951..f15b7ede167 100644
--- a/code/game/machinery/slotmachine.dm
+++ b/code/game/machinery/slotmachine.dm
@@ -55,44 +55,44 @@
/obj/machinery/slot_machine/proc/spin_slots(userName)
switch(rand(1,4050))
- if(1)
+ if(1) // .02%
atom_say("JACKPOT! [userName] has won a MILLION CREDITS!")
event_announcement.Announce("Congratulations to [userName] on winning the Jackpot of ONE MILLION CREDITS!", "Jackpot Winner")
result = "JACKPOT! You win one million credits!"
resultlvl = "highlight"
win_money(1000000, 'sound/goonstation/misc/airraid_loop.ogg')
- if(2 to 5)
+ if(2 to 5) // .07%
atom_say("Big Winner! [userName] has won a hundred thousand credits!")
event_announcement.Announce("Congratulations to [userName] on winning a hundred thousand credits!", "Big Winner")
result = "Big Winner! You win a hundred thousand credits!"
resultlvl = "good"
win_money(100000, 'sound/goonstation/misc/klaxon.ogg')
- if(6 to 50)
+ if(6 to 50) // 1.08%
atom_say("Big Winner! [userName] has won ten thousand credits!")
result = "You win ten thousand credits!"
resultlvl = "good"
win_money(10000, 'sound/goonstation/misc/klaxon.ogg')
- if(51 to 100)
+ if(51 to 100) // 1.21%
atom_say("Winner! [userName] has won a thousand credits!")
result = "You win a thousand credits!"
resultlvl = "good"
win_money(1000, 'sound/goonstation/misc/bell.ogg')
- if(101 to 200)
+ if(101 to 200) // 2.44%
atom_say("Winner! [userName] has won a hundred credits!")
result = "You win a hundred credits!"
resultlvl = "good"
win_money(100, 'sound/goonstation/misc/bell.ogg')
- if(201 to 300)
+ if(201 to 300) // 2.44%
atom_say("Winner! [userName] has won fifty credits!")
result = "You win fifty credits!"
resultlvl = "good"
win_money(50)
- if(301 to 1000)
+ if(301 to 1000) // 17.26%
atom_say("Winner! [userName] has won ten credits!")
result = "You win ten credits!"
resultlvl = "good"
win_money(10)
- else
+ else // 74.05%
result = "No luck!"
resultlvl = "average"
working = 0
@@ -103,4 +103,4 @@
playsound(loc, sound, 55, 1)
if(!account)
return
- account.credit(amt, "Slot Winnings", "Slot Machine", account.owner_name)
\ No newline at end of file
+ account.credit(amt, "Slot Winnings", "Slot Machine", account.owner_name)
From 65b7c25ff39e9222b0f0e502c7f7bbccdecc203f Mon Sep 17 00:00:00 2001
From: Shadow-Quill <44811257+Shadow-Quill@users.noreply.github.com>
Date: Fri, 6 Sep 2019 15:26:54 -0500
Subject: [PATCH 2/2] update
---
code/game/machinery/slotmachine.dm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/code/game/machinery/slotmachine.dm b/code/game/machinery/slotmachine.dm
index f15b7ede167..adbc3d67605 100644
--- a/code/game/machinery/slotmachine.dm
+++ b/code/game/machinery/slotmachine.dm
@@ -92,7 +92,7 @@
result = "You win ten credits!"
resultlvl = "good"
win_money(10)
- else // 74.05%
+ else // 75.31%
result = "No luck!"
resultlvl = "average"
working = 0