From a765851ac5195248f5ad001873f2fed10ee30eb3 Mon Sep 17 00:00:00 2001 From: snipercup <50166150+snipercup@users.noreply.github.com> Date: Fri, 14 Feb 2020 11:50:13 +0100 Subject: [PATCH] Name to object leave the s, flags to array, volume to string --- data/json/items/fake.json | 3 +-- data/json/items/generic.json | 3 +-- data/json/items/newspaper.json | 7 +++---- data/json/items/resources/metal.json | 3 +-- data/json/items/robot_parts.json | 21 +++++++-------------- data/json/items/tool/cooking.json | 9 +++------ data/json/items/tool/science.json | 3 +-- data/json/items/vehicle/farming.json | 3 +-- data/json/items/vehicle/manual.json | 3 +-- 9 files changed, 19 insertions(+), 36 deletions(-) diff --git a/data/json/items/fake.json b/data/json/items/fake.json index 3cc32b9d9fff5..ad0af3ea4cc95 100644 --- a/data/json/items/fake.json +++ b/data/json/items/fake.json @@ -131,8 +131,7 @@ "id": "fake_milling_item", "copy-from": "fake_item", "type": "GENERIC", - "name": "semi ground grains", - "name_plural": "semi ground grains", + "name": { "str": "semi ground grains", "str_pl": "semi ground grains" }, "description": "A paste of half-finished milled grains, not yet flour.", "flags": [ "TRADER_AVOID", "FAKE_MILL" ] }, diff --git a/data/json/items/generic.json b/data/json/items/generic.json index a526b3e2e1501..5207f16fadbf0 100644 --- a/data/json/items/generic.json +++ b/data/json/items/generic.json @@ -315,8 +315,7 @@ "category": "spare_parts", "symbol": ",", "color": "light_gray", - "name": "set of 100 ceramic disk", - "name_plural": "ceramic disks", + "name": { "str": "set of 100 ceramic disk", "str_pl": "ceramic disks" }, "description": "A set of small slightly elongated disks, made of high-grade ceramic. They remind you of scales.", "price": 0, "material": "lightceramic", diff --git a/data/json/items/newspaper.json b/data/json/items/newspaper.json index 3403f2b5d0752..0031dc793c23f 100644 --- a/data/json/items/newspaper.json +++ b/data/json/items/newspaper.json @@ -51,15 +51,14 @@ "category": "other", "symbol": ",", "color": "dark_gray", - "name": "score card", - "name_plural": "score cards", + "name": { "str": "score card" }, "snippet_category": "scores", "description": "A colorfully printed score card.", "price": 0, "material": "paper", - "flags": "TRADER_AVOID", + "flags": [ "TRADER_AVOID" ], "weight": "3 g", - "volume": 0 + "volume": "1 ml" }, { "type": "GENERIC", diff --git a/data/json/items/resources/metal.json b/data/json/items/resources/metal.json index 8d2cbf3d571e6..aa5ae47f287dc 100644 --- a/data/json/items/resources/metal.json +++ b/data/json/items/resources/metal.json @@ -288,8 +288,7 @@ "id": "scrap_copper", "symbol": ",", "color": "light_gray", - "name": "scrap copper", - "name_plural": "scrap copper", + "name": { "str": "scrap copper", "str_pl": "scrap copper" }, "category": "spare_parts", "description": "A small chunk of copper, usable for crafting or repairs.", "price": 1000, diff --git a/data/json/items/robot_parts.json b/data/json/items/robot_parts.json index 04c4cf19d9b29..77e21f5fb5170 100644 --- a/data/json/items/robot_parts.json +++ b/data/json/items/robot_parts.json @@ -86,8 +86,7 @@ { "type": "GENERIC", "id": "spidery_legs_small", - "name": "set of tiny spidery legs", - "name_plural": "sets of tiny spidery legs", + "name": { "str": "set of tiny spidery legs", "str_pl": "sets of tiny spidery legs" }, "description": "A set of tiny pointy legs, like the ones found under a skitterbot.", "symbol": "w", "color": "light_gray", @@ -100,8 +99,7 @@ { "type": "GENERIC", "id": "reverse_jointed_legs", - "name": "set of reverse-jointed legs", - "name_plural": "sets of reverse-jointed legs", + "name": { "str": "set of reverse-jointed legs", "str_pl": "sets of reverse-jointed legs" }, "description": "A set of reverse-jointed legs, like the ones found under a chicken walker.", "symbol": "k", "color": "light_gray", @@ -114,8 +112,7 @@ { "type": "GENERIC", "id": "omni_wheel", - "name": "set of omni wheels", - "name_plural": "sets of omni wheels", + "name": { "str": "set of omni wheels", "str_pl": "sets of omni wheels" }, "description": "A set of omni wheels, like the ones found under a police bot.", "symbol": "o", "color": "light_gray", @@ -128,8 +125,7 @@ { "type": "GENERIC", "id": "quad_rotors", - "name": "set of rotors", - "name_plural": "sets of rotors", + "name": { "str": "set of rotors", "str_pl": "sets of rotors" }, "description": "A set of rotors able to lift a small drone.", "symbol": "#", "color": "light_gray", @@ -142,8 +138,7 @@ { "type": "GENERIC", "id": "android_legs", - "name": "set of android legs", - "name_plural": "sets of android legs", + "name": { "str": "set of android legs", "str_pl": "sets of android legs" }, "description": "A set of human-like legs.", "symbol": "M", "color": "light_gray", @@ -156,8 +151,7 @@ { "type": "GENERIC", "id": "android_arms", - "name": "set of android arms", - "name_plural": "sets of android arms", + "name": { "str": "set of android arms", "str_pl": "sets of android arms" }, "description": "A set of human-like arms.", "symbol": "m", "color": "light_gray", @@ -170,8 +164,7 @@ { "type": "GENERIC", "id": "tank_tread", - "name": "set of small tank tread", - "name_plural": "sets of small tank tread", + "name": { "str": "set of small tank tread", "str_pl": "sets of small tank tread" }, "description": "A set of small tank tread, like the one used by the \"Beagle\" mini-tank.", "symbol": "=", "color": "light_gray", diff --git a/data/json/items/tool/cooking.json b/data/json/items/tool/cooking.json index 72f6b8aceab42..d7a380538424b 100644 --- a/data/json/items/tool/cooking.json +++ b/data/json/items/tool/cooking.json @@ -430,8 +430,7 @@ "id": "jar_eggs_pickled", "type": "GENERIC", "category": "food", - "name": "sealed jar of eggs", - "name_plural": "sealed jars of eggs", + "name": { "str": "sealed jar of eggs", "str_pl": "sealed jars of eggs" }, "description": "This is a sealed glass jar containing pickled eggs. Use to open and eat to enjoy.", "weight": "1750 g", "volume": "500 ml", @@ -453,8 +452,7 @@ "id": "jar_pickles_pickled", "type": "GENERIC", "category": "food", - "name": "sealed jar of pickles", - "name_plural": "sealed jars of pickles", + "name": { "str": "sealed jar of pickles", "str_pl": "sealed jars of pickles" }, "description": "This is a sealed glass jar containing pickles. Use to open and eat to enjoy.", "weight": "1750 g", "volume": "500 ml", @@ -476,8 +474,7 @@ "id": "jar_sauerkraut_pickled", "type": "GENERIC", "category": "food", - "name": "sealed jar of sauerkraut", - "name_plural": "sealed jars of sauerkraut", + "name": { "str": "sealed jar of sauerkraut", "str_pl": "sealed jars of sauerkraut" }, "description": "This is a sealed glass jar containing sauerkraut. Use to open and eat to enjoy.", "weight": "1750 g", "volume": "500 ml", diff --git a/data/json/items/tool/science.json b/data/json/items/tool/science.json index 386dab800ee70..c485ccbc46a87 100644 --- a/data/json/items/tool/science.json +++ b/data/json/items/tool/science.json @@ -711,8 +711,7 @@ "id": "stand_ring_clamps", "type": "GENERIC", "category": "spare_parts", - "name": "set of ring stand clamps", - "name_plural": "sets of ring stand clamps", + "name": { "str": "set of ring stand clamps", "str_pl": "sets of ring stand clamps" }, "description": "This is a small box with a jumbled assortment of clamps for mounting on ring stands. There seems to be some sort of rule that all of them are missing at least one wing nut for tightening them; it looks like judicious use of twist ties, duct tape, and other random stuff has been used to compensate.", "weight": "300 g", "volume": "450ml", diff --git a/data/json/items/vehicle/farming.json b/data/json/items/vehicle/farming.json index 61a6dd36a1852..2af6639255b66 100644 --- a/data/json/items/vehicle/farming.json +++ b/data/json/items/vehicle/farming.json @@ -18,8 +18,7 @@ "type": "GENERIC", "id": "v_planter_item", "symbol": "8", - "name": "seed drill", - "name_plural": "seed drills", + "name": { "str": "seed drill" }, "description": "An assembly of tubes, spikes, and wheels, that when dragged along the ground, allows a vehicle to plant seeds automatically in suitably tilled land.", "material": [ "steel", "plastic" ], "copy-from": "v_scoop_item" diff --git a/data/json/items/vehicle/manual.json b/data/json/items/vehicle/manual.json index 16e141603e83d..998848560d880 100644 --- a/data/json/items/vehicle/manual.json +++ b/data/json/items/vehicle/manual.json @@ -2,8 +2,7 @@ { "type": "GENERIC", "id": "hand_rims", - "name": "set of hand rims", - "name_plural": "sets of hand rims", + "name": { "str": "set of hand rims", "str_pl": "sets of hand rims" }, "description": "Hand rims for use on a wheelchair.", "weight": "816 g", "to_hit": -1,