Skip to content

Commit

Permalink
Ammoboxparity2 (#13695)
Browse files Browse the repository at this point in the history
* Some icons added

* ohgod why did i do all my work on master help

* Mini icons for ammo

* mag box label redos, slight availability change

* remove debug stick to spawn all ammo

* som flamer sprite rogue white pixels fix

---------

Co-authored-by: TheOneAndMightyRed <[email protected]>
  • Loading branch information
Redory and Redory authored Aug 9, 2023
1 parent a58453a commit f20281f
Show file tree
Hide file tree
Showing 18 changed files with 178 additions and 115 deletions.
4 changes: 2 additions & 2 deletions _maps/map_files/Whiskey_Outpost/Whiskey_Outpost_v2.dmm
Original file line number Diff line number Diff line change
Expand Up @@ -4278,8 +4278,8 @@
"vI" = (
/obj/structure/closet/crate/secure/ammo,
/obj/item/big_ammo_box/ap,
/obj/item/storage/box/visual/magazine/compact/tx15/flechette/full,
/obj/item/storage/box/visual/magazine/compact/tx15/slug/full,
/obj/item/storage/box/visual/magazine/compact/sh15/flechette/full,
/obj/item/storage/box/visual/magazine/compact/sh15/slug/full,
/obj/item/storage/box/visual/magazine/compact/standard_smg/full,
/obj/item/storage/box/visual/magazine/compact/standard_smg/full,
/obj/item/storage/box/visual/magazine/compact/standard_revolver/full,
Expand Down
5 changes: 2 additions & 3 deletions code/game/objects/items/stacks/sheets/sheet_types.dm
Original file line number Diff line number Diff line change
Expand Up @@ -258,17 +258,16 @@ GLOBAL_LIST_INIT(cardboard_recipes, list ( \
new/datum/stack_recipe_list("smg boxes",list( \
new/datum/stack_recipe("SMG-90 mag box", /obj/item/storage/box/visual/magazine/compact/standard_smg), \
new/datum/stack_recipe("MP-19 mag box", /obj/item/storage/box/visual/magazine/compact/standard_machinepistol), \
new/datum/stack_recipe("PPSh drum mag box", /obj/item/storage/box/visual/magazine/compact/ppsh), \
new/datum/stack_recipe("Pepperball canister box", /obj/item/storage/box/visual/magazine/compact/pepperball), \
)), \
new/datum/stack_recipe_list("rifle boxes",list( \
new/datum/stack_recipe("AR-12 mag box", /obj/item/storage/box/visual/magazine/compact/standard_assaultrifle), \
new/datum/stack_recipe("AR-18 mag box", /obj/item/storage/box/visual/magazine/compact/standard_carbine), \
new/datum/stack_recipe("AR-21 mag box", /obj/item/storage/box/visual/magazine/compact/standard_skirmishrifle), \
new/datum/stack_recipe("AR-11 mag box", /obj/item/storage/box/visual/magazine/compact/tx11), \
new/datum/stack_recipe("AR-11 mag box", /obj/item/storage/box/visual/magazine/compact/ar11), \
new/datum/stack_recipe("Martini Henry packet box", /obj/item/storage/box/visual/magazine/compact/martini), \
new/datum/stack_recipe("TE cell box", /obj/item/storage/box/visual/magazine/compact/lasrifle/marine), \
new/datum/stack_recipe("SH-15 mag box", /obj/item/storage/box/visual/magazine/compact/tx15), \
new/datum/stack_recipe("SH-15 mag box", /obj/item/storage/box/visual/magazine/compact/sh15), \
)), \
new/datum/stack_recipe_list("marksmen rifle boxes",list( \
new/datum/stack_recipe("DMR-37 mag box", /obj/item/storage/box/visual/magazine/compact/standard_dmr), \
Expand Down
110 changes: 52 additions & 58 deletions code/game/objects/items/storage/boxes.dm
Original file line number Diff line number Diff line change
Expand Up @@ -661,6 +661,7 @@
/obj/item/ammo_magazine/standard_mmg,
/obj/item/ammo_magazine/heavymachinegun,
/obj/item/ammo_magazine/standard_smartmachinegun,
/obj/item/ammo_magazine/som_mg,
/obj/item/cell/lasgun,
)
cant_hold = list(
Expand Down Expand Up @@ -698,7 +699,7 @@
/obj/item/storage/box/visual/magazine/compact/standard_pistol
name = "P-14 magazine box"
desc = "A box specifically designed to hold a large amount of P-14 magazines."
closed_overlay = "mag_box_small_overlay_tp14"
closed_overlay = "mag_box_small_overlay_p14"
can_hold = list(
/obj/item/ammo_magazine/pistol/standard_pistol,
)
Expand All @@ -710,7 +711,7 @@
/obj/item/storage/box/visual/magazine/compact/standard_heavypistol
name = "P-23 magazine box"
desc = "A box specifically designed to hold a large amount of P-23 magazines."
closed_overlay = "mag_box_small_overlay_tp23"
closed_overlay = "mag_box_small_overlay_p23"
can_hold = list(
/obj/item/ammo_magazine/pistol/standard_heavypistol,
)
Expand All @@ -722,7 +723,7 @@
/obj/item/storage/box/visual/magazine/compact/standard_revolver
name = "R-44 speedloader box"
desc = "A box specifically designed to hold a large amount of R-44 speedloaders."
closed_overlay = "mag_box_small_overlay_tp44"
closed_overlay = "mag_box_small_overlay_r44"
can_hold = list(
/obj/item/ammo_magazine/revolver/standard_revolver,
)
Expand All @@ -734,7 +735,7 @@
/obj/item/storage/box/visual/magazine/compact/standard_pocketpistol
name = "P-17 magazine box"
desc = "A box specifically designed to hold a large amount of P-17 magazines."
closed_overlay = "mag_box_small_overlay_tp17"
closed_overlay = "mag_box_small_overlay_p17"
can_hold = list(
/obj/item/ammo_magazine/pistol/standard_pocketpistol,
)
Expand All @@ -757,8 +758,8 @@


/obj/item/storage/box/visual/magazine/compact/derringer
name = "Derringer ammo packet box"
desc = "A box specifically designed to hold a large amount of Derringer ammo packets."
name = ".40 rimfire ammo packet box"
desc = "A box specifically designed to hold a large amount of .40 rimfire ammo packets."
closed_overlay = "mag_box_small_overlay_derringer"
can_hold = list(
/obj/item/ammo_magazine/pistol/derringer,
Expand All @@ -771,7 +772,7 @@
/obj/item/storage/box/visual/magazine/compact/plasma_pistol
name = "PP-7 plasma cell box"
desc = "A box specifically designed to hold a large amount of PP-7 plasma cells."
closed_overlay = "mag_box_small_overlay_tx7"
closed_overlay = "mag_box_small_overlay_pp7"
can_hold = list(
/obj/item/ammo_magazine/pistol/plasma_pistol,
)
Expand All @@ -785,7 +786,7 @@
/obj/item/storage/box/visual/magazine/compact/standard_smg
name = "SMG-90 magazine box"
desc = "A box specifically designed to hold a large amount of SMG-90 magazines."
closed_overlay = "mag_box_small_overlay_t90"
closed_overlay = "mag_box_small_overlay_smg90"
can_hold = list(
/obj/item/ammo_magazine/smg/standard_smg,
)
Expand All @@ -797,7 +798,7 @@
/obj/item/storage/box/visual/magazine/compact/standard_machinepistol
name = "MP-19 magazine box"
desc = "A box specifically designed to hold a large amount of MP-19 magazines."
closed_overlay = "mag_box_small_overlay_t19"
closed_overlay = "mag_box_small_overlay_mp19"
can_hold = list(
/obj/item/ammo_magazine/smg/standard_machinepistol,
)
Expand All @@ -806,25 +807,26 @@
spawn_number = 40
spawn_type = /obj/item/ammo_magazine/smg/standard_machinepistol

/obj/item/storage/box/visual/magazine/compact/ppsh
name = "PPSh drum magazine box"
desc = "A box specifically designed to hold a large amount of PPSh drum magazines."
closed_overlay = "mag_box_small_overlay_ppsh"
/obj/item/storage/box/visual/magazine/compact/pepperball
name = "Pepperball canister box"
desc = "A box specifically designed to hold a large amount of Pepperball canisters."
storage_slots = 30
closed_overlay = "mag_box_small_overlay_pepperball"
can_hold = list(
/obj/item/ammo_magazine/smg/ppsh/extended,
/obj/item/ammo_magazine/rifle/pepperball,
)

/obj/item/storage/box/visual/magazine/compact/ppsh/full
spawn_number = 40
spawn_type = /obj/item/ammo_magazine/smg/ppsh/extended
/obj/item/storage/box/visual/magazine/compact/pepperball/full
spawn_number = 30
spawn_type = /obj/item/ammo_magazine/rifle/pepperball

// -Rifle-

/obj/item/storage/box/visual/magazine/compact/standard_assaultrifle
name = "AR-12 magazine box"
desc = "A box specifically designed to hold a large amount of AR-12 magazines."
storage_slots = 30
closed_overlay = "mag_box_small_overlay_t12"
closed_overlay = "mag_box_small_overlay_ar12"
can_hold = list(
/obj/item/ammo_magazine/rifle/standard_assaultrifle,
)
Expand All @@ -837,7 +839,7 @@
name = "AR-18 magazine box"
desc = "A box specifically designed to hold a large amount of AR-18 magazines."
storage_slots = 30
closed_overlay = "mag_box_small_overlay_t18"
closed_overlay = "mag_box_small_overlay_ar18"
can_hold = list(
/obj/item/ammo_magazine/rifle/standard_carbine,
)
Expand All @@ -850,7 +852,7 @@
name = "AR-21 magazine box"
desc = "A box specifically designed to hold a large amount of AR-21 magazines."
storage_slots = 30
closed_overlay = "mag_box_small_overlay_t21"
closed_overlay = "mag_box_small_overlay_ar21"
can_hold = list(
/obj/item/ammo_magazine/rifle/standard_skirmishrifle,
)
Expand All @@ -859,68 +861,55 @@
spawn_number = 30
spawn_type = /obj/item/ammo_magazine/rifle/standard_skirmishrifle

/obj/item/storage/box/visual/magazine/compact/martini
name = "Martini Henry ammo packet box"
desc = "A box specifically designed to hold a large amount of Martini ammo packets."
storage_slots = 30
closed_overlay = "mag_box_small_overlay_martini"
can_hold = list(
/obj/item/ammo_magazine/rifle/martini,
)

/obj/item/storage/box/visual/magazine/compact/martini/full
spawn_number = 30
spawn_type = /obj/item/ammo_magazine/rifle/martini

/obj/item/storage/box/visual/magazine/compact/tx11
/obj/item/storage/box/visual/magazine/compact/ar11
name = "AR-11 magazine box"
desc = "A box specifically designed to hold a large amount of AR-11 magazines."
storage_slots = 30
closed_overlay = "mag_box_small_overlay_tx11"
closed_overlay = "mag_box_small_overlay_ar11"
can_hold = list(
/obj/item/ammo_magazine/rifle/tx11,
)

/obj/item/storage/box/visual/magazine/compact/tx11/full
/obj/item/storage/box/visual/magazine/compact/ar11/full
spawn_number = 30
spawn_type = /obj/item/ammo_magazine/rifle/tx11

/obj/item/storage/box/visual/magazine/compact/pepperball
name = "Pepperball canister box"
desc = "A box specifically designed to hold a large amount of Pepperball canisters."
/obj/item/storage/box/visual/magazine/compact/martini
name = "Martini Henry ammo packet box"
desc = "A box specifically designed to hold a large amount of Martini ammo packets."
storage_slots = 30
closed_overlay = "mag_box_small_overlay_pepperball"
closed_overlay = "mag_box_small_overlay_martini"
can_hold = list(
/obj/item/ammo_magazine/rifle/pepperball,
/obj/item/ammo_magazine/rifle/martini,
)

/obj/item/storage/box/visual/magazine/compact/pepperball/full
/obj/item/storage/box/visual/magazine/compact/martini/full
spawn_number = 30
spawn_type = /obj/item/ammo_magazine/rifle/pepperball
spawn_type = /obj/item/ammo_magazine/rifle/martini

/obj/item/storage/box/visual/magazine/compact/tx15
/obj/item/storage/box/visual/magazine/compact/sh15
name = "SH-15 magazine box"
desc = "A box specifically designed to hold a large amount of SH-15 magazines."
storage_slots = 30
closed_overlay = "mag_box_small_overlay_tx15"
closed_overlay = "mag_box_small_overlay_sh15"
can_hold = list(
/obj/item/ammo_magazine/rifle/tx15_flechette,
/obj/item/ammo_magazine/rifle/tx15_slug,
)

/obj/item/storage/box/visual/magazine/compact/tx15/flechette
/obj/item/storage/box/visual/magazine/compact/sh15/flechette
name = "SH-15 flechette magazine box"
closed_overlay = "mag_box_small_overlay_tx15_flechette"
closed_overlay = "mag_box_small_overlay_sh15_flechette"

/obj/item/storage/box/visual/magazine/compact/tx15/flechette/full
/obj/item/storage/box/visual/magazine/compact/sh15/flechette/full
spawn_number = 30
spawn_type = /obj/item/ammo_magazine/rifle/tx15_flechette

/obj/item/storage/box/visual/magazine/compact/tx15/slug
/obj/item/storage/box/visual/magazine/compact/sh15/slug
name = "SH-15 slug magazine box"
closed_overlay = "mag_box_small_overlay_tx15_slug"
closed_overlay = "mag_box_small_overlay_sh15_slug"

/obj/item/storage/box/visual/magazine/compact/tx15/slug/full
/obj/item/storage/box/visual/magazine/compact/sh15/slug/full
spawn_number = 30
spawn_type = /obj/item/ammo_magazine/rifle/tx15_slug

Expand Down Expand Up @@ -977,7 +966,7 @@
name = "DMR-37 magazine box"
desc = "A box specifically designed to hold a large amount of DMR-37 magazines."
storage_slots = 30
closed_overlay = "mag_box_small_overlay_t37"
closed_overlay = "mag_box_small_overlay_dmr37"
can_hold = list(
/obj/item/ammo_magazine/rifle/standard_dmr,
)
Expand All @@ -990,7 +979,7 @@
name = "BR-64 magazine box"
desc = "A box specifically designed to hold a large amount of BR-64 magazines."
storage_slots = 30
closed_overlay = "mag_box_small_overlay_t64"
closed_overlay = "mag_box_small_overlay_br64"
can_hold = list(
/obj/item/ammo_magazine/rifle/standard_br,
)
Expand All @@ -1003,7 +992,7 @@
name = "SR-127 magazine box"
desc = "A box specifically designed to hold a large amount of SR-127 magazines."
storage_slots = 30
closed_overlay = "mag_box_small_overlay_tl127"
closed_overlay = "mag_box_small_overlay_sr127"
can_hold = list(
/obj/item/ammo_magazine/rifle/chamberedrifle,
)
Expand All @@ -1019,19 +1008,24 @@
closed_overlay = "mag_box_small_overlay_mosin"
can_hold = list(
/obj/item/ammo_magazine/rifle/bolt,
/obj/item/ammo_magazine/rifle/boltclip,
)

/obj/item/storage/box/visual/magazine/compact/mosin/full
/obj/item/storage/box/visual/magazine/compact/mosin/packet/full
spawn_number = 30
spawn_type = /obj/item/ammo_magazine/rifle/bolt

/obj/item/storage/box/visual/magazine/compact/mosin/clip/full
spawn_number = 30
spawn_type = /obj/item/ammo_magazine/rifle/boltclip

// -Machinegun-

/obj/item/storage/box/visual/magazine/compact/standard_lmg
name = "MG-42 drum magazine box"
desc = "A box specifically designed to hold a large amount of MG-42 drum magazines."
storage_slots = 30
closed_overlay = "mag_box_small_overlay_t42"
closed_overlay = "mag_box_small_overlay_mg42"
can_hold = list(
/obj/item/ammo_magazine/standard_lmg,
)
Expand All @@ -1044,7 +1038,7 @@
name = "MG-60 magazine box"
desc = "A box specifically designed to hold a large amount of MG-60 box magazines."
storage_slots = 30
closed_overlay = "mag_box_small_overlay_t60"
closed_overlay = "mag_box_small_overlay_mg60"
can_hold = list(
/obj/item/ammo_magazine/standard_gpmg,
)
Expand All @@ -1057,7 +1051,7 @@
name = "MG-27 magazine box"
desc = "A box specifically designed to hold a large amount of MG-27 box magazines."
storage_slots = 30
closed_overlay = "mag_box_small_overlay_t27"
closed_overlay = "mag_box_small_overlay_mg27"
can_hold = list(
/obj/item/ammo_magazine/standard_mmg,
)
Expand Down
8 changes: 5 additions & 3 deletions code/game/objects/machinery/vending/marine_vending.dm
Original file line number Diff line number Diff line change
Expand Up @@ -740,6 +740,7 @@
/obj/item/shotgunbox = -1,
/obj/item/shotgunbox/buckshot = -1,
/obj/item/shotgunbox/flechette = -1,
/obj/item/shotgunbox/tracker = -1,
/obj/item/storage/box/visual/magazine/compact/standard_pistol/full = -1,
/obj/item/storage/box/visual/magazine/compact/standard_heavypistol/full = -1,
/obj/item/storage/box/visual/magazine/compact/standard_revolver/full = -1,
Expand All @@ -752,15 +753,16 @@
/obj/item/storage/box/visual/magazine/compact/standard_carbine/full = -1,
/obj/item/storage/box/visual/magazine/compact/standard_skirmishrifle/full = -1,
/obj/item/storage/box/visual/magazine/compact/martini/full = -1,
/obj/item/storage/box/visual/magazine/compact/tx11/full = -1,
/obj/item/storage/box/visual/magazine/compact/ar11/full = -1,
/obj/item/storage/box/visual/magazine/compact/lasrifle/marine/full = -1,
/obj/item/storage/box/visual/magazine/compact/tx15/flechette/full = -1,
/obj/item/storage/box/visual/magazine/compact/tx15/slug/full = -1,
/obj/item/storage/box/visual/magazine/compact/sh15/flechette/full = -1,
/obj/item/storage/box/visual/magazine/compact/sh15/slug/full = -1,
/obj/item/storage/box/visual/magazine/compact/standard_dmr/full = -1,
/obj/item/storage/box/visual/magazine/compact/standard_br/full = -1,
/obj/item/storage/box/visual/magazine/compact/chamberedrifle/full = -1,
/obj/item/storage/box/visual/magazine/compact/standard_lmg/full = -1,
/obj/item/storage/box/visual/magazine/compact/standard_gpmg/full = -1,
/obj/item/storage/box/visual/magazine/compact/standard_mmg/full = -1,
),
"Mecha Ammo" = list(
/obj/item/mecha_ammo/vendable/pistol = -1,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@
/obj/item/shotgunbox = 1,
/obj/item/shotgunbox/buckshot = 1,
/obj/item/shotgunbox/flechette = 1,
/obj/item/shotgunbox/tracker = 1,
/obj/item/storage/box/visual/magazine/compact/standard_pistol/full = 1,
/obj/item/storage/box/visual/magazine/compact/standard_heavypistol/full = 1,
/obj/item/storage/box/visual/magazine/compact/standard_revolver/full = 1,
Expand All @@ -209,16 +210,16 @@
/obj/item/storage/box/visual/magazine/compact/standard_assaultrifle/full = 1,
/obj/item/storage/box/visual/magazine/compact/standard_carbine/full = 1,
/obj/item/storage/box/visual/magazine/compact/standard_skirmishrifle/full = 1,
/obj/item/storage/box/visual/magazine/compact/martini/full = 1,
/obj/item/storage/box/visual/magazine/compact/tx11/full = 1,
/obj/item/storage/box/visual/magazine/compact/ar11/full = 1,
/obj/item/storage/box/visual/magazine/compact/lasrifle/marine/full = 1,
/obj/item/storage/box/visual/magazine/compact/tx15/flechette/full = 1,
/obj/item/storage/box/visual/magazine/compact/tx15/slug/full = 1,
/obj/item/storage/box/visual/magazine/compact/sh15/flechette/full = 1,
/obj/item/storage/box/visual/magazine/compact/sh15/slug/full = 1,
/obj/item/storage/box/visual/magazine/compact/standard_dmr/full = 1,
/obj/item/storage/box/visual/magazine/compact/standard_br/full = 1,
/obj/item/storage/box/visual/magazine/compact/chamberedrifle/full = 1,
/obj/item/storage/box/visual/magazine/compact/standard_lmg/full = 1,
/obj/item/storage/box/visual/magazine/compact/standard_gpmg/full = 1,
/obj/item/storage/box/visual/magazine/compact/standard_mmg/full = 1,
)


Expand Down
Loading

0 comments on commit f20281f

Please sign in to comment.