mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-24 04:27:35 +01:00
visible message and jackpot
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user