From c339893502e2d6fcd18d4f248dfe86f354b0a6a2 Mon Sep 17 00:00:00 2001 From: Isaac Erwin Date: Sun, 1 May 2016 00:35:29 -0400 Subject: [PATCH 1/2] Makes slot machines only show a message to nearby people when someone wins at least 100 credits The person playing the slots is still notified, and the sound still plays. Now slot machines won't clog up the chat with "No luck!". --- code/game/machinery/slotmachine.dm | 3 --- 1 file changed, 3 deletions(-) diff --git a/code/game/machinery/slotmachine.dm b/code/game/machinery/slotmachine.dm index 046217960e8..7aa6bff7c4e 100644 --- a/code/game/machinery/slotmachine.dm +++ b/code/game/machinery/slotmachine.dm @@ -83,17 +83,14 @@ resultlvl = "good" win_money(100, 'sound/goonstation/misc/bell.ogg') else if (roll > 100 && roll <= 200) - visible_message("[src] says, 'Winner! [usr.name] has won fifty credits!'") result = "You win fifty credits!" resultlvl = "good" win_money(50) else if (roll > 200 && roll <= 500) - visible_message("[src] says, 'Winner! [usr.name] has won ten credits!'") result = "You win ten credits!" resultlvl = "good" win_money(10) else - visible_message("[src] says, 'No Luck!'") result = "No luck!" resultlvl = "average" working = 0 From 00e6e73f3250868c4d4a9357a363f05f7d4c842a Mon Sep 17 00:00:00 2001 From: Isaac Erwin Date: Sun, 1 May 2016 01:39:27 -0400 Subject: [PATCH 2/2] Re-adds the 10 and 50 credits won messages --- code/game/machinery/slotmachine.dm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/game/machinery/slotmachine.dm b/code/game/machinery/slotmachine.dm index 7aa6bff7c4e..8a4ef1bc330 100644 --- a/code/game/machinery/slotmachine.dm +++ b/code/game/machinery/slotmachine.dm @@ -83,10 +83,12 @@ resultlvl = "good" win_money(100, 'sound/goonstation/misc/bell.ogg') else if (roll > 100 && roll <= 200) + visible_message("[src] says, 'Winner! [usr.name] has won fifty credits!'") result = "You win fifty credits!" resultlvl = "good" win_money(50) else if (roll > 200 && roll <= 500) + visible_message("[src] says, 'Winner! [usr.name] has won ten credits!'") result = "You win ten credits!" resultlvl = "good" win_money(10)