mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-23 15:38:08 +00:00
*TABLEPASS was already totally obsolete. FPRINT was used, but it was on virtually everything anyway. Removes those flags from every instance where they were used. Also assigned and removed other flags where it made sense. If it is desired, I can revive the flag as NOFPRINT, which would retain the original functionality, though inverted. That way it would be be used only where it was intentional (holodeck items could use this for example).
59 lines
1.3 KiB
Plaintext
59 lines
1.3 KiB
Plaintext
/obj/item/weapon/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 = 15.0
|
|
throw_speed = 1
|
|
throw_range = 7
|
|
w_class = 4.0
|
|
|
|
var/charges = 0 //how many restocking "charges" the refill has
|
|
|
|
/obj/item/weapon/vending_refill/New()
|
|
..()
|
|
name = "\improper [machine_name] restocking unit"
|
|
|
|
/obj/item/weapon/vending_refill/examine()
|
|
set src in usr
|
|
..()
|
|
if(charges)
|
|
usr << "It can restock [charges] item(s)."
|
|
else
|
|
usr << "It's empty!"
|
|
|
|
//NOTE I decided to go for about 1/3 of a machine's capacity
|
|
|
|
/obj/item/weapon/vending_refill/boozeomat
|
|
machine_name = "Booze-O-Mat"
|
|
icon_state = "refill_booze"
|
|
charges = 50//of 138
|
|
|
|
/obj/item/weapon/vending_refill/coffee
|
|
machine_name = "hot drinks"
|
|
icon_state = "refill_joe"
|
|
charges = 30//of 85
|
|
|
|
/obj/item/weapon/vending_refill/snack
|
|
machine_name = "Getmore Chocolate Corp"
|
|
charges = 15//of 48
|
|
|
|
/obj/item/weapon/vending_refill/cola
|
|
machine_name = "Robust Softdrinks"
|
|
icon_state = "refill_cola"
|
|
charges = 20//of 65
|
|
|
|
/obj/item/weapon/vending_refill/cigarette
|
|
machine_name = "cigarette"
|
|
icon_state = "refill_smoke"
|
|
charges = 10// of 30
|
|
|
|
/obj/item/weapon/vending_refill/autodrobe
|
|
machine_name = "AutoDrobe"
|
|
icon_state = "refill_costume"
|
|
charges = 28// of 58
|