From f57d5f85f272cb13510f2bf08aa594b910de85e8 Mon Sep 17 00:00:00 2001 From: kcin2001 Date: Sun, 14 Mar 2021 14:46:14 -0700 Subject: [PATCH] adds ticket redemption the commits that added prize tickets to here and virgo missed this, i found where it came form (Cit) and copied it over, tested and it works fine --- code/game/machinery/computer/arcade.dm | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/code/game/machinery/computer/arcade.dm b/code/game/machinery/computer/arcade.dm index 0cfff1c775..0dc481f896 100644 --- a/code/game/machinery/computer/arcade.dm +++ b/code/game/machinery/computer/arcade.dm @@ -1322,4 +1322,18 @@ wintick = 0 gameStatus = "CLAWMACHINE_NEW" emagged = 1 - return 1 \ No newline at end of file + return 1 + +/obj/machinery/computer/arcade/attackby(obj/item/O, mob/user, params) + if(istype(O, /obj/item/stack/arcadeticket)) + var/obj/item/stack/arcadeticket/T = O + var/amount = T.get_amount() + if(amount <2) + to_chat(user, "You need 2 tickets to claim a prize!") + return + prizevend(user) + T.pay_tickets() + T.update_icon() + O = T + to_chat(user, "You turn in 2 tickets to the [src] and claim a prize!") + return