refactors most spans

This commit is contained in:
Kashargul
2024-10-02 21:10:31 +02:00
parent 5417c7772c
commit a2c673ab7a
1517 changed files with 12436 additions and 12347 deletions
+45 -45
View File
@@ -51,7 +51,7 @@
if(!ball)
to_chat(user,"<span class='notice'>This roulette wheel has no ball!</span> ")
return
visible_message("<span class='notice'>\The [user] spins the roulette and throws [ball.get_ball_desc()] into it.</span>")
visible_message(span_notice("\The [user] spins the roulette and throws [ball.get_ball_desc()] into it."))
playsound(src.loc, 'sound/machines/roulette.ogg', 40, 1)
busy = 1
ball.on_spin()
@@ -74,7 +74,7 @@
if(result == 37)
result = "00"
spawn(5 SECONDS)
visible_message("<span class='notice'>The roulette stops spinning, the ball landing on [result], [color].</span>")
visible_message(span_notice("The roulette stops spinning, the ball landing on [result], [color]."))
busy = 0
icon_state = initial(icon_state)
@@ -84,7 +84,7 @@
user.drop_from_inventory(W)
W.forceMove(src)
ball = W
to_chat(user, "<span class='notice'>You insert [W] into [src].</span>")
to_chat(user, span_notice("You insert [W] into [src]."))
return
..()
@@ -101,16 +101,16 @@
return
if(busy)
to_chat(usr, "<span class='warning'>You cannot remove \the [ball] while [src] is spinning!</span>")
to_chat(usr, span_warning("You cannot remove \the [ball] while [src] is spinning!"))
return
if(ball)
usr.put_in_hands(ball)
to_chat(usr, "<span class='notice'>You remove \the [ball] from [src].</span>")
to_chat(usr, span_notice("You remove \the [ball] from [src]."))
ball = null
return
else
to_chat(usr, "<span class='notice'>There is no ball in [src]!</span>")
to_chat(usr, span_notice("There is no ball in [src]!"))
return
/obj/structure/casino_table/roulette_table/long
@@ -223,21 +223,21 @@
/obj/item/roulette_ball/hollow/attackby(var/obj/item/W, var/mob/user)
if(trapped)
to_chat(user, "<span class='notice'>This ball already has something trapped in it!</span>")
to_chat(user, span_notice("This ball already has something trapped in it!"))
return
if(istype(W, /obj/item/holder))
var/obj/item/holder/H = W
if(!H.held_mob)
to_chat(user, "<span class='warning'>This holder has nobody in it? Yell at a developer!</span>")
to_chat(user, span_warning("This holder has nobody in it? Yell at a developer!"))
return
if(H.held_mob.get_effective_size(TRUE) > 50)
to_chat(user, "<span class='warning'>\The [H] is too big to fit inside!</span>")
to_chat(user, span_warning("\The [H] is too big to fit inside!"))
return
user.drop_from_inventory(H)
H.forceMove(src)
trapped = H
to_chat(user, "<span class='notice'>You trap \the [H] inside the glass roulette ball.</span>")
to_chat(H.held_mob, "<span class='warning'>\The [user] traps you inside a glass roulette ball!</span>")
to_chat(user, span_notice("You trap \the [H] inside the glass roulette ball."))
to_chat(H.held_mob, span_warning("\The [user] traps you inside a glass roulette ball!"))
update_icon()
/obj/item/roulette_ball/hollow/update_icon()
@@ -248,13 +248,13 @@
/obj/item/roulette_ball/hollow/attack_self(mob/user as mob)
if(!trapped)
to_chat(user, "<span class='notice'>\The [src] is empty!</span>")
to_chat(user, span_notice("\The [src] is empty!"))
return
else
user.put_in_hands(trapped)
if(trapped.held_mob)
to_chat(user, "<span class='notice'>You take \the [trapped] out of the glass roulette ball.</span>")
to_chat(trapped.held_mob, "<span class='notice'>\The [user] takes you out of a glass roulette ball.</span>")
to_chat(user, span_notice("You take \the [trapped] out of the glass roulette ball."))
to_chat(trapped.held_mob, span_notice("\The [user] takes you out of a glass roulette ball."))
trapped = null
update_icon()
@@ -264,7 +264,7 @@
/obj/item/roulette_ball/hollow/on_spin()
if(trapped && trapped.held_mob)
to_chat(trapped.held_mob, "<span class='critical'>THE WHOLE WORLD IS SENT WHIRLING AS THE ROULETTE SPINS!!!</span>")
to_chat(trapped.held_mob, span_critical("THE WHOLE WORLD IS SENT WHIRLING AS THE ROULETTE SPINS!!!"))
/obj/item/roulette_ball/hollow/Destroy()
if(trapped)
@@ -407,10 +407,10 @@
if(istype(W, /obj/item/card/id)||istype(W, /obj/item/pda))
if(!check_access(W))
to_chat(user, "<span class='warning'>Access Denied.</span>")
to_chat(user, span_warning("Access Denied."))
return
else
to_chat(user, "<span class='warning'>Proper access, allowed staff controls.</span>")
to_chat(user, span_warning("Proper access, allowed staff controls."))
if(ishuman(usr) || istype(usr, /mob/living/silicon/robot))
switch(input(user,"Choose what to do (Management)","Wheel Of Fortune (Management)") in list("Spin the Lottery Wheel!", "Toggle Lottery Sales", "Toggle Public Spins", "Reset Lottery", "Cancel"))
if("Cancel")
@@ -438,18 +438,18 @@
if("Reset Lottery")
var/confirm = tgui_alert(usr, "Are you sure you want to reset Lottery?", "Confirm Lottery Reset", list("Yes", "No"))
if(confirm == "Yes")
to_chat(user, "<span class='warning'>Lottery has been Reset!</span>")
to_chat(user, span_warning("Lottery has been Reset!"))
lottery_entries = 0
lottery_tickets = list()
lottery_tickets_ckeys = list()
if(istype(W, /obj/item/spacecasinocash))
if(lottery_sale == "disabled")
to_chat(user, "<span class='warning'>Lottery sales are currently disabled.</span>")
to_chat(user, span_warning("Lottery sales are currently disabled."))
return
else
if(user.client.ckey in lottery_tickets_ckeys)
to_chat(user, "<span class='warning'>The scanner beeps in an upset manner, you already have a ticket!</span>")
to_chat(user, span_warning("The scanner beeps in an upset manner, you already have a ticket!"))
return
var/obj/item/spacecasinocash/C = W
@@ -463,7 +463,7 @@
to_chat(user,"<span class='notice'>You dont have enough chips to buy a lottery ticket!</span> ")
return
to_chat(user,"<span class='notice'>You put [lottery_price] credits worth of chips into the Wheel of Fortune and it pings to notify of your lottery ticket registered!</span>")
to_chat(user,span_notice("You put [lottery_price] credits worth of chips into the Wheel of Fortune and it pings to notify of your lottery ticket registered!"))
cashmoney.worth -= lottery_price
cashmoney.update_icon()
@@ -485,7 +485,7 @@
result = rand(1,interval)
spawn(5 SECONDS)
visible_message("<span class='notice'>The wheel of fortune stops spinning, the number is [result]!</span>")
visible_message(span_notice("The wheel of fortune stops spinning, the number is [result]!"))
src.confetti_spread = new /datum/effect/effect/system/confetti_spread()
src.confetti_spread.attach(src) //If somehow people start dragging slot machine
spawn(0)
@@ -499,7 +499,7 @@
if(mode == "lottery")
if(lottery_entries == 0)
visible_message("<span class='notice'>There are no tickets in the system!</span>")
visible_message(span_notice("There are no tickets in the system!"))
return
busy = 1
@@ -507,7 +507,7 @@
result = pick(lottery_tickets)
spawn(5 SECONDS)
visible_message("<span class='notice'>The wheel of fortune stops spinning, and the winner is [result]!</span>")
visible_message(span_notice("The wheel of fortune stops spinning, and the winner is [result]!"))
src.confetti_spread = new /datum/effect/effect/system/confetti_spread()
src.confetti_spread.attach(src) //If somehow people start dragging slot machine
spawn(0)
@@ -569,35 +569,35 @@
collar_list -= selected_collar
sentientprizes_ckeys_list -= selected_collar.sentientprizeckey
selected_collar = null
to_chat(user, "<span class='warning'>No collar is currently selected or the currently selected one has been destroyed or disabled.</span>")
to_chat(user, span_warning("No collar is currently selected or the currently selected one has been destroyed or disabled."))
return
to_chat(user, "<span class='warning'>Sentient Prize information</span>")
to_chat(user, "<span class='notice'>Name: [selected_collar.sentientprizename]</span>")
to_chat(user, "<span class='notice'>Description: [selected_collar.sentientprizeflavor]</span>")
to_chat(user, "<span class='notice'>OOC: [selected_collar.sentientprizeooc]</span>")
to_chat(user, span_warning("Sentient Prize information"))
to_chat(user, span_notice("Name: [selected_collar.sentientprizename]"))
to_chat(user, span_notice("Description: [selected_collar.sentientprizeflavor]"))
to_chat(user, span_notice("OOC: [selected_collar.sentientprizeooc]"))
if(selected_collar.ownername != null)
to_chat(user, "<span class='warning'>This prize is already owned by [selected_collar.ownername]</span>")
to_chat(user, span_warning("This prize is already owned by [selected_collar.ownername]"))
if("Select Prize")
selected_collar = tgui_input_list(user, "Select a prize", "Chose a collar", collar_list)
if(QDELETED(selected_collar))
collar_list -= selected_collar
sentientprizes_ckeys_list -= selected_collar.sentientprizeckey
to_chat(user, "<span class='warning'>No collars to chose, or selected collar has been destroyed or deactived, selection has been removed from list.</span>")
to_chat(user, span_warning("No collars to chose, or selected collar has been destroyed or deactived, selection has been removed from list."))
selected_collar = null
return
if("Become Prize (Please examine yourself first)") //Its awkward, but no easy way to obtain flavor_text due to server not loading text of mob until its been examined at least once.
var/safety_ckey = user.client.ckey
if(safety_ckey in sentientprizes_ckeys_list)
to_chat(user, "<span class='warning'>The SPASM beeps in an upset manner, you already have a collar!</span>")
to_chat(user, span_warning("The SPASM beeps in an upset manner, you already have a collar!"))
return
var/confirm = tgui_alert(usr, "Are you sure you want to become a sentient prize?", "Confirm Sentient Prize", list("Yes", "No"))
if(confirm != "Yes")
return
to_chat(user, "<span class='warning'>You are now a prize!</span>")
to_chat(user, span_warning("You are now a prize!"))
if(safety_ckey in sentientprizes_ckeys_list)
to_chat(user, "<span class='warning'>The SPASM beeps in an upset manner, you already have a collar!</span>")
to_chat(user, span_warning("The SPASM beeps in an upset manner, you already have a collar!"))
return
sentientprizes_ckeys_list += user.ckey
var/obj/item/clothing/accessory/collar/casinosentientprize/C = new(src.loc)
@@ -619,10 +619,10 @@
if(istype(W, /obj/item/spacecasinocash))
if(casinosentientprize_sale == "disabled")
to_chat(user, "<span class='warning'>Sentient Prize sales are currently disabled.</span>")
to_chat(user, span_warning("Sentient Prize sales are currently disabled."))
return
if(!selected_collar)
to_chat(user, "<span class='warning'>Select a prize first.</span>")
to_chat(user, span_warning("Select a prize first."))
return
if(!selected_collar.ownername)
var/obj/item/spacecasinocash/C = W
@@ -633,13 +633,13 @@
insert_chip(C, user, "buy")
return
else
to_chat(user, "<span class='warning'>This Sentient Prize is already owned! If you are the owner you can release the prize by swiping the collar on the SPASM!</span>")
to_chat(user, span_warning("This Sentient Prize is already owned! If you are the owner you can release the prize by swiping the collar on the SPASM!"))
return
if(istype(W, /obj/item/clothing/accessory/collar/casinosentientprize))
var/obj/item/clothing/accessory/collar/casinosentientprize/C = W
if(user.name != C.sentientprizename && user.name != C.ownername)
to_chat(user, "<span class='warning'>This Sentient Prize collar isn't yours, please give it to the one it tagged for, belongs to, or a casino staff member!</span>")
to_chat(user, span_warning("This Sentient Prize collar isn't yours, please give it to the one it tagged for, belongs to, or a casino staff member!"))
return
if(user.name == C.sentientprizename)
if(!C.ownername)
@@ -651,7 +651,7 @@
if(user.name == C.ownername)
var/confirm = tgui_alert(usr, "Are you sure you want to wipe [C.sentientprizename] entry?", "Confirm Sentient Prize Release", list("Yes", "No"))
if(confirm == "Yes")
to_chat(user, "<span class='warning'>[C.sentientprizename] collar has been deleted from registry!</span>")
to_chat(user, span_warning("[C.sentientprizename] collar has been deleted from registry!"))
C.icon_state = "casinoslave"
C.update_icon()
C.name = "disabled Sentient Prize Collar: [C.sentientprizename]"
@@ -662,10 +662,10 @@
if(istype(W, /obj/item/card/id)||istype(W, /obj/item/pda))
if(!check_access(W))
to_chat(user, "<span class='warning'>Access Denied.</span>")
to_chat(user, span_warning("Access Denied."))
return
else
to_chat(user, "<span class='warning'>Proper access, allowed staff controls.</span>")
to_chat(user, span_warning("Proper access, allowed staff controls."))
if(ishuman(usr) || istype(usr, /mob/living/silicon/robot))
switch(input(user,"Choose what to do (Management)","SPASM (Management)") in list("Toggle Sentient Prize Sales", "Wipe Selected Prize Entry", "Change Prize Value", "Cancel"))
if("Cancel")
@@ -685,19 +685,19 @@
if("Wipe Selected Prize Entry")
if(!selected_collar)
to_chat(user, "<span class='warning'>No collar selected!</span>")
to_chat(user, span_warning("No collar selected!"))
return
if(QDELETED(selected_collar))
collar_list -= selected_collar
sentientprizes_ckeys_list -= selected_collar.sentientprizeckey
to_chat(user, "<span class='warning'>Collar has been destroyed!</span>")
to_chat(user, span_warning("Collar has been destroyed!"))
selected_collar = null
return
var/safety_ckey = selected_collar.sentientprizeckey
var/confirm = tgui_alert(usr, "Are you sure you want to wipe [selected_collar.sentientprizename] entry?", "Confirm Sentient Prize", list("Yes", "No"))
if(confirm == "Yes")
if(safety_ckey == selected_collar.sentientprizeckey)
to_chat(user, "<span class='warning'>[selected_collar.sentientprizename] collar has been deleted from registry!</span>")
to_chat(user, span_warning("[selected_collar.sentientprizename] collar has been deleted from registry!"))
selected_collar.icon_state = "casinoslave"
selected_collar.update_icon()
selected_collar.name = "disabled Sentient Prize Collar: [selected_collar.sentientprizename]"
@@ -707,7 +707,7 @@
collar_list -= selected_collar
selected_collar = null
else
to_chat(user, "<span class='warning'>Registry deletion aborted! Changed collar selection!</span>")
to_chat(user, span_warning("Registry deletion aborted! Changed collar selection!"))
return
if("Change Prize Value")
+7 -7
View File
@@ -198,7 +198,7 @@
/obj/machinery/casino_prize_dispenser/attackby(obj/item/W as obj, mob/user as mob)
if(currently_vending)
if(istype(W, /obj/item/spacecasinocash))
to_chat(usr, "<span class='warning'>Please select prize on display with sufficient amount of chips.</span>")
to_chat(usr, span_warning("Please select prize on display with sufficient amount of chips."))
else
SStgui.update_uis(src)
return // don't smack that machine with your 2 chips
@@ -215,7 +215,7 @@
return 0
if(istype(cashmoney, /obj/item/spacecasinocash))
visible_message("<span class='info'>\The [usr] inserts some chips into \the [src].</span>")
visible_message(span_info("\The [usr] inserts some chips into \the [src]."))
cashmoney.worth -= price
if(cashmoney.worth <= 0)
@@ -283,11 +283,11 @@
if("event")
restriction_check = category_event
else
to_chat(usr, "<span class='warning'>Prize checkout error has occurred, purchase cancelled.</span>")
to_chat(usr, span_warning("Prize checkout error has occurred, purchase cancelled."))
return FALSE
if(restriction_check < 1)
to_chat(usr, "<span class='warning'>[name] is restricted, this prize can't be bought.</span>")
to_chat(usr, span_warning("[name] is restricted, this prize can't be bought."))
return FALSE
if(restriction_check > 1)
item_given = TRUE
@@ -302,7 +302,7 @@
var/obj/item/spacecasinocash/cash = usr.get_active_hand()
paid = pay_with_chips(cash, usr, price)
else
to_chat(usr, "<span class='warning'>Payment failure: Improper payment method, please provide chips.</span>")
to_chat(usr, span_warning("Payment failure: Improper payment method, please provide chips."))
return TRUE // we set this because they shouldn't even be able to get this far, and we want the UI to update.
if(paid)
if(item_given == TRUE)
@@ -312,7 +312,7 @@
do_logging(currently_vending, usr, bi)
. = TRUE
else
to_chat(usr, "<span class='warning'>Payment failure: unable to process payment.</span>")
to_chat(usr, span_warning("Payment failure: unable to process payment."))
/obj/machinery/casino_prize_dispenser/proc/vend(datum/data/casino_prize/bi, mob/user)
SStgui.update_uis(src)
@@ -344,7 +344,7 @@
return
for(var/mob/O in hearers(src, null))
O.show_message("<span class='npcsay'><span class='name'>\The [src]</span> beeps, \"[message]\"</span>",2)
O.show_message(span_npcsay("<span class='name'>\The [src]</span> beeps, \"[message]\""),2)
return
/obj/machinery/casino_prize_dispenser/process() //Might not need this, but just to be safe for now
+26 -26
View File
@@ -70,12 +70,12 @@
if(do_after(user, 20 * W.toolspeed))
if(!src) return
to_chat(user, "<span class='notice'>You [anchored? "un" : ""]secured \the [src]!</span>")
to_chat(user, span_notice("You [anchored? "un" : ""]secured \the [src]!"))
anchored = !anchored
return
if(!anchored)
to_chat(user,"<span class='notice'> The slot machine isn't secured.</span>")
to_chat(user,span_notice(" The slot machine isn't secured."))
return
var/handled = 0
@@ -110,7 +110,7 @@
to_chat(user,"<span class='notice'>You dont have enough chips to gamble!</span> ")
return
to_chat(user,"<span class='notice'>You puts 5 credits in the slot machine and presses start.</span>")
to_chat(user,span_notice("You puts 5 credits in the slot machine and presses start."))
cashmoney.worth -= 5
cashmoney.update_icon()
@@ -161,44 +161,44 @@
spawn(delaytime)
to_chat(user,"<span class='notice'>The slot machine flashes with bright colours as the slots lights up with a [symbol1], a [symbol2] and a [symbol3]!</span>")
to_chat(user,span_notice("The slot machine flashes with bright colours as the slots lights up with a [symbol1], a [symbol2] and a [symbol3]!"))
if (symbol1 == "cherry" && symbol2 == "cherry" && symbol3 == "cherry")
output = "<span class='notice'>Three cherries! The slot machine deposits chips worth 25 credits!</span>"
output = span_notice("Three cherries! The slot machine deposits chips worth 25 credits!")
winnings = 25
if ((symbol1 != "cherry" && symbol2 == "cherry" && symbol3 == "cherry") || (symbol1 == "cherry" && symbol2 != "cherry" && symbol3 == "cherry") ||(symbol1 == "cherry" && symbol2 == "cherry" && symbol3 != "cherry"))
output = "<span class='notice'>Two cherries! The slot machine deposits a 10 credit chip!</span>"
output = span_notice("Two cherries! The slot machine deposits a 10 credit chip!")
winnings = 10
if (symbol1 == "lemon" && symbol2 == "lemon" && symbol3 == "lemon")
output = "<span class='notice'>Three lemons! The slot machine deposits a 50 credit chip!</span>"
output = span_notice("Three lemons! The slot machine deposits a 50 credit chip!")
winnings = 50
if (symbol1 == "watermelon" && symbol2 == "watermelon" && symbol3 == "watermelon")
output = "<span class='notice'>Three watermelons! The slot machine deposits chips worth 75 credits!</span>"
output = span_notice("Three watermelons! The slot machine deposits chips worth 75 credits!")
winnings = 75
if (symbol1 == "bell" && symbol2 == "bell" && symbol3 == "bell")
output = "<span class='notice'>Three bells! The slot machine deposits chips a 100 credit chip!</span>"
output = span_notice("Three bells! The slot machine deposits chips a 100 credit chip!")
winnings = 100
if (symbol1 == "four leaf clover" && symbol2 == "four leaf clover" && symbol3 == "four leaf clover")
output = "<span class='notice'>Three four leaf clovers! The slot machine deposits a 200 credit chip!</span>"
output = span_notice("Three four leaf clovers! The slot machine deposits a 200 credit chip!")
winnings = 200
if (symbol1 == "seven" && symbol2 == "seven" && symbol3 == "seven")
output = "<span class='notice'>Three sevens! The slot machine deposits a 500 credit chip!</span>"
output = span_notice("Three sevens! The slot machine deposits a 500 credit chip!")
winnings = 500
celebrate = 1
if (symbol1 == "diamond" && symbol2 == "diamond" && symbol3 == "diamond")
output = "<span class='notice'>Three diamonds! The slot machine deposits a 1000 credit chip!</span>"
output = span_notice("Three diamonds! The slot machine deposits a 1000 credit chip!")
winnings = 1000
celebrate = 1
if (symbol1 == "platinum coin" && symbol2 == "platinum coin" && symbol3 == "platinum coin")
output = "<span class='notice'>Three platinum coins! The slot machine deposits a platinum chip!</span>"
output = span_notice("Three platinum coins! The slot machine deposits a platinum chip!")
platinumwin = TRUE
celebrate = 1
@@ -300,12 +300,12 @@
if(do_after(user, 20 * W.toolspeed))
if(!src) return
to_chat(user, "<span class='notice'>You [anchored? "un" : ""]secured \the [src]!</span>")
to_chat(user, span_notice("You [anchored? "un" : ""]secured \the [src]!"))
anchored = !anchored
return
if(!anchored)
to_chat(user,"<span class='notice'> The slot machine isn't secured.</span>")
to_chat(user,span_notice(" The slot machine isn't secured."))
return
var/handled = 0
@@ -339,7 +339,7 @@
to_chat(user,"<span class='notice'>You dont have enough Thalers to gamble!</span> ")
return
to_chat(user,"<span class='notice'>You puts 5 Thalers in the slot machine and presses start.</span>")
to_chat(user,span_notice("You puts 5 Thalers in the slot machine and presses start."))
cashmoney.worth -= 5
cashmoney.update_icon()
@@ -390,44 +390,44 @@
spawn(delaytime)
to_chat(user,"<span class='notice'>The slot machine flashes with bright colours as the slots lights up with a [symbol1], a [symbol2] and a [symbol3]!</span>")
to_chat(user,span_notice("The slot machine flashes with bright colours as the slots lights up with a [symbol1], a [symbol2] and a [symbol3]!"))
if (symbol1 == "cherry" && symbol2 == "cherry" && symbol3 == "cherry")
output = "<span class='notice'>Three cherries! The slot machine deposits 25 Thalers!</span>"
output = span_notice("Three cherries! The slot machine deposits 25 Thalers!")
winnings = 25
if ((symbol1 != "cherry" && symbol2 == "cherry" && symbol3 == "cherry") || (symbol1 == "cherry" && symbol2 != "cherry" && symbol3 == "cherry") ||(symbol1 == "cherry" && symbol2 == "cherry" && symbol3 != "cherry"))
output = "<span class='notice'>Two cherries! The slot machine deposits 10 Thalers!</span>"
output = span_notice("Two cherries! The slot machine deposits 10 Thalers!")
winnings = 10
if (symbol1 == "lemon" && symbol2 == "lemon" && symbol3 == "lemon")
output = "<span class='notice'>Three lemons! The slot machine deposits 50 Thalers!</span>"
output = span_notice("Three lemons! The slot machine deposits 50 Thalers!")
winnings = 50
if (symbol1 == "watermelon" && symbol2 == "watermelon" && symbol3 == "watermelon")
output = "<span class='notice'>Three watermelons! The slot machine deposits 75 Thalers!</span>"
output = span_notice("Three watermelons! The slot machine deposits 75 Thalers!")
winnings = 75
if (symbol1 == "bell" && symbol2 == "bell" && symbol3 == "bell")
output = "<span class='notice'>Three bells! The slot machine deposits 100 Thalers!</span>"
output = span_notice("Three bells! The slot machine deposits 100 Thalers!")
winnings = 100
if (symbol1 == "four leaf clover" && symbol2 == "four leaf clover" && symbol3 == "four leaf clover")
output = "<span class='notice'>Three four leaf clovers! The slot machine deposits 200 Thalers!</span>"
output = span_notice("Three four leaf clovers! The slot machine deposits 200 Thalers!")
winnings = 200
if (symbol1 == "seven" && symbol2 == "seven" && symbol3 == "seven")
output = "<span class='notice'>Three sevens! The slot machine deposits 500 Thalers!</span>"
output = span_notice("Three sevens! The slot machine deposits 500 Thalers!")
winnings = 500
celebrate = 1
if (symbol1 == "diamond" && symbol2 == "diamond" && symbol3 == "diamond")
output = "<span class='notice'>Three diamonds! The slot machine deposits 1000 Thalers!</span>"
output = span_notice("Three diamonds! The slot machine deposits 1000 Thalers!")
winnings = 1000
celebrate = 1
if (symbol1 == "platinum coin" && symbol2 == "platinum coin" && symbol3 == "platinum coin")
output = "<span class='notice'>Three platinum coins! The slot machine deposits a platinum chip!</span>"
output = span_notice("Three platinum coins! The slot machine deposits a platinum chip!")
platinumwin = TRUE;
celebrate = 1