Skip to content

Commit

Permalink
vending
Browse files Browse the repository at this point in the history
  • Loading branch information
Zevotech committed Jan 1, 2024
1 parent 8ac66ae commit 436b5fc
Show file tree
Hide file tree
Showing 9 changed files with 58 additions and 151 deletions.
1 change: 0 additions & 1 deletion _maps/map_files/generic/CentCom.dmm
Original file line number Diff line number Diff line change
Expand Up @@ -2197,7 +2197,6 @@
/turf/open/floor/wood,
/area/wizard_station)
"axw" = (
/obj/machinery/vending/magivend,
/turf/open/floor/engine/cult,
/area/wizard_station)
"axx" = (
Expand Down
54 changes: 11 additions & 43 deletions code/modules/mining/machine_vending.dm
Original file line number Diff line number Diff line change
Expand Up @@ -19,53 +19,21 @@
all_items_free = FALSE
// Mining products are handled differently, because I am too lazy to convert this list stolen from the old vendor.
products = list( //if you add something to this, please, for the love of god, sort it by price/type. use tabs and not spaces.
/obj/item/stack/marker_beacon/thirty = 6,
/obj/item/reagent_containers/food/drinks/bottle/whiskey = 3,
/obj/item/storage/box/gum/bubblegum = 5,
/obj/item/clothing/mask/cigarette/cigar/havana = 3,
/obj/item/soap/nanotrasen = 1,
/obj/item/hivelordstabilizer = 6,
/obj/item/fulton_core = 1,
/obj/item/survivalcapsule = 3,
/obj/item/storage/belt/mining = 3,
/obj/item/card/mining_point_card = 5,
/obj/item/reagent_containers/hypospray/medipen/survival = 6,
/obj/item/storage/firstaid/brute = 3,
/obj/item/storage/box/minertracker = 5,
/obj/item/wormhole_jaunter = 3,
/obj/item/stack/marker_beacon/thirty = 3,
/obj/item/hivelordstabilizer = 3,
/obj/item/survivalcapsule = 2,
/obj/item/kinetic_crusher = 1,
/obj/item/gun/energy/kinetic_accelerator = 3,
/obj/item/mining_scanner = 5,
/obj/item/t_scanner/adv_mining_scanner = 2,
/obj/item/resonator = 3,
/obj/item/extraction_pack = 3,
/obj/item/gun/energy/kinetic_accelerator = 2,
/obj/item/mining_scanner = 2,
/obj/item/lazarus_injector = 1,
/obj/item/pickaxe/silver = 3,
/obj/item/storage/backpack/duffelbag/mining_conscript = 3,
/obj/item/tank/jetpack/suit = 3,
/obj/item/spacecash/bundle/c1000 = 5,
/obj/item/clothing/suit/space/hardsuit/mining/independent = 3,
/obj/item/resonator/upgraded = 1,
/obj/item/clothing/shoes/bhop = 3,
/obj/item/survivalcapsule/luxury = 3,
/mob/living/simple_animal/hostile/mining_drone = 3,
/obj/item/mine_bot_upgrade = 3,
/obj/item/mine_bot_upgrade/health = 3,
/obj/item/borg/upgrade/modkit/cooldown/minebot = 3,
/obj/item/slimepotion/slime/sentience/mining = 1,
/obj/item/borg/upgrade/modkit/minebot_passthrough = 3,
/obj/item/borg/upgrade/modkit/tracer = 3,
/obj/item/borg/upgrade/modkit/tracer/adjustable = 3,
/obj/item/borg/upgrade/modkit/chassis_mod = 3,
/obj/item/borg/upgrade/modkit/range = 3,
/obj/item/borg/upgrade/modkit/damage = 3,
/obj/item/borg/upgrade/modkit/cooldown = 3,
/obj/item/borg/upgrade/modkit/aoe/mobs = 2
/obj/item/pickaxe/silver = 1,
/obj/item/survivalcapsule/luxury = 1,
/obj/item/borg/upgrade/modkit/range = 2,
/obj/item/borg/upgrade/modkit/damage = 2,
/obj/item/borg/upgrade/modkit/cooldown = 2,
/obj/item/borg/upgrade/modkit/aoe/mobs = 1
)
premium = list(
/obj/item/reagent_containers/food/drinks/bottle/absinthe/premium = 3,
/obj/item/laser_pointer = 1,
/obj/item/pickaxe/diamond = 1,
/mob/living/simple_animal/hostile/facehugger/toy = 1,
/obj/item/clothing/glasses/meson/gar = 2,
/obj/item/survivalcapsule/luxuryelite = 1,
Expand Down
22 changes: 0 additions & 22 deletions code/modules/vending/boozeomat.dm
Original file line number Diff line number Diff line change
Expand Up @@ -67,28 +67,6 @@
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,
/obj/item/reagent_containers/food/drinks/bottle/absinthe = 1,
/obj/item/reagent_containers/food/drinks/bottle/limejuice = 1,
/obj/item/reagent_containers/food/drinks/bottle/cream = 1,
/obj/item/reagent_containers/food/drinks/soda_cans/tonic = 1,
/obj/item/reagent_containers/food/drinks/drinkingglass = 10,
/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
age_restrictions = FALSE

/obj/machinery/vending/boozeomat/pubby_captain //Captain's quarters on Pubbystation
products = list(/obj/item/reagent_containers/food/drinks/bottle/rum = 1,
/obj/item/reagent_containers/food/drinks/bottle/wine = 1,
/obj/item/reagent_containers/food/drinks/ale = 1,
/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/syndicate_access
req_access = list(ACCESS_SYNDICATE)
age_restrictions = FALSE
Expand Down
23 changes: 0 additions & 23 deletions code/modules/vending/magivend.dm

This file was deleted.

48 changes: 21 additions & 27 deletions code/modules/vending/medical.dm
Original file line number Diff line number Diff line change
Expand Up @@ -6,46 +6,40 @@
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/stack/medical/gauze = 8,
/obj/item/reagent_containers/syringe = 12,
/obj/item/reagent_containers/dropper = 3,
/obj/item/healthanalyzer = 4,
/obj/item/stack/medical/gauze = 5,
/obj/item/reagent_containers/syringe = 5,
/obj/item/reagent_containers/dropper = 2,
/obj/item/healthanalyzer = 2,
/obj/item/reagent_containers/pill/patch/styptic = 5,
/obj/item/reagent_containers/pill/patch/silver_sulf = 5,
/obj/item/reagent_containers/syringe/perfluorodecalin = 2,
/obj/item/reagent_containers/pill/insulin = 5,
/obj/item/reagent_containers/glass/bottle/charcoal = 4,
/obj/item/reagent_containers/glass/bottle/charcoal = 3,
/obj/item/reagent_containers/glass/bottle/epinephrine = 3,
/obj/item/reagent_containers/glass/bottle/morphine = 4,
/obj/item/reagent_containers/glass/bottle/morphine = 1,
/obj/item/reagent_containers/glass/bottle/potass_iodide = 1,
/obj/item/reagent_containers/glass/bottle/salglu_solution = 3,
/obj/item/reagent_containers/glass/bottle/toxin = 3,
/obj/item/reagent_containers/syringe/antiviral = 6,
/obj/item/reagent_containers/medigel/styptic = 2,
/obj/item/reagent_containers/medigel/silver_sulf = 2,
/obj/item/reagent_containers/syringe/antiviral = 1,
/obj/item/reagent_containers/medigel/styptic = 1,
/obj/item/reagent_containers/medigel/silver_sulf = 1,
/obj/item/reagent_containers/medigel/sterilizine = 1,
/obj/item/reagent_containers/pill/morphine = 4,
/obj/item/storage/box/gum/happiness = 3,
/obj/item/sensor_device = 2,
/obj/item/pinpointer/crew = 2,
/obj/item/reagent_containers/glass/bottle/vial/small = 5,
/obj/item/stack/medical/splint = 10)

/obj/item/sensor_device = 1,
/obj/item/pinpointer/crew = 1,
/obj/item/reagent_containers/glass/bottle/vial/small = 3,
/obj/item/stack/medical/splint = 5)
contraband = list(
/obj/item/reagent_containers/pill/tox = 3,
/obj/item/reagent_containers/pill/morphine = 4,
/obj/item/reagent_containers/pill/charcoal = 6,
/obj/item/reagent_containers/pill/tox = 2,
/obj/item/reagent_containers/pill/morphine = 2,
/obj/item/reagent_containers/pill/charcoal = 4,
/obj/item/storage/box/hug/medical = 1)
premium = list(
/obj/item/reagent_containers/medigel/synthflesh = 2,
/obj/item/storage/pill_bottle/psicodine = 2,
/obj/item/reagent_containers/medigel/synthflesh = 1,
/obj/item/reagent_containers/hypospray/medipen = 3,
/obj/item/clothing/glasses/hud/health = 2,
/obj/item/clothing/glasses/hud/health = 1,
/obj/item/clothing/glasses/hud/health/prescription = 1,
/obj/item/hypospray/mkii = 1,
/obj/item/storage/belt/medical = 3,
/obj/item/storage/firstaid/advanced = 2,
/obj/item/shears = 1,
/obj/item/plunger/reinforced = 2)
/obj/item/storage/belt/medical = 1,
/obj/item/shears = 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
refill_canister = /obj/item/vending_refill/medical
Expand Down
24 changes: 8 additions & 16 deletions code/modules/vending/medical_wall.dm
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,17 @@
icon_deny = "wallmed-deny"
density = FALSE
products = list(
/obj/item/reagent_containers/syringe = 3,
/obj/item/reagent_containers/pill/patch/styptic = 5,
/obj/item/reagent_containers/pill/patch/silver_sulf = 5,
/obj/item/reagent_containers/pill/charcoal = 2,
/obj/item/reagent_containers/medigel/styptic = 2,
/obj/item/reagent_containers/medigel/silver_sulf = 2,
/obj/item/reagent_containers/syringe = 1,
/obj/item/reagent_containers/pill/patch/styptic = 3,
/obj/item/reagent_containers/pill/patch/silver_sulf = 3,
/obj/item/reagent_containers/pill/charcoal = 1,
/obj/item/reagent_containers/medigel/styptic = 1,
/obj/item/reagent_containers/medigel/silver_sulf = 1,
/obj/item/reagent_containers/medigel/sterilizine = 1
)
contraband = list(
/obj/item/reagent_containers/pill/tox = 2,
/obj/item/reagent_containers/pill/morphine = 2,
/obj/item/reagent_containers/pill/tox = 1,
/obj/item/reagent_containers/pill/morphine = 1,
/obj/item/storage/box/gum/happiness = 1
)
armor = list("melee" = 100, "bullet" = 100, "laser" = 100, "energy" = 100, "bomb" = 0, "bio" = 0, "rad" = 0, "fire" = 100, "acid" = 50)
Expand All @@ -30,11 +30,3 @@
/obj/item/vending_refill/wallmed
machine_name = "NanoMed"
icon_state = "refill_medical"

/obj/machinery/vending/wallmed/pubby
products = list(
/obj/item/reagent_containers/syringe = 3,
/obj/item/reagent_containers/pill/patch/styptic = 1,
/obj/item/reagent_containers/pill/patch/silver_sulf = 1,
/obj/item/reagent_containers/medigel/sterilizine = 1
)
16 changes: 8 additions & 8 deletions code/modules/vending/security.dm
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
light_mask = "marine-mask"
req_access = list(ACCESS_SYNDICATE)
products = list(
/obj/item/screwdriver/nuke = 5,
/obj/item/screwdriver = 5,
/obj/item/restraints/handcuffs = 10,
/obj/item/assembly/flash/handheld = 10,
/obj/item/flashlight/seclite = 10,
Expand All @@ -104,7 +104,6 @@

/obj/item/grenade/c4 = 5,
/obj/item/grenade/frag = 5,
/obj/item/melee/transforming/energy/sword/saber/green = 1,
)
contraband = list()
premium = list()
Expand All @@ -131,7 +130,6 @@
/obj/item/ammo_box/magazine/ebr = 5,
/obj/item/grenade/c4 = 1,
/obj/item/grenade/frag = 1,
/obj/item/melee/transforming/energy/sword/saber/red = 1,
)
voucher_items = list(
"M-90gl Carbine" = /obj/item/gun/ballistic/automatic/smg/m90/unrestricted,
Expand All @@ -150,19 +148,21 @@
/obj/item/assembly/flash/handheld = 10,
/obj/item/flashlight/seclite = 10,

/obj/item/ammo_box/magazine/aknt = 10,
/obj/item/storage/box/lethalshot = 5,
/obj/item/screwdriver = 5,
/obj/item/stock_parts/cell/gun = 10,
/obj/item/stock_parts/cell/gun/upgraded = 5,

/obj/item/grenade/c4 = 5,
/obj/item/grenade/frag = 5,
/obj/item/grenade/flashbang = 5,
/obj/item/grenade/barrier = 10,
/obj/item/melee/transforming/energy/sword/saber/blue = 1
)

voucher_items = list(
"NT-AK" = /obj/item/gun/ballistic/automatic/assault/ak47/nt) //if im being honest, theres no point in addiing other options when this is clearly the best

"SL AL-655 Energy Rifle" = /obj/item/gun/energy/e_gun/hades,
"NT-E-Rifle" = /obj/item/gun/energy/e_gun,
"E-TAR SMG" = /obj/item/gun/energy/e_gun/smg,
"E-SG 500" = /obj/item/gun/energy/e_gun/iot)
/obj/item/gun_voucher
name = "security weapon voucher"
desc = "A token used to redeem guns from the SecTech vendor."
Expand Down
20 changes: 10 additions & 10 deletions code/modules/vending/youtool.dm
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,23 @@
icon_state = "tool"
icon_deny = "tool-deny"
light_mask = "tool-light-mask"
products = list(/obj/item/stack/cable_coil/random = 10, //WS Edit - Random added from Smartwire Revert
/obj/item/crowbar = 5,
products = list(/obj/item/stack/cable_coil/random = 5, //WS Edit - Random added from Smartwire Revert
/obj/item/crowbar = 3,
/obj/item/weldingtool = 3,
/obj/item/wirecutters = 5,
/obj/item/wrench = 5,
/obj/item/analyzer = 5,
/obj/item/t_scanner = 5,
/obj/item/screwdriver = 5,
/obj/item/wirecutters = 3,
/obj/item/wrench = 3,
/obj/item/analyzer = 3,
/obj/item/t_scanner = 3,
/obj/item/screwdriver = 3,
/obj/item/flashlight/glowstick = 3,
/obj/item/flashlight/glowstick/red = 3,
/obj/item/flashlight = 5,
/obj/item/flashlight = 3,
/obj/item/clothing/ears/earmuffs = 1)
contraband = list(/obj/item/clothing/gloves/color/fyellow = 2)
premium = list(/obj/item/storage/belt/utility = 2,
/obj/item/multitool = 2,
/obj/item/weldingtool/hugetank = 2,
/obj/item/clothing/head/welding = 2,
/obj/item/weldingtool/hugetank = 1,
/obj/item/clothing/head/welding = 1,
/obj/item/clothing/gloves/color/yellow = 1)
armor = list("melee" = 100, "bullet" = 100, "laser" = 100, "energy" = 100, "bomb" = 0, "bio" = 0, "rad" = 0, "fire" = 100, "acid" = 70)
resistance_flags = FIRE_PROOF
Expand Down
1 change: 0 additions & 1 deletion shiptest.dme
Original file line number Diff line number Diff line change
Expand Up @@ -3443,7 +3443,6 @@
#include "code\modules\vending\games.dm"
#include "code\modules\vending\liberation.dm"
#include "code\modules\vending\liberation_toy.dm"
#include "code\modules\vending\magivend.dm"
#include "code\modules\vending\medical.dm"
#include "code\modules\vending\medical_wall.dm"
#include "code\modules\vending\megaseed.dm"
Expand Down

0 comments on commit 436b5fc

Please sign in to comment.