diff --git a/code/game/machinery/roulette_machine.dm b/code/game/machinery/roulette_machine.dm
index 098cd5ea3868..fd6129c21bb4 100644
--- a/code/game/machinery/roulette_machine.dm
+++ b/code/game/machinery/roulette_machine.dm
@@ -20,7 +20,7 @@
///Machine that lets you play roulette. Odds are pre-defined to be the same as European Roulette without the "En Prison" rule
/obj/machinery/roulette
name = "Roulette Table"
- desc = "A computerized roulette table. Swipe your ID to play or register yourself as owner!"
+ desc = "A computerized roulette table. Swipe your cash card to play or register yourself as the owner!"
icon = 'icons/obj/machines/roulette.dmi'
icon_state = "idle"
density = TRUE
@@ -213,11 +213,11 @@
audible_message("The result is: [result]")
playing = FALSE
- update_icon(potential_payout, color, rolled_number, is_winner)
+ update_icon(ALL, potential_payout, color, rolled_number, is_winner)
handle_color_light(color)
if(!is_winner)
- audible_message("You lost! Better luck next time")
+ audible_message("You lost! Better luck next time!")
playsound(src, 'sound/machines/synth_no.ogg', 50)
return FALSE
@@ -403,7 +403,7 @@
/obj/item/roulette_wheel_beacon
name = "roulette wheel beacon"
- desc = "N.T. approved roulette wheel beacon, toss it down and you will have a complementary roulette wheel delivered to you."
+ desc = "An N.T.-approved roulette wheel beacon. Toss it down, and a complementary roulette wheel will be delivered to you."
icon = 'icons/obj/objects.dmi'
icon_state = "floor_beacon"
var/used
@@ -412,6 +412,7 @@
if(used)
return
loc.visible_message("\The [src] begins to beep loudly!")
+ playsound(get_turf(src), 'sound/machines/click.ogg', 50, TRUE)
used = TRUE
addtimer(CALLBACK(src, PROC_REF(launch_payload)), 40)
diff --git a/code/game/machinery/slotmachine.dm b/code/game/machinery/slotmachine.dm
index 2038612c2791..e48d1e289d0b 100644
--- a/code/game/machinery/slotmachine.dm
+++ b/code/game/machinery/slotmachine.dm
@@ -2,6 +2,8 @@
| Slot Machines |
| Original code by Glloyd |
| Tgstation port by Miauw |
+| Shiptest adjustments by |
+| Flopppi |
\*******************************/
#define SPIN_PRICE 5
@@ -11,8 +13,6 @@
#define SPIN_TIME 65 //As always, deciseconds.
#define REEL_DEACTIVATE_DELAY 7
#define SEVEN "7"
-#define CASH 1
-#define COIN 2
/obj/machinery/computer/slot_machine
name = "slot machine"
@@ -31,9 +31,6 @@
var/working = 0
var/balance = 0 //How much money is in the machine, ready to be CONSUMED.
var/jackpots = 0
- var/paymode = CASH //toggles between CASH/COIN, defined above
- var/cointype = /obj/item/coin/iron //default cointype
- var/list/coinvalues = list()
var/list/reels = list(list("", "", "") = 0, list("", "", "") = 0, list("", "", "") = 0, list("", "", "") = 0, list("", "", "") = 0)
var/list/symbols = list(SEVEN = 1, "&" = 2, "@" = 2, "$" = 2, "?" = 2, "#" = 2, "!" = 2, "%" = 2) //if people are winning too much, multiply every number in this list by 2 and see if they are still winning too much.
@@ -51,10 +48,6 @@
INVOKE_ASYNC(src, PROC_REF(toggle_reel_spin), FALSE)
- for(cointype in typesof(/obj/item/coin))
- var/obj/item/coin/C = cointype
- coinvalues["[cointype]"] = initial(C.value)
-
/obj/machinery/computer/slot_machine/Destroy()
if(balance)
give_payout(balance)
@@ -82,45 +75,13 @@
/obj/machinery/computer/slot_machine/attackby(obj/item/I, mob/living/user, params)
- if(istype(I, /obj/item/coin))
- var/obj/item/coin/C = I
- if(paymode == COIN)
- if(prob(2))
- if(!user.transferItemToLoc(C, drop_location(), silent = FALSE))
- return
- C.throw_at(user, 3, 10)
- if(prob(10))
- balance = max(balance - SPIN_PRICE, 0)
- to_chat(user, "[src] spits your coin back out!")
-
- else
- if(!user.temporarilyRemoveItemFromInventory(C))
- return
- to_chat(user, "You insert [C] into [src]'s slot!")
- balance += C.value
- qdel(C)
- else
- to_chat(user, "This machine is only accepting cash!")
- else if(istype(I, /obj/item/spacecash/bundle))
- if(paymode == CASH)
- var/obj/item/spacecash/bundle/H = I
- if(!user.temporarilyRemoveItemFromInventory(H))
- return
- to_chat(user, "You insert [H.value] credits into [src]'s! slot")
- balance += H.value
- qdel(H)
- else
- to_chat(user, "This machine is only accepting coins!")
- else if(I.tool_behaviour == TOOL_MULTITOOL)
- if(balance > 0)
- visible_message("[src] says, 'ERROR! Please empty the machine balance before altering paymode'") //Prevents converting coins into holocredits and vice versa
- else
- if(paymode == CASH)
- paymode = COIN
- visible_message("[src] says, 'This machine now works with COINS!'")
- else
- paymode = CASH
- visible_message("[src] says, 'This machine now works with CASH!'")
+ if(istype(I, /obj/item/spacecash/bundle))
+ var/obj/item/spacecash/bundle/H = I
+ if(!user.temporarilyRemoveItemFromInventory(H))
+ return
+ to_chat(user, "You insert [H.value] credits into [src]'s slot!")
+ balance += H.value
+ qdel(H)
else
return ..()
@@ -149,7 +110,7 @@
else
dat = {"Five credits to play!
- Prize Money Available: [money] (jackpot payout is ALWAYS 100%!)
+ Prize Money Available: [money] (Jackpot payout is ALWAYS 100%!)
Credit Remaining: [balance]
[plays] players have tried their luck today, and [jackpots] have won a jackpot!