Skip to content

Commit

Permalink
Marine vending (#20)
Browse files Browse the repository at this point in the history
* vending

* gear

* gagaga

* dmi

* fulton_extraction_pack
  • Loading branch information
homexp13 authored Jul 21, 2024
1 parent a0a3845 commit 92dafd6
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 6 deletions.
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 @@ -319,6 +322,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 @@ -1378,7 +1377,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 @@ -227,7 +227,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 @@ -433,6 +433,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.

0 comments on commit 92dafd6

Please sign in to comment.