From dd3a03e0872ae8e84313c85126619ad3167b9c7e Mon Sep 17 00:00:00 2001 From: jc_gargma Date: Wed, 10 Mar 2021 16:15:42 -0800 Subject: Initial commit --- json/itemgroups/Weapons_Mods_Ammo/gunmod.json | 10 ++++++++ json/itemgroups/Weapons_Mods_Ammo/magazines.json | 11 +++++++++ json/itemgroups/military.json | 10 ++++++++ json/items/gunmod/underbarrel.json | 21 +++++++++++++++++ json/items/magazine/shot.json | 29 ++++++++++++++++++++++++ modinfo.json | 11 +++++++++ 6 files changed, 92 insertions(+) create mode 100644 json/itemgroups/Weapons_Mods_Ammo/gunmod.json create mode 100644 json/itemgroups/Weapons_Mods_Ammo/magazines.json create mode 100644 json/itemgroups/military.json create mode 100644 json/items/gunmod/underbarrel.json create mode 100644 json/items/magazine/shot.json create mode 100644 modinfo.json diff --git a/json/itemgroups/Weapons_Mods_Ammo/gunmod.json b/json/itemgroups/Weapons_Mods_Ammo/gunmod.json new file mode 100644 index 0000000..b6bcce8 --- /dev/null +++ b/json/itemgroups/Weapons_Mods_Ammo/gunmod.json @@ -0,0 +1,10 @@ +[ + { + "type": "item_group", + "id": "gunmod_milspec", + "//": "Military specification gunmods found only at military sites.", + "items": [ + [ "m26_mass", 10 ] + ] + } +] diff --git a/json/itemgroups/Weapons_Mods_Ammo/magazines.json b/json/itemgroups/Weapons_Mods_Ammo/magazines.json new file mode 100644 index 0000000..94959c9 --- /dev/null +++ b/json/itemgroups/Weapons_Mods_Ammo/magazines.json @@ -0,0 +1,11 @@ +[ + { + "type": "item_group", + "id": "mags_milspec", + "//": "Current military specification magazines.", + "items": [ + [ "m26_mass_mag", 10 ], + [ "m26_mass_mag_big", 5 ] + ] + } +] diff --git a/json/itemgroups/military.json b/json/itemgroups/military.json new file mode 100644 index 0000000..0abea8c --- /dev/null +++ b/json/itemgroups/military.json @@ -0,0 +1,10 @@ +[ + { + "type": "item_group", + "id": "military", + "subtype": "distribution", + "entries": [ + { "item": "m26_mass", "prob": 2 } + ] + } +] diff --git a/json/items/gunmod/underbarrel.json b/json/items/gunmod/underbarrel.json new file mode 100644 index 0000000..97e454d --- /dev/null +++ b/json/items/gunmod/underbarrel.json @@ -0,0 +1,21 @@ +[ + { + "id": "m26_mass", + "type": "GUNMOD", + "looks_like": "rm121aux", + "name": { "str": "M26 MASS" }, + "description": "The M26 Modular Accessory Shotgun System is a magazine-fed semi-automatic shotgun, which can be mounted under the barrel of many rifles. Accepts box magazines.", + "weight": "1220 g", + "volume": "750 ml", + "price": 120000, + "material": [ "steel", "plastic" ], + "symbol": ":", + "color": "dark_gray", + "location": "underbarrel", + "mod_targets": [ "rifle", "crossbow" ], + "gun_data": { "ammo": "shot", "skill": "shotgun", "dispersion": 325, "durability": 9, "reload": 125 }, + "min_skills": [ [ "weapon", 2 ], [ "shotgun", 2 ] ], + "magazine_well": 1, + "magazines": [ [ "shot", [ "m26_mass_mag", "m26_mass_mag_big" ] ] ] + } +] diff --git a/json/items/magazine/shot.json b/json/items/magazine/shot.json new file mode 100644 index 0000000..10fdf49 --- /dev/null +++ b/json/items/magazine/shot.json @@ -0,0 +1,29 @@ + [ + { + "id": "m26_mass_mag", + "looks_like": "20x66_10_mag", + "type": "MAGAZINE", + "name": { "str": "M26 MASS compact magazine" }, + "description": "A 3 round box magazine for use with the M26 MASS auxiliary shotgun.", + "weight": "140 g", + "volume": "250 ml", + "price": 5000, + "material": [ "steel", "plastic" ], + "symbol": "#", + "color": "dark_gray", + "ammo_type": "shot", + "capacity": 3, + "flags": [ "MAG_COMPACT" ] + }, + { + "id": "m26_mass_mag_big", + "copy-from": "m26_mass_mag", + "type": "MAGAZINE", + "name": { "str": "M26 MASS magazine" }, + "description": "A 5 round box magazine for use with the M26 MASS auxiliary shotgun.", + "weight": "210 g", + "volume": "250 ml", + "price": 7500, + "capacity": 5 + } +] diff --git a/modinfo.json b/modinfo.json new file mode 100644 index 0000000..ca1887c --- /dev/null +++ b/modinfo.json @@ -0,0 +1,11 @@ +[ + { + "type": "MOD_INFO", + "ident": "m26-mass", + "name": "M26 MASS", + "authors": ["jc_gargma"], + "description": "Add the M26 MASS underbarrel shotgun.", + "category": "items", + "dependencies": [ "dda" ] + } +] -- cgit v1.2.1