summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjc_gargma <jc_gargma@iserlohn-fortress.net>2021-03-10 16:15:42 -0800
committerjc_gargma <jc_gargma@iserlohn-fortress.net>2021-03-10 16:15:42 -0800
commitdd3a03e0872ae8e84313c85126619ad3167b9c7e (patch)
tree515ce35a1cf85f151bc660b95eee4be1c5980e36
downloadcataclysm-bn-mod_m26-mass-dd3a03e0872ae8e84313c85126619ad3167b9c7e.tar.xz
Initial commit
-rw-r--r--json/itemgroups/Weapons_Mods_Ammo/gunmod.json10
-rw-r--r--json/itemgroups/Weapons_Mods_Ammo/magazines.json11
-rw-r--r--json/itemgroups/military.json10
-rw-r--r--json/items/gunmod/underbarrel.json21
-rw-r--r--json/items/magazine/shot.json29
-rw-r--r--modinfo.json11
6 files changed, 92 insertions, 0 deletions
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" ]
+ }
+]