Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Marine vending #20

Merged
merged 5 commits into from
Jul 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 11 additions & 3 deletions code/__DEFINES/loadout.dm
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
#define CAT_SGSUP "SMARTGUNNER SUPPLIES"
#define CAT_FCSUP "COMMANDER SUPPLIES"
#define CAT_SYNTH "SYNTHETIC SUPPLIES"
#define CAT_MARINE "MARINE SUPPLIES"
#define CAT_LOAD "LOADOUT"

// Synth Special Categories
Expand Down Expand Up @@ -53,10 +54,17 @@ GLOBAL_LIST_INIT(marine_selector_cats, list(

#define METAL_PRICE_IN_GEAR_VENDOR 2
#define PLASTEEL_PRICE_IN_GEAR_VENDOR 4
//#define SANDBAG_PRICE_IN_GEAR_VENDOR 5 //ORIGINAL
#define SANDBAG_PRICE_IN_GEAR_VENDOR 3 //RUTGMC EDIT
#define SANDBAG_PRICE_IN_GEAR_VENDOR 3

GLOBAL_LIST_INIT(marine_gear_listed_products, list())
GLOBAL_LIST_INIT(marine_gear_listed_products, list(
/obj/item/storage/backpack/marine/radiopack = list(CAT_MARINE, "Radio Pack", 5, "orange"),
/obj/item/stack/sandbags_empty/half = list(CAT_MARINE, "Sandbags x25", SANDBAG_PRICE_IN_GEAR_VENDOR, "orange"),
/obj/item/fulton_extraction_pack = list(CAT_MARINE, "Fulton Extraction Pack", 5, "orange"),
/obj/item/explosive/grenade = list(CAT_MARINE, "M40 HEDP grenade", 2, "orange3"),
/obj/item/explosive/grenade/sticky = list(CAT_MARINE, "M40 adhesive charge grenade", 2, "orange3"),
/obj/item/explosive/grenade/incendiary = list(CAT_MARINE, "M40 HIDP incendiary grenade", 2, "orange3"),
/obj/item/explosive/grenade/m15 = list(CAT_MARINE, "M15 fragmentation grenade", 3, "orange3"),
))

GLOBAL_LIST_INIT(engineer_gear_listed_products, list(
/obj/effect/vendor_bundle/engi = list(CAT_ESS, "Essential Engineer Set", 0, "white"),
Expand Down
4 changes: 4 additions & 0 deletions code/game/objects/items/cards_ids.dm
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,9 @@
icon_state = "dogtag"
item_state = "dogtag"
iff_signal = TGMC_LOYALIST_IFF
marine_points = list(
CAT_MARINE = DEFAULT_TOTAL_BUY_POINTS,
)
var/dogtag_taken = FALSE

/obj/item/card/id/dogtag/update_icon_state()
Expand Down Expand Up @@ -318,6 +321,7 @@

/obj/item/card/id/dogtag/full
marine_points = list(
CAT_MARINE = DEFAULT_TOTAL_BUY_POINTS,
CAT_SGSUP = DEFAULT_TOTAL_BUY_POINTS,
CAT_ENGSUP = ENGINEER_TOTAL_BUY_POINTS,
CAT_LEDSUP = DEFAULT_TOTAL_BUY_POINTS,
Expand Down
2 changes: 0 additions & 2 deletions code/game/objects/machinery/vending/marine_vending.dm
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,6 @@
/obj/item/tool/hand_labeler = -1,
/obj/item/toy/deck/kotahi = -1,
/obj/item/deployable_floodlight = 5,
/obj/item/fulton_extraction_pack = 5,
),
)

Expand Down Expand Up @@ -1377,7 +1376,6 @@
/obj/item/storage/backpack/marine/standard/scav = -1,
/obj/item/tool/weldpack/marinestandard = -1,
/obj/item/storage/backpack/marine/satchel/tech = 2,
/obj/item/storage/backpack/marine/radiopack = 5,
),
"Instruments" = list(
/obj/item/instrument/violin = -1,
Expand Down
20 changes: 19 additions & 1 deletion code/game/objects/machinery/vending/new_marine_vendors.dm
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@

/obj/machinery/marine_selector/clothes/Initialize(mapload)
. = ..()
listed_products = GLOB.marine_clothes_listed_products + GLOB.marine_gear_listed_products
listed_products = GLOB.marine_clothes_listed_products

/obj/machinery/marine_selector/clothes/alpha
squad_tag = "Alpha"
Expand Down Expand Up @@ -432,6 +432,24 @@
resistance_flags = INDESTRUCTIBLE
lock_flags = JOB_LOCK

/obj/machinery/marine_selector/gear/marine
name = "NEXUS Automated Marine Gear Rack"
desc = "An automated marine gear rack hooked up to a colossal storage unit."
icon_state = "marine"
icon_vend = "marine-vend"
icon_deny = "marine-deny"
vendor_role = /datum/job/terragov/squad/standard
req_access = list(ACCESS_MARINE_PREP)

/obj/machinery/marine_selector/gear/marine/Initialize(mapload)
. = ..()
listed_products = GLOB.marine_gear_listed_products

/obj/machinery/marine_selector/gear/marine/valhalla
vendor_role = /datum/job/fallen/marine
resistance_flags = INDESTRUCTIBLE
lock_flags = JOB_LOCK

/obj/machinery/marine_selector/gear/engi
name = "NEXUS Automated Engineer Equipment Rack"
desc = "An automated engineer equipment rack hooked up to a colossal storage unit."
Expand Down
Binary file modified icons/obj/machines/vending.dmi
Binary file not shown.
Loading