mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-19 11:05:03 +01:00
Reduce lines by removing blank lines added by PJ's script
This commit is contained in:
@@ -24,21 +24,16 @@
|
||||
..(user)
|
||||
if(freeplay)
|
||||
to_chat(user, "Someone enabled freeplay on this machine!")
|
||||
|
||||
else
|
||||
if(token_price)
|
||||
to_chat(user, "\The [src.name] costs [token_price] credits per play.")
|
||||
|
||||
if(!tokens)
|
||||
to_chat(user, "\The [src.name] has no available play credits. Better feed the machine!")
|
||||
|
||||
else if(tokens == 1)
|
||||
to_chat(user, "\The [src.name] has only 1 play credit left!")
|
||||
|
||||
else
|
||||
to_chat(user, "\The [src.name] has [tokens] play credits!")
|
||||
|
||||
|
||||
/obj/machinery/arcade/attack_hand(mob/user as mob)
|
||||
if(..())
|
||||
if(in_use && src == user.machine) //this one checks if they fell down/died and closes the game
|
||||
@@ -53,7 +48,6 @@
|
||||
return
|
||||
if(!tokens && !freeplay)
|
||||
to_chat(user, "\The [src.name] doesn't have enough credits to play! Pay first!")
|
||||
|
||||
return
|
||||
if(!in_use && (tokens || freeplay))
|
||||
in_use = 1
|
||||
@@ -62,7 +56,6 @@
|
||||
if(in_use)
|
||||
if(src != user.machine)
|
||||
to_chat(user, "Someone else is already playing this machine, please wait your turn!")
|
||||
|
||||
return
|
||||
|
||||
/obj/machinery/arcade/attackby(var/obj/item/O as obj, var/mob/user as mob, params)
|
||||
@@ -70,7 +63,6 @@
|
||||
playsound(src.loc, 'sound/items/Screwdriver.ogg', 50, 1)
|
||||
panel_open = !panel_open
|
||||
to_chat(user, "You [panel_open ? "open" : "close"] the maintenance panel.")
|
||||
|
||||
update_icon()
|
||||
return
|
||||
if(!freeplay)
|
||||
@@ -93,7 +85,6 @@
|
||||
/obj/machinery/arcade/proc/pay_with_cash(var/obj/item/weapon/spacecash/cashmoney, var/mob/user)
|
||||
if(cashmoney.get_total() < token_price)
|
||||
to_chat(user, "\icon[cashmoney] <span class='warning'>That is not enough money.</span>")
|
||||
|
||||
return 0
|
||||
visible_message("<span class='info'>[usr] inserts a credit chip into [src].</span>")
|
||||
var/left = cashmoney.get_total() - token_price
|
||||
@@ -108,12 +99,10 @@
|
||||
var/datum/money_account/customer_account = attempt_account_access_nosec(I.associated_account_number)
|
||||
if (!customer_account)
|
||||
to_chat(user, "Error: Unable to access account. Please contact technical support if problem persists.")
|
||||
|
||||
return 0
|
||||
|
||||
if(customer_account.suspended)
|
||||
to_chat(user, "Unable to access account: account suspended.")
|
||||
|
||||
return 0
|
||||
|
||||
// Have the customer punch in the PIN before checking if there's enough money. Prevents people from figuring out acct is
|
||||
@@ -124,12 +113,10 @@
|
||||
|
||||
if(!customer_account)
|
||||
to_chat(user, "Unable to access account: incorrect credentials.")
|
||||
|
||||
return 0
|
||||
|
||||
if(token_price > customer_account.money)
|
||||
to_chat(user, "Insufficient funds in account.")
|
||||
|
||||
return 0
|
||||
else
|
||||
// Okay to move the money at this point
|
||||
|
||||
@@ -39,13 +39,11 @@
|
||||
qdel(T)
|
||||
else
|
||||
to_chat(user, "<span class='warning'>\The [T] seems stuck to your hand!</span>")
|
||||
|
||||
return
|
||||
if(istype(O, /obj/item/weapon/screwdriver) && anchored)
|
||||
playsound(src.loc, 'sound/items/Screwdriver.ogg', 50, 1)
|
||||
panel_open = !panel_open
|
||||
to_chat(user, "You [panel_open ? "open" : "close"] the maintenance panel.")
|
||||
|
||||
update_icon()
|
||||
return
|
||||
if(panel_open)
|
||||
@@ -182,11 +180,9 @@ td.cost.toomuch {
|
||||
return
|
||||
if(!global_prizes.PlaceOrder(src, itemID))
|
||||
to_chat(usr, "<span class='warning'>Unable to complete the exchange.</span>")
|
||||
|
||||
else
|
||||
to_chat(usr, "<span class='notice'>You've successfully purchased the item.</span>")
|
||||
|
||||
|
||||
interact(usr)
|
||||
return
|
||||
|
||||
|
||||
Reference in New Issue
Block a user