mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-23 12:07:27 +01:00
BRUTAL Part 1 - No proc var/ in procs
This commit is contained in:
@@ -59,7 +59,7 @@
|
||||
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)
|
||||
/obj/machinery/arcade/attackby(obj/item/O as obj, mob/user as mob, params)
|
||||
if(istype(O, /obj/item/screwdriver) && anchored)
|
||||
playsound(src.loc, O.usesound, 50, 1)
|
||||
panel_open = !panel_open
|
||||
@@ -93,7 +93,7 @@
|
||||
cashmoney.use(token_price)
|
||||
return 1
|
||||
|
||||
/obj/machinery/arcade/proc/pay_with_card(var/obj/item/card/id/I, var/mob/user)
|
||||
/obj/machinery/arcade/proc/pay_with_card(obj/item/card/id/I, mob/user)
|
||||
visible_message("<span class='info'>[usr] swipes a card through [src].</span>")
|
||||
var/datum/money_account/customer_account = attempt_account_access_nosec(I.associated_account_number)
|
||||
if(!customer_account)
|
||||
|
||||
@@ -69,7 +69,7 @@
|
||||
w_class = WEIGHT_CLASS_TINY
|
||||
max_amount = 9999 //Dang that's a lot of tickets
|
||||
|
||||
/obj/item/stack/tickets/New(var/loc, var/amount=null)
|
||||
/obj/item/stack/tickets/New(loc, amount=null)
|
||||
..()
|
||||
update_icon()
|
||||
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
icon_state = "prize_counter-on"
|
||||
return
|
||||
|
||||
/obj/machinery/prize_counter/attackby(var/obj/item/O as obj, var/mob/user as mob, params)
|
||||
/obj/machinery/prize_counter/attackby(obj/item/O as obj, mob/user as mob, params)
|
||||
if(istype(O, /obj/item/stack/tickets))
|
||||
var/obj/item/stack/tickets/T = O
|
||||
if(user.unEquip(T)) //Because if you can't drop it for some reason, you shouldn't be increasing the tickets var
|
||||
|
||||
@@ -7,7 +7,7 @@ GLOBAL_DATUM_INIT(global_prizes, /datum/prizes, new())
|
||||
for(var/itempath in subtypesof(/datum/prize_item))
|
||||
prizes += new itempath()
|
||||
|
||||
/datum/prizes/proc/PlaceOrder(var/obj/machinery/prize_counter/prize_counter, var/itemID)
|
||||
/datum/prizes/proc/PlaceOrder(obj/machinery/prize_counter/prize_counter, itemID)
|
||||
if(!prize_counter.Adjacent(usr))
|
||||
to_chat(usr, "<span class='warning'>You need to be closer!</span>")
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user