Skip to content

Commit

Permalink
MK1 Mag Boxes and 10x28mm ammo cans (#117)
Browse files Browse the repository at this point in the history
This is good to have since we use MK1 ammo almost exclusively.
  • Loading branch information
grifp71 authored Feb 18, 2024
1 parent 27bb6f8 commit a078ba0
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
3 changes: 3 additions & 0 deletions code/game/objects/items/stacks/sheets/sheet_types.dm
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,7 @@ var/global/list/datum/stack_recipe/cardboard_recipes = list ( \
new/datum/stack_recipe("empty magazine box (M41A Ext)", /obj/item/ammo_box/magazine/ext/empty), \
new/datum/stack_recipe("empty magazine box (M41A Incen)", /obj/item/ammo_box/magazine/incen/empty), \
new/datum/stack_recipe("empty magazine box (M41A LE)", /obj/item/ammo_box/magazine/le/empty), \
new/datum/stack_recipe("empty magazine box (M41A MK1)", /obj/item/ammo_box/magazine/mk1/empty), \
null, \
new/datum/stack_recipe("empty shotgun shell box (Beanbag)", /obj/item/ammo_box/magazine/shotgun/beanbag/empty), \
new/datum/stack_recipe("empty shotgun shell box (Buckshot)", /obj/item/ammo_box/magazine/shotgun/buckshot/empty), \
Expand All @@ -279,6 +280,8 @@ var/global/list/datum/stack_recipe/cardboard_recipes = list ( \
new/datum/stack_recipe("empty rifle ammo box (10x24mm Incen)", /obj/item/ammo_box/rounds/incen/empty), \
new/datum/stack_recipe("empty rifle ammo box (10x24mm LE)", /obj/item/ammo_box/rounds/le/empty), \
null, \
new/datum/stack_recipe("empty smartgun ammo box (10x28mm)", /obj/item/ammo_box/rounds/smartgun/empty), \
null, \
new/datum/stack_recipe("empty box of MREs", /obj/item/ammo_box/magazine/misc/mre/empty), \
new/datum/stack_recipe("empty box of M94 Marking Flare Packs", /obj/item/ammo_box/magazine/misc/flares/empty), \
new/datum/stack_recipe("empty box of flashlights", /obj/item/ammo_box/magazine/misc/flashlight/empty), \
Expand Down
11 changes: 11 additions & 0 deletions code/modules/projectiles/ammo_boxes/magazine_boxes.dm
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,17 @@
/obj/item/ammo_box/magazine/heap/empty
empty = TRUE


/obj/item/ammo_box/magazine/mk1
name = "magazine box (M41A MK1 X 10)"
flags_equip_slot = SLOT_BACK
overlay_ammo_type = "_reg"
overlay_content = "_reg"
magazine_type = /obj/item/ammo_magazine/rifle/m41aMK1

/obj/item/ammo_box/magazine/mk1/empty
empty = TRUE

//-----------------------M39 Rifle Mag Boxes-----------------------

/obj/item/ammo_box/magazine/m39
Expand Down
13 changes: 13 additions & 0 deletions code/modules/projectiles/ammo_boxes/round_boxes.dm
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,19 @@
/obj/item/ammo_box/rounds/heap/empty
empty = TRUE

//----------------10x28mm Ammunition Boxes (for smartguns)------------------

/obj/item/ammo_box/rounds/smartgun
name = "\improper smartgun ammunition box (10x28mm)"
desc = "A 10x28mm ammunition box. Used to refill smartgun drum magazines. It comes with a leather strap allowing to wear it on the back."
overlay_content = "_reg"
default_ammo = /datum/ammo/bullet/smartgun
caliber = "10x28mm"
max_bullet_amount = 1000

/obj/item/ammo_box/rounds/smartgun/empty
empty = TRUE

//----------------10x20mm Ammunition Boxes (for M39 SMG)------------------

/obj/item/ammo_box/rounds/smg
Expand Down

0 comments on commit a078ba0

Please sign in to comment.