summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjc_gargma <jc_gargma@iserlohn-fortress.net>2023-02-16 18:25:19 -0800
committerjc_gargma <jc_gargma@iserlohn-fortress.net>2023-02-16 18:25:19 -0800
commitc4b102dc50440956aa14c36639589673a1c3aeb2 (patch)
treeda6f7d3921f419e4f0b969b89287bbf040d38463
parentFix 000shot uncrafts to output 12g hull. (diff)
downloadcataclysm-dda-mod_hk-loadout-c4b102dc50440956aa14c36639589673a1c3aeb2.tar.xz
Migrate 000 shotgun hulls to 00 shotgun hulls.
-rw-r--r--json/items/generic/casing.json15
-rw-r--r--json/items/generic/obsolete.json17
-rw-r--r--json/items/migration.json5
3 files changed, 22 insertions, 15 deletions
diff --git a/json/items/generic/casing.json b/json/items/generic/casing.json
index 62713fb..aacd061 100644
--- a/json/items/generic/casing.json
+++ b/json/items/generic/casing.json
@@ -9,20 +9,5 @@
"material": [ "plastic" ],
"weight": "2 g",
"volume": "10ml"
- },
- {
- "id": "000shot_hull",
- "type": "GENERIC",
- "looks_like": "shot_hull",
- "category": "spare_parts",
- "name": { "str": "000 shotgun hull" },
- "description": "An empty hull from a 000 shotgun shell.",
- "weight": "8 g",
- "volume": "12ml",
- "stackable": true,
- "material": [ "plastic" ],
- "symbol": "=",
- "color": "red",
- "damage_states": [ 0, 0 ]
}
]
diff --git a/json/items/generic/obsolete.json b/json/items/generic/obsolete.json
new file mode 100644
index 0000000..00e5a10
--- /dev/null
+++ b/json/items/generic/obsolete.json
@@ -0,0 +1,17 @@
+[
+ {
+ "id": "000shot_hull",
+ "type": "GENERIC",
+ "looks_like": "shot_hull",
+ "category": "spare_parts",
+ "name": { "str": "000 shotgun hull" },
+ "description": "An empty hull from a 000 shotgun shell.",
+ "weight": "8 g",
+ "volume": "12ml",
+ "stackable": true,
+ "material": [ "plastic" ],
+ "symbol": "=",
+ "color": "red",
+ "damage_states": [ 0, 0 ]
+ }
+]
diff --git a/json/items/migration.json b/json/items/migration.json
index 31668a3..0421568 100644
--- a/json/items/migration.json
+++ b/json/items/migration.json
@@ -35,6 +35,11 @@
"replace": "shot_he"
},
{
+ "id": "000shot_hull",
+ "type": "MIGRATION",
+ "replace": "shot_hull"
+ },
+ {
"result": "reloaded_shot_000_flechette",
"type": "recipe",
"obsolete": true