merge conflict and job/dept discounts support.
This commit is contained in:
@@ -123,14 +123,12 @@ IF YOU MODIFY THE PRODUCTS LIST OF A MACHINE, MAKE SURE TO UPDATE ITS RESUPPLY C
|
||||
var/extended_inventory
|
||||
///Are we checking the users ID
|
||||
var/scan_id = TRUE
|
||||
///Coins that we accept?
|
||||
var/obj/item/coin/coin
|
||||
///Bills we accept?
|
||||
var/obj/item/stack/spacecash/bill
|
||||
///Default price of items if not overridden
|
||||
var/default_price = 25
|
||||
///Default price of premium items if not overridden
|
||||
var/extra_price = 50
|
||||
///cost multiplier per department or access
|
||||
var/list/cost_multiplier_per_dept = list()
|
||||
/**
|
||||
* Is this item on station or not
|
||||
*
|
||||
@@ -200,7 +198,6 @@ IF YOU MODIFY THE PRODUCTS LIST OF A MACHINE, MAKE SURE TO UPDATE ITS RESUPPLY C
|
||||
|
||||
/obj/machinery/vending/Destroy()
|
||||
QDEL_NULL(wires)
|
||||
QDEL_NULL(coin)
|
||||
return ..()
|
||||
|
||||
/obj/machinery/vending/can_speak()
|
||||
@@ -529,7 +526,6 @@ GLOBAL_LIST_EMPTY(vending_products)
|
||||
/obj/machinery/vending/ui_static_data(mob/user)
|
||||
. = list()
|
||||
.["onstation"] = onstation
|
||||
.["department"] = payment_department
|
||||
.["product_records"] = list()
|
||||
for (var/datum/data/vending_product/R in product_records)
|
||||
var/list/data = list(
|
||||
@@ -565,21 +561,27 @@ GLOBAL_LIST_EMPTY(vending_products)
|
||||
|
||||
/obj/machinery/vending/ui_data(mob/user)
|
||||
. = list()
|
||||
var/mob/living/carbon/human/H
|
||||
var/obj/item/card/id/C
|
||||
if(ishuman(user))
|
||||
H = user
|
||||
C = H.get_idcard(TRUE)
|
||||
if(C?.registered_account)
|
||||
.["user"] = list()
|
||||
.["user"]["name"] = C.registered_account.account_holder
|
||||
.["user"]["cash"] = C.registered_account.account_balance
|
||||
if(C.registered_account.account_job)
|
||||
.["user"]["job"] = C.registered_account.account_job.title
|
||||
.["user"]["department"] = C.registered_account.account_job.paycheck_department
|
||||
else
|
||||
.["user"]["job"] = "No Job"
|
||||
.["user"]["department"] = "No Department"
|
||||
var/obj/item/card/id/C = user.get_idcard(TRUE)
|
||||
.["cost_mult"] = 1
|
||||
.["cost_text"] = ""
|
||||
if(C && C.registered_account)
|
||||
.["user"] = list()
|
||||
.["user"]["name"] = C.registered_account.account_holder
|
||||
.["user"]["cash"] = C.registered_account.account_balance
|
||||
if(C.registered_account.account_job)
|
||||
.["user"]["job"] = C.registered_account.account_job.title
|
||||
else
|
||||
.["user"]["job"] = "No Job"
|
||||
var/cost_mult = get_best_discount(C)
|
||||
if(cost_mult != 1)
|
||||
.["cost_mult"] = cost_mult
|
||||
switch(cost_mult)
|
||||
if(0)
|
||||
.["cost_text"] = "FREE"
|
||||
if(0 to 1)
|
||||
.["cost_text"] = " [(1 - cost_mult) * 100]% OFF"
|
||||
if(1 to INFINITY)
|
||||
.["cost_text"] = " [(cost_mult - 1) * 100]% EXTRA"
|
||||
.["stock"] = list()
|
||||
for (var/datum/data/vending_product/R in product_records + coin_records + hidden_records)
|
||||
.["stock"][R.name] = R.amount
|
||||
@@ -621,10 +623,8 @@ GLOBAL_LIST_EMPTY(vending_products)
|
||||
flick(icon_deny,src)
|
||||
vend_ready = TRUE
|
||||
return
|
||||
if(onstation && ishuman(usr))
|
||||
var/mob/living/carbon/human/H = usr
|
||||
var/obj/item/card/id/C = H.get_idcard(TRUE)
|
||||
|
||||
if(onstation && price_to_use >= 0)
|
||||
var/obj/item/card/id/C = usr.get_idcard(TRUE)
|
||||
if(!C)
|
||||
say("No card found.")
|
||||
flick(icon_deny,src)
|
||||
@@ -636,10 +636,10 @@ GLOBAL_LIST_EMPTY(vending_products)
|
||||
vend_ready = TRUE
|
||||
return
|
||||
var/datum/bank_account/account = C.registered_account
|
||||
if(account.account_job && account.account_job.paycheck_department == payment_department)
|
||||
price_to_use = 0
|
||||
if(coin_records.Find(R) || hidden_records.Find(R))
|
||||
price_to_use = R.custom_premium_price ? R.custom_premium_price : extra_price
|
||||
else
|
||||
price_to_use = round(price_to_use * get_best_discount(C))
|
||||
if(price_to_use && !account.adjust_money(-price_to_use))
|
||||
say("You do not possess the funds to purchase [R.name].")
|
||||
flick(icon_deny,src)
|
||||
@@ -698,6 +698,25 @@ GLOBAL_LIST_EMPTY(vending_products)
|
||||
|
||||
say(message)
|
||||
|
||||
/**
|
||||
* Gets the best discount from a given ID card, comparing its access and paycheck depart with cost_multiplier_per_dept.
|
||||
* It only applies to the regular selection, not premium or contraband. And a bank account is still required.
|
||||
* But it can also be used to charge more to certain departments or accesses. :)
|
||||
*
|
||||
* Arguments:
|
||||
* * list/dept_access_list - the list to compare
|
||||
*/
|
||||
/obj/machinery/vending/proc/get_best_discount(obj/item/card/id/C)
|
||||
var/list/discounts = NUMLIST2TEXTLIST(C.GetAccess())
|
||||
if(C.registered_account?.account_job)
|
||||
discounts += C.registered_account.account_job.paycheck_department
|
||||
discounts &= cost_multiplier_per_dept
|
||||
if(!length(discounts))
|
||||
return 1
|
||||
. = INFINITY
|
||||
for(var/k in discounts)
|
||||
. = min(cost_multiplier_per_dept[k], .)
|
||||
|
||||
/obj/machinery/vending/power_change()
|
||||
. = ..()
|
||||
if(powered())
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
armor = list("melee" = 100, "bullet" = 100, "laser" = 100, "energy" = 100, "bomb" = 0, "bio" = 0, "rad" = 0, "fire" = 100, "acid" = 50)
|
||||
refill_canister = /obj/item/vending_refill/assist
|
||||
resistance_flags = FIRE_PROOF
|
||||
default_price = 125
|
||||
default_price = 100
|
||||
extra_price = 100
|
||||
payment_department = NO_FREEBIES
|
||||
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
desc = "A vending machine for costumes."
|
||||
icon_state = "theater"
|
||||
icon_deny = "theater-deny"
|
||||
req_access = list(ACCESS_THEATRE)
|
||||
product_slogans = "Dress for success!;Suited and booted!;It's show time!;Why leave style up to fate? Use AutoDrobe!"
|
||||
vend_reply = "Thank you for using AutoDrobe!"
|
||||
products = list(/obj/item/clothing/suit/chickensuit = 1,
|
||||
@@ -124,7 +123,7 @@
|
||||
/obj/item/clothing/shoes/roman = 1,
|
||||
/obj/item/shield/riot/roman/fake = 1,
|
||||
/obj/item/skub = 1,
|
||||
/obj/item/clothing/under/costume/lobster = 1, // CIT CHANGES
|
||||
/obj/item/clothing/under/costume/lobster = 1,
|
||||
/obj/item/clothing/head/lobsterhat = 1,
|
||||
/obj/item/clothing/head/drfreezehat = 1,
|
||||
/obj/item/clothing/suit/dracula = 1,
|
||||
@@ -137,16 +136,19 @@
|
||||
/obj/item/clothing/under/costume/christmas/croptop/green = 3,
|
||||
/obj/item/clothing/head/christmashat = 3,
|
||||
/obj/item/clothing/head/christmashatg = 3,
|
||||
/obj/item/clothing/under/costume/drfreeze = 1) //End of Cit Changes
|
||||
/obj/item/clothing/under/costume/drfreeze = 1)
|
||||
|
||||
refill_canister = /obj/item/vending_refill/autodrobe
|
||||
default_price = 180
|
||||
extra_price = 360
|
||||
payment_department = ACCOUNT_SRV
|
||||
|
||||
/obj/machinery/vending/autodrobe/Initialize()
|
||||
. = ..()
|
||||
cost_multiplier_per_dept = list("[ACCESS_THEATRE]" = 0)
|
||||
|
||||
/obj/machinery/vending/autodrobe/all_access
|
||||
desc = "A vending machine for costumes. This model appears to have no access restrictions."
|
||||
req_access = null
|
||||
|
||||
/obj/machinery/vending/autodrobe/canLoadItem(obj/item/I,mob/user)
|
||||
return (I.type in products)
|
||||
|
||||
@@ -39,15 +39,14 @@
|
||||
/obj/item/reagent_containers/food/drinks/bottle/trappist = 5)
|
||||
product_slogans = "I hope nobody asks me for a bloody cup o' tea...;Alcohol is humanity's friend. Would you abandon a friend?;Quite delighted to serve you!;Is nobody thirsty on this station?"
|
||||
product_ads = "Drink up!;Booze is good for you!;Alcohol is humanity's best friend.;Quite delighted to serve you!;Care for a nice, cold beer?;Nothing cures you like booze!;Have a sip!;Have a drink!;Have a beer!;Beer is good for you!;Only the finest alcohol!;Best quality booze since 2053!;Award-winning wine!;Maximum alcohol!;Man loves beer.;A toast for progress!"
|
||||
req_access = list(ACCESS_BAR)
|
||||
refill_canister = /obj/item/vending_refill/boozeomat
|
||||
default_price = 120
|
||||
extra_price = 100
|
||||
payment_department = ACCOUNT_SRV
|
||||
cost_multiplier_per_dept = list(ACCOUNT_SRV = 0)
|
||||
|
||||
/obj/machinery/vending/boozeomat/all_access
|
||||
desc = "A technological marvel, supposedly able to mix just the mixture you'd like to drink the moment you ask for one. This model appears to have no access restrictions."
|
||||
req_access = null
|
||||
|
||||
/obj/machinery/vending/boozeomat/pubby_maint //abandoned bar on Pubbystation
|
||||
products = list(/obj/item/reagent_containers/food/drinks/bottle/whiskey = 1,
|
||||
@@ -59,7 +58,6 @@
|
||||
/obj/item/reagent_containers/food/drinks/ice = 3,
|
||||
/obj/item/reagent_containers/food/drinks/drinkingglass/shotglass = 6,
|
||||
/obj/item/reagent_containers/food/drinks/flask = 1)
|
||||
req_access = null
|
||||
|
||||
/obj/machinery/vending/boozeomat/pubby_captain //Captain's quarters on Pubbystation
|
||||
products = list(/obj/item/reagent_containers/food/drinks/bottle/rum = 1,
|
||||
@@ -68,10 +66,17 @@
|
||||
/obj/item/reagent_containers/food/drinks/drinkingglass = 6,
|
||||
/obj/item/reagent_containers/food/drinks/ice = 1,
|
||||
/obj/item/reagent_containers/food/drinks/drinkingglass/shotglass = 4);
|
||||
req_access = list(ACCESS_CAPTAIN)
|
||||
|
||||
/obj/machinery/vending/boozeomat/pubby_captain/Initialize()
|
||||
. = ..()
|
||||
cost_multiplier_per_dept = list("[ACCESS_CAPTAIN]" = 0)
|
||||
|
||||
/obj/machinery/vending/boozeomat/syndicate_access
|
||||
req_access = list(ACCESS_SYNDICATE)
|
||||
payment_department = NO_FREEBIES
|
||||
|
||||
/obj/machinery/vending/boozeomat/syndicate_access/Initialize()
|
||||
. = ..()
|
||||
cost_multiplier_per_dept = list("[ACCESS_SYNDICATE]" = 0)
|
||||
|
||||
/obj/item/vending_refill/boozeomat
|
||||
machine_name = "Booze-O-Mat"
|
||||
|
||||
@@ -19,6 +19,7 @@
|
||||
default_price = 250
|
||||
extra_price = 500
|
||||
payment_department = ACCOUNT_SRV
|
||||
cost_multiplier_per_dept = list(ACCOUNT_SRV = 0)
|
||||
|
||||
/obj/item/vending_refill/cart
|
||||
icon_state = "refill_pda"
|
||||
|
||||
@@ -33,6 +33,11 @@
|
||||
/obj/item/storage/box/matches = 10,
|
||||
/obj/item/lighter/greyscale = 4,
|
||||
/obj/item/storage/fancy/rollingpapers = 5)
|
||||
payment_department = NO_FREEBIES
|
||||
|
||||
/obj/machinery/vending/cigarette/syndicate/Initialize()
|
||||
. = ..()
|
||||
cost_multiplier_per_dept = list("[ACCESS_SYNDICATE]" = 0)
|
||||
|
||||
/obj/machinery/vending/cigarette/beach //Used in the lavaland_biodome_beach.dmm ruin
|
||||
name = "\improper ShadyCigs Ultra"
|
||||
|
||||
@@ -32,6 +32,7 @@
|
||||
default_price = 50
|
||||
extra_price = 250
|
||||
payment_department = ACCOUNT_SRV
|
||||
cost_multiplier_per_dept = list(ACCOUNT_SRV = 0)
|
||||
|
||||
/obj/item/vending_refill/dinnerware
|
||||
icon_state = "refill_cook"
|
||||
@@ -4,7 +4,6 @@
|
||||
desc = "Everything you need for do-it-yourself station repair."
|
||||
icon_state = "engi"
|
||||
icon_deny = "engi-deny"
|
||||
req_access = list(ACCESS_ENGINE_EQUIP)
|
||||
products = list(/obj/item/clothing/under/rank/engineering/chief_engineer = 4,
|
||||
/obj/item/clothing/under/rank/engineering/engineer = 4,
|
||||
/obj/item/clothing/shoes/sneakers/orange = 4,
|
||||
@@ -32,3 +31,4 @@
|
||||
default_price = 450
|
||||
extra_price = 500
|
||||
payment_department = ACCOUNT_ENG
|
||||
cost_multiplier_per_dept = list(ACCOUNT_ENG = 0)
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
desc = "Spare tool vending. What? Did you expect some witty description?"
|
||||
icon_state = "engivend"
|
||||
icon_deny = "engivend-deny"
|
||||
req_access = list(ACCESS_ENGINE_EQUIP)
|
||||
products = list(/obj/item/clothing/glasses/meson/engine = 5,
|
||||
/obj/item/clothing/glasses/welding = 5,
|
||||
/obj/item/multitool = 5,
|
||||
@@ -33,6 +32,7 @@
|
||||
default_price = 450
|
||||
extra_price = 500
|
||||
payment_department = ACCOUNT_ENG
|
||||
cost_multiplier_per_dept = list(ACCOUNT_ENG = 0)
|
||||
|
||||
/obj/item/vending_refill/engivend
|
||||
icon_state = "refill_engi"
|
||||
@@ -14,6 +14,7 @@
|
||||
default_price = 50
|
||||
extra_price = 250
|
||||
payment_department = ACCOUNT_SRV
|
||||
cost_multiplier_per_dept = list(ACCOUNT_SRV = 0)
|
||||
|
||||
/obj/item/vending_refill/games
|
||||
machine_name = "\improper Good Clean Fun"
|
||||
|
||||
@@ -27,4 +27,8 @@
|
||||
refill_canister = /obj/item/vending_refill/donksoft
|
||||
default_price = 150
|
||||
extra_price = 300
|
||||
payment_department = ACCOUNT_SRV
|
||||
payment_department = NO_FREEBIES
|
||||
|
||||
/obj/machinery/vending/toyliberationstation/Initialize()
|
||||
. = ..()
|
||||
cost_multiplier_per_dept = list("[ACCESS_SYNDICATE]" = 0)
|
||||
|
||||
@@ -4,7 +4,6 @@
|
||||
icon_state = "med"
|
||||
icon_deny = "med-deny"
|
||||
product_ads = "Go save some lives!;The best stuff for your medbay.;Only the finest tools.;Natural chemicals!;This stuff saves lives.;Don't you want some?;Ping!"
|
||||
req_access = list(ACCESS_MEDICAL)
|
||||
products = list(/obj/item/reagent_containers/syringe = 12,
|
||||
/obj/item/reagent_containers/dropper = 3,
|
||||
/obj/item/healthanalyzer = 4,
|
||||
@@ -47,9 +46,10 @@
|
||||
armor = list("melee" = 100, "bullet" = 100, "laser" = 100, "energy" = 100, "bomb" = 0, "bio" = 0, "rad" = 0, "fire" = 100, "acid" = 50)
|
||||
resistance_flags = FIRE_PROOF
|
||||
refill_canister = /obj/item/vending_refill/medical
|
||||
default_price = 250
|
||||
extra_price = 500
|
||||
default_price = 200
|
||||
extra_price = 200
|
||||
payment_department = ACCOUNT_MED
|
||||
cost_multiplier_per_dept = list(ACCOUNT_MED = 0)
|
||||
|
||||
/obj/item/vending_refill/medical
|
||||
machine_name = "NanoMed Plus"
|
||||
@@ -57,4 +57,8 @@
|
||||
|
||||
/obj/machinery/vending/medical/syndicate_access
|
||||
name = "\improper SyndiMed Plus"
|
||||
req_access = list(ACCESS_SYNDICATE)
|
||||
payment_department = NO_FREEBIES
|
||||
|
||||
/obj/machinery/vending/medical/syndicate_access/Initialize()
|
||||
. = ..()
|
||||
cost_multiplier_per_dept = list("[ACCESS_SYNDICATE]" = 0)
|
||||
|
||||
@@ -18,9 +18,10 @@
|
||||
armor = list("melee" = 100, "bullet" = 100, "laser" = 100, "energy" = 100, "bomb" = 0, "bio" = 0, "rad" = 0, "fire" = 100, "acid" = 50)
|
||||
resistance_flags = FIRE_PROOF
|
||||
refill_canister = /obj/item/vending_refill/wallmed
|
||||
default_price = 250
|
||||
extra_price = 500
|
||||
default_price = 0
|
||||
extra_price = 100
|
||||
payment_department = ACCOUNT_MED
|
||||
cost_multiplier_per_dept = list(ACCOUNT_MED = 0)
|
||||
|
||||
/obj/item/vending_refill/wallmed
|
||||
machine_name = "NanoMed"
|
||||
|
||||
@@ -60,6 +60,7 @@
|
||||
default_price = 100
|
||||
extra_price = 350
|
||||
payment_department = ACCOUNT_SRV
|
||||
cost_multiplier_per_dept = list(ACCOUNT_SRV = 0)
|
||||
|
||||
/obj/item/vending_refill/hydroseeds
|
||||
icon_state = "refill_hydro"
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
default_price = 100
|
||||
extra_price = 250
|
||||
payment_department = ACCOUNT_SRV
|
||||
cost_multiplier_per_dept = list(ACCOUNT_SRV = 0)
|
||||
|
||||
/obj/item/vending_refill/hydronutrients
|
||||
icon_state = "refill_hydro"
|
||||
|
||||
@@ -14,3 +14,4 @@
|
||||
default_price = 400
|
||||
extra_price = 600
|
||||
payment_department = ACCOUNT_SCI
|
||||
cost_multiplier_per_dept = list(ACCOUNT_SCI = 0)
|
||||
|
||||
@@ -4,7 +4,6 @@
|
||||
desc = "All the tools you need to create your own robot army."
|
||||
icon_state = "robotics"
|
||||
icon_deny = "robotics-deny"
|
||||
req_access = list(ACCESS_ROBOTICS)
|
||||
products = list(/obj/item/clothing/suit/toggle/labcoat = 4,
|
||||
/obj/item/clothing/under/rank/rnd/roboticist = 4,
|
||||
/obj/item/stack/cable_coil = 4,
|
||||
@@ -23,3 +22,4 @@
|
||||
resistance_flags = FIRE_PROOF
|
||||
default_price = 600
|
||||
payment_department = ACCOUNT_SCI
|
||||
cost_multiplier_per_dept = list(ACCOUNT_SCI = 0)
|
||||
|
||||
@@ -4,7 +4,6 @@
|
||||
product_ads = "Crack capitalist skulls!;Beat some heads in!;Don't forget - harm is good!;Your weapons are right here.;Handcuffs!;Freeze, scumbag!;Don't tase me bro!;Tase them, bro.;Why not have a donut?"
|
||||
icon_state = "sec"
|
||||
icon_deny = "sec-deny"
|
||||
req_access = list(ACCESS_SECURITY)
|
||||
products = list(/obj/item/restraints/handcuffs = 8,
|
||||
/obj/item/restraints/handcuffs/cable/zipties = 10,
|
||||
/obj/item/grenade/flashbang = 4,
|
||||
@@ -21,7 +20,7 @@
|
||||
/obj/item/clothing/head/helmet/blueshirt = 1,
|
||||
/obj/item/clothing/suit/armor/vest/blueshirt = 1,
|
||||
/obj/item/clothing/under/rank/security/officer/blueshirt = 1,
|
||||
/obj/item/clothing/gloves/tackler = 5,
|
||||
/obj/item/clothing/gloves/tackler = 5,
|
||||
/obj/item/ssword_kit = 1)
|
||||
armor = list("melee" = 100, "bullet" = 100, "laser" = 100, "energy" = 100, "bomb" = 0, "bio" = 0, "rad" = 0, "fire" = 100, "acid" = 50)
|
||||
resistance_flags = FIRE_PROOF
|
||||
@@ -29,6 +28,7 @@
|
||||
default_price = 650
|
||||
extra_price = 700
|
||||
payment_department = ACCOUNT_SEC
|
||||
cost_multiplier_per_dept = list(ACCOUNT_SEC = 0)
|
||||
|
||||
/obj/machinery/vending/security/pre_throw(obj/item/I)
|
||||
if(istype(I, /obj/item/grenade))
|
||||
|
||||
@@ -30,6 +30,7 @@
|
||||
default_price = 60
|
||||
extra_price = 160
|
||||
payment_department = ACCOUNT_SRV
|
||||
cost_multiplier_per_dept = list(ACCOUNT_SRV = 0)
|
||||
input_display_header = "Chef's Food Selection"
|
||||
|
||||
/obj/item/vending_refill/snack
|
||||
|
||||
@@ -32,6 +32,7 @@
|
||||
/obj/item/clothing/head/beret/sec/navyofficer = 5)
|
||||
refill_canister = /obj/item/vending_refill/wardrobe/sec_wardrobe
|
||||
payment_department = ACCOUNT_SEC
|
||||
cost_multiplier_per_dept = list(ACCOUNT_SEC = 0)
|
||||
|
||||
/obj/item/vending_refill/wardrobe/sec_wardrobe
|
||||
machine_name = "SecDrobe"
|
||||
@@ -68,6 +69,7 @@
|
||||
/obj/item/clothing/mask/surgical = 5)
|
||||
refill_canister = /obj/item/vending_refill/wardrobe/medi_wardrobe
|
||||
payment_department = ACCOUNT_MED
|
||||
cost_multiplier_per_dept = list(ACCOUNT_MED = 0)
|
||||
|
||||
/obj/item/vending_refill/wardrobe/medi_wardrobe
|
||||
machine_name = "MediDrobe"
|
||||
@@ -92,6 +94,7 @@
|
||||
/obj/item/clothing/head/hardhat/weldhat = 3)
|
||||
refill_canister = /obj/item/vending_refill/wardrobe/engi_wardrobe
|
||||
payment_department = ACCOUNT_ENG
|
||||
cost_multiplier_per_dept = list(ACCOUNT_ENG = 0)
|
||||
|
||||
/obj/item/vending_refill/wardrobe/engi_wardrobe
|
||||
machine_name = "EngiDrobe"
|
||||
@@ -114,6 +117,7 @@
|
||||
/obj/item/clothing/shoes/sneakers/black = 5)
|
||||
refill_canister = /obj/item/vending_refill/wardrobe/atmos_wardrobe
|
||||
payment_department = ACCOUNT_ENG
|
||||
cost_multiplier_per_dept = list(ACCOUNT_ENG = 0)
|
||||
|
||||
/obj/item/vending_refill/wardrobe/atmos_wardrobe
|
||||
machine_name = "AtmosDrobe"
|
||||
@@ -133,6 +137,7 @@
|
||||
/obj/item/radio/headset/headset_cargo = 3)
|
||||
refill_canister = /obj/item/vending_refill/wardrobe/cargo_wardrobe
|
||||
payment_department = ACCOUNT_CAR
|
||||
cost_multiplier_per_dept = list(ACCOUNT_CAR = 0)
|
||||
|
||||
/obj/item/vending_refill/wardrobe/cargo_wardrobe
|
||||
machine_name = "CargoDrobe"
|
||||
@@ -156,6 +161,7 @@
|
||||
contraband = list(/obj/item/clothing/suit/hooded/techpriest = 2)
|
||||
refill_canister = /obj/item/vending_refill/wardrobe/robo_wardrobe
|
||||
payment_department = ACCOUNT_SCI
|
||||
cost_multiplier_per_dept = list(ACCOUNT_SCI = 0)
|
||||
|
||||
/obj/item/vending_refill/wardrobe/robo_wardrobe
|
||||
machine_name = "RoboDrobe"
|
||||
@@ -179,6 +185,7 @@
|
||||
/obj/item/clothing/mask/gas = 5)
|
||||
refill_canister = /obj/item/vending_refill/wardrobe/science_wardrobe
|
||||
payment_department = ACCOUNT_SCI
|
||||
cost_multiplier_per_dept = list(ACCOUNT_SCI = 0)
|
||||
|
||||
/obj/item/vending_refill/wardrobe/science_wardrobe
|
||||
machine_name = "SciDrobe"
|
||||
@@ -199,6 +206,7 @@
|
||||
/obj/item/clothing/mask/bandana = 4)
|
||||
refill_canister = /obj/item/vending_refill/wardrobe/hydro_wardrobe
|
||||
payment_department = ACCOUNT_SRV
|
||||
cost_multiplier_per_dept = list(ACCOUNT_SRV = 0)
|
||||
|
||||
/obj/item/vending_refill/wardrobe/hydro_wardrobe
|
||||
machine_name = "HyDrobe"
|
||||
@@ -224,6 +232,7 @@
|
||||
/obj/item/storage/bag/books = 1)
|
||||
refill_canister = /obj/item/vending_refill/wardrobe/curator_wardrobe
|
||||
payment_department = ACCOUNT_CIV
|
||||
cost_multiplier_per_dept = list(ACCOUNT_CIV = 0)
|
||||
|
||||
/obj/item/vending_refill/wardrobe/curator_wardrobe
|
||||
machine_name = "CuraDrobe"
|
||||
@@ -253,6 +262,7 @@
|
||||
/obj/item/storage/belt/bandolier = 1)
|
||||
refill_canister = /obj/item/vending_refill/wardrobe/bar_wardrobe
|
||||
payment_department = ACCOUNT_SRV
|
||||
cost_multiplier_per_dept = list(ACCOUNT_SRV = 0)
|
||||
|
||||
/obj/item/vending_refill/wardrobe/bar_wardrobe
|
||||
machine_name = "BarDrobe"
|
||||
@@ -279,6 +289,7 @@
|
||||
/obj/item/book/granter/crafting_recipe/coldcooking = 2)
|
||||
refill_canister = /obj/item/vending_refill/wardrobe/chef_wardrobe
|
||||
payment_department = ACCOUNT_SRV
|
||||
cost_multiplier_per_dept = list(ACCOUNT_SRV = 0)
|
||||
|
||||
/obj/item/vending_refill/wardrobe/chef_wardrobe
|
||||
machine_name = "ChefDrobe"
|
||||
@@ -311,6 +322,7 @@
|
||||
/obj/item/stack/cable_coil/random = 4)
|
||||
refill_canister = /obj/item/vending_refill/wardrobe/jani_wardrobe
|
||||
payment_department = ACCOUNT_SRV
|
||||
cost_multiplier_per_dept = list(ACCOUNT_SRV = 0)
|
||||
|
||||
/obj/item/vending_refill/wardrobe/jani_wardrobe
|
||||
machine_name = "JaniDrobe"
|
||||
@@ -343,6 +355,7 @@
|
||||
/obj/item/clothing/accessory/lawyers_badge = 3)
|
||||
refill_canister = /obj/item/vending_refill/wardrobe/law_wardrobe
|
||||
payment_department = ACCOUNT_CIV
|
||||
cost_multiplier_per_dept = list(ACCOUNT_CIV = 0)
|
||||
|
||||
/obj/item/vending_refill/wardrobe/law_wardrobe
|
||||
machine_name = "LawDrobe"
|
||||
@@ -369,6 +382,8 @@
|
||||
premium = list(/obj/item/toy/plush/plushvar = 1,
|
||||
/obj/item/toy/plush/narplush = 1)
|
||||
refill_canister = /obj/item/vending_refill/wardrobe/chap_wardrobe
|
||||
payment_department = ACCOUNT_CIV
|
||||
cost_multiplier_per_dept = list(ACCOUNT_CIV = 0)
|
||||
|
||||
/obj/item/vending_refill/wardrobe/chap_wardrobe
|
||||
machine_name = "ChapDrobe"
|
||||
@@ -391,6 +406,7 @@
|
||||
/obj/item/fermichem/pHbooklet = 3)//pH indicator)
|
||||
refill_canister = /obj/item/vending_refill/wardrobe/chem_wardrobe
|
||||
payment_department = ACCOUNT_MED
|
||||
cost_multiplier_per_dept = list(ACCOUNT_MED = 0)
|
||||
|
||||
/obj/item/vending_refill/wardrobe/chem_wardrobe
|
||||
machine_name = "ChemDrobe"
|
||||
@@ -410,6 +426,7 @@
|
||||
/obj/item/storage/backpack/satchel/gen = 3)
|
||||
refill_canister = /obj/item/vending_refill/wardrobe/gene_wardrobe
|
||||
payment_department = ACCOUNT_MED
|
||||
cost_multiplier_per_dept = list(ACCOUNT_MED = 0)
|
||||
|
||||
/obj/item/vending_refill/wardrobe/gene_wardrobe
|
||||
machine_name = "GeneDrobe"
|
||||
@@ -431,6 +448,7 @@
|
||||
/obj/item/storage/backpack/satchel/vir = 3)
|
||||
refill_canister = /obj/item/vending_refill/wardrobe/viro_wardrobe
|
||||
payment_department = ACCOUNT_MED
|
||||
cost_multiplier_per_dept = list(ACCOUNT_MED = 0)
|
||||
|
||||
/obj/item/vending_refill/wardrobe/viro_wardrobe
|
||||
machine_name = "ViroDrobe"
|
||||
@@ -441,7 +459,6 @@
|
||||
icon_state = "capsdrobe"
|
||||
icon_deny = "capsdrobe-deny"
|
||||
product_ads = "Only the greatest for a commander such as ours."
|
||||
req_access = list(ACCESS_CAPTAIN)
|
||||
vend_reply = "A wonderful day to you, great leader."
|
||||
products = list(/obj/item/clothing/suit/hooded/wintercoat/captain = 1,
|
||||
/obj/item/storage/backpack/captain = 1,
|
||||
@@ -463,6 +480,10 @@
|
||||
refill_canister = /obj/item/vending_refill/wardrobe/cap_wardrobe
|
||||
payment_department = ACCOUNT_CIV
|
||||
|
||||
/obj/machinery/vending/wardrobe/cap_wardrobe/Initialize()
|
||||
. = ..()
|
||||
cost_multiplier_per_dept = list("[ACCESS_CAPTAIN]" = 0)
|
||||
|
||||
/obj/item/vending_refill/wardrobe/cap_wardrobe
|
||||
machine_name = "Captain's Wardrobe"
|
||||
icon_state = "refill_caps"
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
default_price = 125
|
||||
extra_price = 350
|
||||
payment_department = ACCOUNT_ENG
|
||||
cost_multiplier_per_dept = list(ACCOUNT_ENG = 0)
|
||||
|
||||
/obj/item/vending_refill/tool
|
||||
icon_state = "refill_engi"
|
||||
Reference in New Issue
Block a user