visible message and jackpot

This commit is contained in:
Fox-McCloud
2015-12-07 22:40:10 -05:00
parent 7c6aa94e21
commit 87f6ccb61c
+5 -8
View File
@@ -52,19 +52,16 @@ var/datum/announcement/minor/slotmachine_announcement = new(do_log = 0)
spawn(30)
if (roll == 1)
playsound(src.loc, 'sound/effects/engine_alert2.ogg', 50, 0)
for(var/mob/O in hearers(src, null))
O.show_message(text("<b>[]</b> says, 'JACKPOT! You win 25,000!'", src), 1)
slotmachine_announcement.Announce("Congratulations [usr.name] on winning the Jackpot!", "Jackpot Winner")
usr.mind.initial_account.money += 25000
visible_message("<b>[src]</b> says, 'JACKPOT! [usr.name] has won two hundred and fifty thousand credits!'")
slotmachine_announcement.Announce("Congratulations to [usr.name] on winning the jackpot of two hundred and fifty thousand credits!", "Jackpot Winner")
usr.mind.initial_account.money += 250000
else if (roll > 1 && roll <= 10)
playsound(src.loc, 'sound/machines/ping.ogg', 50, 0)
for(var/mob/O in hearers(src, null))
O.show_message(text("<b>[]</b> says, 'Big Winner! You win five thousand credits!'", src), 1)
visible_message("<b>[src]</b> says, 'Big Winner! [usr.name] has won five thousand credits!'")
usr.mind.initial_account.money += 5000
else if (roll > 10 && roll <= 100)
playsound(src.loc, 'sound/machines/ping.ogg', 50, 0)
for(var/mob/O in hearers(src, null))
O.show_message(text("<b>[]</b> says, 'Winner! You win five hundred credits!'", src), 1)
visible_message("<b>[src]</b> says, 'Winner! [usr.name] has won win five hundred credits!'")
usr.mind.initial_account.money += 500
else if (roll > 100 && roll <= 1000)
playsound(src.loc, 'sound/machines/ping.ogg', 50, 0)