Mining Coin Fix (#10111)

This commit is contained in:
Geeves
2020-10-01 18:12:17 +02:00
committed by GitHub
parent 440b671316
commit ba0d4cbd2b
2 changed files with 7 additions and 1 deletions
+1 -1
View File
@@ -206,7 +206,7 @@ var/global/list/minevendor_list = list( //keep in order of price
/obj/machinery/mineral/equipment_vendor/attackby(obj/item/I, mob/user, params)
if(istype(I, /obj/item/coin/mining))
var/choice = input(user, "Which special equipment would you like to dispense from \the [src]?", capitalize_first_letters(name)) as null|anything in list("Enhanced Power Converter", "Hand-held Drill")
if(!choice || !I || !Adjacent(user))
if(!choice || QDELETED(I) || !Adjacent(user))
return
var/obj/dispensed_equipment
switch(choice)