mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 18:22:39 +00:00
[MIRROR] quick voucher fix (#11154)
Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
62e6ced4cb
commit
074ee09ccd
@@ -309,6 +309,8 @@
|
||||
to_chat(redeemer, span_notice("You insert your voucher into the machine!"))
|
||||
var/selection = tgui_input_list(redeemer, "Pick your equipment.", "Mining Voucher Redemption", list("Kinetic Accelerator + KA Addon", "Resonator + Advanced Ore Scanner", "Survival Pistol & Machete + Survival Addon","1000 Points"))
|
||||
var/drop_location = drop_location()
|
||||
if(QDELETED(voucher))
|
||||
return
|
||||
if(!Adjacent(redeemer))
|
||||
to_chat(redeemer, span_warning("You must stay near the machine to use it."))
|
||||
return
|
||||
@@ -319,6 +321,8 @@
|
||||
|
||||
if("Kinetic Accelerator + KA Addon") //1250-2100 points worth
|
||||
var/addon_selection = tgui_input_list(redeemer, "Pick your addon", "Mining Voucher Redemption", list("Cooldown", "Range","Holster")) //Just the basics. Nothing too crazy.
|
||||
if(QDELETED(voucher))
|
||||
return
|
||||
if(!addon_selection)
|
||||
to_chat(redeemer, span_warning("You must select an addon."))
|
||||
return
|
||||
@@ -335,10 +339,11 @@
|
||||
if("Resonator + Advanced Ore Scanner") //1400 points worth
|
||||
new /obj/item/resonator(drop_location)
|
||||
new /obj/item/mining_scanner/advanced(drop_location)
|
||||
qdel(voucher)
|
||||
|
||||
if("Survival Pistol & Machete + Survival Addon") // ~3000-3500 points worth.
|
||||
var/addon_selection = tgui_input_list(redeemer, "Pick your survival addon", "Mining Voucher Redemption", list("Shelter Capsule", "Glucose", "Panacea", "Trauma", "Medipens")) //Just the basics. Nothing too crazy.
|
||||
if(QDELETED(voucher))
|
||||
return
|
||||
if(!addon_selection)
|
||||
to_chat(redeemer, span_warning("You must select an addon."))
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user