mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2025-12-27 10:41:42 +00:00
89 lines
2.0 KiB
Plaintext
89 lines
2.0 KiB
Plaintext
/obj/item/vending_refill
|
|
name = "resupply canister"
|
|
var/machine_name = "Generic"
|
|
|
|
icon = 'icons/obj/vending_restock.dmi'
|
|
icon_state = "refill_snack"
|
|
item_state = "restock_unit"
|
|
flags = CONDUCT
|
|
force = 7.0
|
|
throwforce = 10.0
|
|
throw_speed = 1
|
|
throw_range = 7
|
|
w_class = WEIGHT_CLASS_BULKY
|
|
|
|
var/charges = 0 //how many restocking "charges" the refill has
|
|
|
|
/obj/item/vending_refill/New(amt = -1)
|
|
..()
|
|
name = "\improper [machine_name] restocking unit"
|
|
if(isnum(amt) && amt > -1)
|
|
charges = amt
|
|
|
|
/obj/item/vending_refill/examine(mob/user)
|
|
..(user)
|
|
if(charges)
|
|
to_chat(user, "It can restock [charges] item(s).")
|
|
else
|
|
to_chat(user, "It's empty!")
|
|
|
|
//NOTE I decided to go for about 1/3 of a machine's capacity
|
|
|
|
/obj/item/vending_refill/boozeomat
|
|
machine_name = "Booze-O-Mat"
|
|
icon_state = "refill_booze"
|
|
charges = 46//of 138
|
|
|
|
/obj/item/vending_refill/coffee
|
|
machine_name = "hot drinks"
|
|
icon_state = "refill_joe"
|
|
charges = 35//of 105
|
|
|
|
/obj/item/vending_refill/snack
|
|
machine_name = "Getmore Chocolate Corp"
|
|
charges = 16//of 48
|
|
|
|
/obj/item/vending_refill/cola
|
|
machine_name = "Robust Softdrinks"
|
|
icon_state = "refill_cola"
|
|
charges = 21//of 65
|
|
|
|
/obj/item/vending_refill/cigarette
|
|
machine_name = "cigarette"
|
|
icon_state = "refill_smoke"
|
|
charges = 9// of 30
|
|
|
|
/obj/item/vending_refill/autodrobe
|
|
machine_name = "AutoDrobe"
|
|
icon_state = "refill_costume"
|
|
charges = 19// of 58
|
|
|
|
/obj/item/vending_refill/hatdispenser
|
|
machine_name = "hat"
|
|
icon_state = "refill_costume"
|
|
charges = 18// of 56
|
|
|
|
/obj/item/vending_refill/suitdispenser
|
|
machine_name = "suit"
|
|
icon_state = "refill_costume"
|
|
charges = 68// of 206
|
|
|
|
/obj/item/vending_refill/shoedispenser
|
|
machine_name = "shoe"
|
|
icon_state = "refill_costume"
|
|
charges = 30// of 91
|
|
|
|
/obj/item/vending_refill/clothing
|
|
machine_name = "ClothesMate"
|
|
icon_state = "refill_clothes"
|
|
charges = 20// of 62
|
|
|
|
/obj/item/vending_refill/crittercare
|
|
machine_name = "CritterCare"
|
|
icon_state = "refill_pet"
|
|
charges = 31// of 94
|
|
|
|
/obj/item/vending_refill/chinese
|
|
machine_name = "MrChangs"
|
|
charges = 8// of 24
|