summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjc_gargma <jc_gargma@iserlohn-fortress.net>2020-07-26 15:29:10 -0700
committerjc_gargma <jc_gargma@iserlohn-fortress.net>2020-07-26 15:29:10 -0700
commit3386883f1956771ce8f3859941a4539917e51d50 (patch)
treee5cc1b9c3ed51849924026803f92e389f86ae1fd
downloadcataclysm-dda-mod_caseless-crafting-3386883f1956771ce8f3859941a4539917e51d50.tar.xz
Initial commit
-rw-r--r--json/items/ammo/20x66mm.json64
-rw-r--r--json/items/ammo/8x40mm.json42
-rw-r--r--json/items/generic/casing.json22
-rw-r--r--json/recipes/weapons/ammo/rivtech.json228
-rw-r--r--json/recipes/weapons/recipe_obsolete.json47
-rw-r--r--modinfo.json11
6 files changed, 414 insertions, 0 deletions
diff --git a/json/items/ammo/20x66mm.json b/json/items/ammo/20x66mm.json
new file mode 100644
index 0000000..9d95290
--- /dev/null
+++ b/json/items/ammo/20x66mm.json
@@ -0,0 +1,64 @@
+[
+ {
+ "id": "20x66_bootleg_shot",
+ "copy-from": "20x66_shot",
+ "type": "AMMO",
+ "name": { "str": "20x66mm buckshot, handmade" },
+ "description": "Handcrafted bootleg duplicates of Rivtech 20x66mm caseless buckshot rounds. Being caseless rounds, these cannot be disassembled or reloaded.",
+ "proportional": { "price": 0.7, "damage": 0.9, "dispersion": 1.1 },
+ "extend": { "effects": [ "RECYCLED" ] },
+ "delete": { "effects": [ "NEVER_MISFIRES" ] }
+ },
+ {
+ "id": "20x66_bootleg_slug",
+ "copy-from": "20x66_slug",
+ "type": "AMMO",
+ "name": { "str": "20x66mm slug, handmade" },
+ "description": "Handcrafted bootleg duplicates of Rivtech 20x66mm caseless solid projectile rounds. Being caseless rounds, these cannot be disassembled or reloaded.",
+ "proportional": { "price": 0.7, "damage": 0.9, "dispersion": 1.1 },
+ "extend": { "effects": [ "RECYCLED" ] },
+ "delete": { "effects": [ "NEVER_MISFIRES" ] }
+ },
+ {
+ "id": "20x66_bootleg_flechette",
+ "copy-from": "20x66_flechette",
+ "type": "AMMO",
+ "name": { "str": "20x66mm flechette, handmade" },
+ "description": "Handcrafted bootleg duplicates of Rivtech 20x66mm caseless flechette rounds. Being caseless rounds, these cannot be disassembled or reloaded.",
+ "proportional": { "price": 0.7, "damage": 0.9, "dispersion": 1.1 },
+ "extend": { "effects": [ "RECYCLED" ] },
+ "delete": { "effects": [ "NEVER_MISFIRES" ] }
+ },
+ {
+ "id": "20x66_bootleg_inc",
+ "copy-from": "20x66_inc",
+ "type": "AMMO",
+ "name": { "str": "20x66mm incendiary, handmade" },
+ "description": "Handcrafted bootleg duplicates of Rivtech 20x66mm caseless incendiary rounds. Being caseless rounds, these cannot be disassembled or reloaded.",
+ "proportional": { "price": 0.7, "damage": 0.9, "dispersion": 1.1 },
+ "extend": { "effects": [ "RECYCLED" ] },
+ "delete": { "effects": [ "NEVER_MISFIRES" ] }
+ },
+ {
+ "id": "20x66_bootleg_flare",
+ "copy-from": "20x66_flare",
+ "type": "AMMO",
+ "name": { "str": "20x66mm flare, handmade" },
+ "description": "Handcrafted bootleg duplicates of Rivtech 20x66mm caseless flare rounds. Being caseless rounds, these cannot be disassembled or reloaded.",
+ "proportional": { "price": 0.7, "damage": 0.9, "dispersion": 1.1 },
+ "extend": { "effects": [ "RECYCLED" ] },
+ "delete": { "effects": [ "NEVER_MISFIRES" ] }
+ },
+ {
+ "id": "20x66_slug",
+ "copy-from": "20x66_shot",
+ "type": "AMMO",
+ "name": { "str": "20x66mm slug" },
+ "description": "20x66mm caseless shotgun rounds, solid projectile type. Proprietary ammunition for Rivtech shotguns. Being caseless rounds, these cannot be disassembled or reloaded.",
+ "price": 1500,
+ "price_postapoc": 9000,
+ "relative": { "range": 12, "pierce": 8 },
+ "proportional": { "recoil": 1.4, "dispersion": 1.3 },
+ "delete": { "effects": [ "SHOT" ] }
+ }
+]
diff --git a/json/items/ammo/8x40mm.json b/json/items/ammo/8x40mm.json
new file mode 100644
index 0000000..d480313
--- /dev/null
+++ b/json/items/ammo/8x40mm.json
@@ -0,0 +1,42 @@
+[
+ {
+ "id": "8mm_bootleg_jhp",
+ "copy-from": "8mm_jhp",
+ "type": "AMMO",
+ "name": { "str": "8x40mm JHP, handmade" },
+ "description": "Handcrafted Bootleg duplicates of Rivtech 8x40mm JHP caseless rounds. Being caseless rounds, these cannot be disassembled or reloaded.",
+ "proportional": { "price": 0.7, "damage": 0.9, "dispersion": 1.1 },
+ "extend": { "effects": [ "RECYCLED" ] },
+ "delete": { "effects": [ "NEVER_MISFIRES" ] }
+ },
+ {
+ "id": "8mm_bootleg_caseless",
+ "copy-from": "8mm_caseless",
+ "type": "AMMO",
+ "name": { "str": "8x40mm caseless, handmade" },
+ "description": "Handcrafted Bootleg duplicates of Rivtech 8x40mm standard caseless rounds. Being caseless rounds, these cannot be disassembled or reloaded.",
+ "proportional": { "price": 0.7, "damage": 0.9, "dispersion": 1.1 },
+ "extend": { "effects": [ "RECYCLED" ] },
+ "delete": { "effects": [ "NEVER_MISFIRES" ] }
+ },
+ {
+ "id": "8mm_bootleg_fmj",
+ "copy-from": "8mm_fmj",
+ "type": "AMMO",
+ "name": { "str": "8x40mm FMJ, handmade" },
+ "description": "Handcrafted Bootleg duplicates of Rivtech 8x40mm FMJ caseless rounds. Being caseless rounds, these cannot be disassembled or reloaded.",
+ "proportional": { "price": 0.7, "damage": 0.9, "dispersion": 1.1 },
+ "extend": { "effects": [ "RECYCLED" ] },
+ "delete": { "effects": [ "NEVER_MISFIRES" ] }
+ },
+ {
+ "id": "8mm_bootleg_inc",
+ "copy-from": "8mm_inc",
+ "type": "AMMO",
+ "name": { "str": "8x40mm tracer, handmade" },
+ "description": "Handcrafted Bootleg duplicates of Rivtech 8x40mm tracer caseless rounds. Being caseless rounds, these cannot be disassembled or reloaded.",
+ "proportional": { "price": 0.7, "damage": 0.9, "dispersion": 1.1 },
+ "extend": { "effects": [ "RECYCLED" ] },
+ "delete": { "effects": [ "NEVER_MISFIRES" ] }
+ }
+]
diff --git a/json/items/generic/casing.json b/json/items/generic/casing.json
new file mode 100644
index 0000000..36976a2
--- /dev/null
+++ b/json/items/generic/casing.json
@@ -0,0 +1,22 @@
+[
+ {
+ "id": "8mm_mold",
+ "copy-from": "casing",
+ "looks_like": "5x50_hull",
+ "type": "GENERIC",
+ "name": { "str": "8x40mm mold" },
+ "description": "A mold for casting a 8x40mm rifle round. This mold is fragile and will not last beyond a single casting.",
+ "weight": "6 g",
+ "volume": "9ml"
+ },
+ {
+ "id": "20x66_mold",
+ "copy-from": "casing",
+ "looks_like": "5x50_hull",
+ "type": "GENERIC",
+ "name": { "str": "20x66m mold" },
+ "description": "A mold for casting a 20x66mm shotgun round. This mold is fragile and will not last beyond a single casting.",
+ "weight": "6 g",
+ "volume": "9ml"
+ }
+]
diff --git a/json/recipes/weapons/ammo/rivtech.json b/json/recipes/weapons/ammo/rivtech.json
new file mode 100644
index 0000000..9dbb684
--- /dev/null
+++ b/json/recipes/weapons/ammo/rivtech.json
@@ -0,0 +1,228 @@
+[
+ {
+ "result": "8mm_bootleg_jhp",
+ "type": "recipe",
+ "category": "CC_AMMO",
+ "subcategory": "CSC_AMMO_RIFLE",
+ "skill_used": "fabrication",
+ "difficulty": 6,
+ "skills_required": [ "gun", 5 ],
+ "time": "2 m",
+ "batch_time_factors": [ 60, 5 ],
+ "book_learn": [ [ "recipe_caseless", 4 ] ],
+ "charges": 1,
+ "reversible": true,
+ "using": [ [ "bullet_forming", 10 ], [ "ammo_bullet", 8 ] ],
+ "tools": [ [ [ "mold_plastic", -1 ] ] ],
+ "components": [
+ [ [ "8mm_mold", 1 ] ],
+ [ [ "lgrifle_primer", 1 ] ],
+ [ [ "gunpowder", 7 ], [ "gunpowder_large_rifle", 7 ] ],
+ [ [ "copper", 3 ] ]
+ ]
+ },
+ {
+ "result": "8mm_bootleg_caseless",
+ "type": "recipe",
+ "category": "CC_AMMO",
+ "subcategory": "CSC_AMMO_RIFLE",
+ "skill_used": "fabrication",
+ "difficulty": 6,
+ "skills_required": [ "gun", 5 ],
+ "time": "2 m",
+ "batch_time_factors": [ 60, 5 ],
+ "book_learn": [ [ "recipe_caseless", 4 ] ],
+ "charges": 1,
+ "reversible": true,
+ "using": [ [ "bullet_forming", 10 ], [ "ammo_bullet", 8 ] ],
+ "tools": [ [ [ "mold_plastic", -1 ] ] ],
+ "components": [
+ [ [ "8mm_mold", 1 ] ],
+ [ [ "lgrifle_primer", 1 ] ],
+ [ [ "gunpowder", 7 ], [ "gunpowder_large_rifle", 7 ] ],
+ [ [ "copper", 4 ] ]
+ ]
+ },
+ {
+ "result": "8mm_bootleg_fmj",
+ "type": "recipe",
+ "category": "CC_AMMO",
+ "subcategory": "CSC_AMMO_RIFLE",
+ "skill_used": "fabrication",
+ "difficulty": 6,
+ "skills_required": [ "gun", 5 ],
+ "time": "2 m",
+ "batch_time_factors": [ 60, 5 ],
+ "book_learn": [ [ "recipe_caseless", 4 ] ],
+ "charges": 1,
+ "reversible": true,
+ "using": [ [ "bullet_forming", 10 ], [ "ammo_bullet", 8 ] ],
+ "tools": [ [ [ "mold_plastic", -1 ] ] ],
+ "components": [
+ [ [ "8mm_mold", 1 ] ],
+ [ [ "lgrifle_primer", 1 ] ],
+ [ [ "gunpowder", 7 ], [ "gunpowder_large_rifle", 7 ] ],
+ [ [ "copper", 5 ] ]
+ ]
+ },
+ {
+ "result": "8mm_bootleg_inc",
+ "type": "recipe",
+ "category": "CC_AMMO",
+ "subcategory": "CSC_AMMO_RIFLE",
+ "skill_used": "fabrication",
+ "difficulty": 6,
+ "skills_required": [ "gun", 5 ],
+ "time": "2 m",
+ "batch_time_factors": [ 60, 5 ],
+ "book_learn": [ [ "recipe_caseless", 4 ] ],
+ "charges": 1,
+ "reversible": true,
+ "using": [ [ "bullet_forming", 10 ], [ "ammo_bullet", 8 ] ],
+ "tools": [ [ [ "mold_plastic", -1 ] ] ],
+ "components": [
+ [ [ "8mm_mold", 1 ] ],
+ [ [ "lgrifle_primer", 1 ] ],
+ [ [ "gunpowder", 7 ], [ "gunpowder_large_rifle", 7 ] ],
+ [ [ "copper", 4 ] ],
+ [ [ "incendiary", 2 ] ]
+ ]
+ },
+ {
+ "result": "20x66_bootleg_shot",
+ "type": "recipe",
+ "category": "CC_AMMO",
+ "subcategory": "CSC_AMMO_SHOT",
+ "skill_used": "fabrication",
+ "difficulty": 6,
+ "skills_required": [ "gun", 5 ],
+ "time": "2 m",
+ "batch_time_factors": [ 60, 5 ],
+ "book_learn": [ [ "recipe_caseless", 4 ] ],
+ "charges": 1,
+ "reversible": true,
+ "using": [ [ "bullet_forming", 10 ], [ "ammo_bullet", 10 ] ],
+ "tools": [ [ [ "mold_plastic", -1 ] ] ],
+ "components": [
+ [ [ "20x66_mold", 1 ] ],
+ [ [ "shotgun_primer", 1 ] ],
+ [ [ "gunpowder", 6 ], [ "gunpowder_shotgun", 6 ] ]
+ ]
+ },
+ {
+ "result": "20x66_bootleg_slug",
+ "type": "recipe",
+ "category": "CC_AMMO",
+ "subcategory": "CSC_AMMO_SHOT",
+ "skill_used": "fabrication",
+ "difficulty": 6,
+ "skills_required": [ "gun", 5 ],
+ "time": "2 m",
+ "batch_time_factors": [ 60, 5 ],
+ "book_learn": [ [ "recipe_caseless", 4 ] ],
+ "charges": 1,
+ "reversible": true,
+ "using": [ [ "bullet_forming", 10 ], [ "ammo_bullet", 20 ] ],
+ "tools": [ [ [ "mold_plastic", -1 ] ] ],
+ "components": [
+ [ [ "20x66_mold", 1 ] ],
+ [ [ "shotgun_primer", 1 ] ],
+ [ [ "gunpowder", 6 ], [ "gunpowder_shotgun", 6 ] ]
+ ]
+ },
+ {
+ "result": "20x66_bootleg_flechette",
+ "type": "recipe",
+ "category": "CC_AMMO",
+ "subcategory": "CSC_AMMO_SHOT",
+ "skill_used": "fabrication",
+ "difficulty": 6,
+ "skills_required": [ "gun", 5 ],
+ "time": "2 m",
+ "batch_time_factors": [ 60, 5 ],
+ "book_learn": [ [ "recipe_caseless", 4 ] ],
+ "charges": 1,
+ "reversible": true,
+ "using": [ [ "bullet_forming", 10 ] ],
+ "tools": [ [ [ "mold_plastic", -1 ] ] ],
+ "components": [
+ [ [ "20x66_mold", 1 ] ],
+ [ [ "shotgun_primer", 1 ] ],
+ [ [ "gunpowder", 6 ], [ "gunpowder_shotgun", 6 ] ],
+ [ [ "combatnail", 10 ] ]
+ ]
+ },
+ {
+ "result": "20x66_bootleg_inc",
+ "type": "recipe",
+ "category": "CC_AMMO",
+ "subcategory": "CSC_AMMO_SHOT",
+ "skill_used": "fabrication",
+ "difficulty": 6,
+ "skills_required": [ "gun", 5 ],
+ "time": "2 m",
+ "batch_time_factors": [ 60, 5 ],
+ "book_learn": [ [ "recipe_caseless", 4 ] ],
+ "charges": 1,
+ "reversible": true,
+ "using": [ [ "bullet_forming", 10 ], [ "ammo_bullet", 10 ] ],
+ "tools": [ [ [ "mold_plastic", -1 ] ] ],
+ "components": [
+ [ [ "20x66_mold", 1 ] ],
+ [ [ "shotgun_primer", 1 ] ],
+ [ [ "gunpowder", 6 ], [ "gunpowder_shotgun", 6 ] ],
+ [ [ "magnesium", 5 ] ]
+ ]
+ },
+ {
+ "result": "20x66_bootleg_flare",
+ "type": "recipe",
+ "category": "CC_AMMO",
+ "subcategory": "CSC_AMMO_SHOT",
+ "skill_used": "fabrication",
+ "difficulty": 6,
+ "skills_required": [ "gun", 5 ],
+ "time": "2 m",
+ "batch_time_factors": [ 60, 5 ],
+ "book_learn": [ [ "recipe_caseless", 4 ] ],
+ "charges": 1,
+ "reversible": true,
+ "using": [ [ "bullet_forming", 10 ] ],
+ "tools": [ [ [ "mold_plastic", -1 ] ] ],
+ "components": [
+ [ [ "20x66_mold", 1 ] ],
+ [ [ "shotgun_primer", 1 ] ],
+ [ [ "incendiary", 25 ] ]
+ ]
+ },
+ {
+ "type": "recipe",
+ "result": "8mm_mold",
+ "category": "CC_AMMO",
+ "subcategory": "CSC_AMMO_COMPONENTS",
+ "skill_used": "fabrication",
+ "difficulty": 2,
+ "skills_required": [ "gun", 4 ],
+ "time": "2 m 6 s",
+ "batch_time_factors": [ 60, 5 ],
+ "book_learn": [ [ "recipe_caseless", 5 ] ],
+ "using": [ [ "surface_heat", 10 ] ],
+ "tools": [ [ [ "mold_plastic", -1 ] ] ],
+ "components": [ [ [ "plastic_chunk", 1 ] ] ]
+ },
+ {
+ "type": "recipe",
+ "result": "20x66_mold",
+ "category": "CC_AMMO",
+ "subcategory": "CSC_AMMO_COMPONENTS",
+ "skill_used": "fabrication",
+ "difficulty": 2,
+ "skills_required": [ "gun", 4 ],
+ "time": "2 m 6 s",
+ "batch_time_factors": [ 60, 5 ],
+ "book_learn": [ [ "recipe_caseless", 5 ] ],
+ "using": [ [ "surface_heat", 10 ] ],
+ "tools": [ [ [ "mold_plastic", -1 ] ] ],
+ "components": [ [ [ "plastic_chunk", 1 ] ] ]
+ }
+]
diff --git a/json/recipes/weapons/recipe_obsolete.json b/json/recipes/weapons/recipe_obsolete.json
new file mode 100644
index 0000000..5da5b1a
--- /dev/null
+++ b/json/recipes/weapons/recipe_obsolete.json
@@ -0,0 +1,47 @@
+[
+ {
+ "type": "recipe",
+ "result": "20x66_bootleg_shot",
+ "obsolete": false
+ },
+ {
+ "type": "recipe",
+ "result": "20x66_bootleg_slug",
+ "obsolete": false
+ },
+ {
+ "type": "recipe",
+ "result": "20x66_bootleg_flechette",
+ "obsolete": false
+ },
+ {
+ "type": "recipe",
+ "result": "20x66_bootleg_inc",
+ "obsolete": false
+ },
+ {
+ "type": "recipe",
+ "result": "20x66_bootleg_flare",
+ "obsolete": false
+ },
+ {
+ "type": "recipe",
+ "result": "8mm_bootleg_jhp",
+ "obsolete": false
+ },
+ {
+ "type": "recipe",
+ "result": "8mm_bootleg_caseless",
+ "obsolete": false
+ },
+ {
+ "type": "recipe",
+ "result": "8mm_bootleg_fmj",
+ "obsolete": false
+ },
+ {
+ "type": "recipe",
+ "result": "8mm_bootleg_inc",
+ "obsolete": false
+ }
+]
diff --git a/modinfo.json b/modinfo.json
new file mode 100644
index 0000000..136ecf2
--- /dev/null
+++ b/modinfo.json
@@ -0,0 +1,11 @@
+[
+ {
+ "type": "MOD_INFO",
+ "ident": "caseless_crafting",
+ "name": "Caseless Ammunition Crafting",
+ "authors": ["jc_gargma"],
+ "description": "Enable crafting of 8x40mm and 20x66mm ammunition.",
+ "category": "rebalance",
+ "dependencies": [ "dda" ]
+ }
+]