From 9ac7baa55d3a6b8f9613c5b055c78d08652eab7b Mon Sep 17 00:00:00 2001 From: jc_gargma Date: Sat, 27 Jun 2020 02:29:57 -0700 Subject: Reduce duplication of item references No longer require editing of 45.json --- json/items/magazine/9mm.json | 42 ++++++------------------------------------ 1 file changed, 6 insertions(+), 36 deletions(-) (limited to 'json/items/magazine/9mm.json') diff --git a/json/items/magazine/9mm.json b/json/items/magazine/9mm.json index 14e46c5..89a401c 100644 --- a/json/items/magazine/9mm.json +++ b/json/items/magazine/9mm.json @@ -1,54 +1,24 @@ [ { "id": "usp9mag", - "looks_like": "glock17_17", + "copy-from": "usp9mag", "type": "MAGAZINE", "name": { "str": "H&K USP 9mm magazine" }, - "description": "A factory specification 15-round box magazine for use with the dependable H&K USP 9x19mm pistol.", - "weight": "75 g", - "volume": "250 ml", - "price": 3850, - "material": "steel", - "symbol": "#", - "color": "light_gray", - "ammo_type": "9mm", - "capacity": 15, - "reliability": 10, - "flags": [ "MAG_COMPACT" ] + "ammo_type": "9mm" }, { "id": "mp5mag", + "copy-from": "usp9mag", "//": "Tileset whitelist for SMG magazines", "type": "MAGAZINE", "name": { "str": "H&K MP5 magazine" }, - "description": "A standard capacity curved magazine for use with the H&K MP5 SMG.", - "weight": "210 g", - "volume": "500 ml", - "price": 4100, - "material": "steel", - "symbol": "#", - "color": "light_gray", - "ammo_type": "9mm", - "capacity": 30, - "reliability": 9, - "flags": [ "MAG_COMPACT" ] + "ammo_type": "9mm" }, { "id": "mp5bigmag", - "looks_like": "glock17_17", + "copy-from": "usp9mag", "type": "MAGAZINE", "name": { "str": "H&K MP5 extended magazine" }, - "description": "A drum magazine for use with the H&K MP5 SMG. Much greater capacity but less reliable the factory specification magazine.", - "weight": "350 g", - "volume": "750 ml", - "price": 6920, - "material": "steel", - "symbol": "#", - "color": "light_gray", - "ammo_type": "9mm", - "capacity": 50, - "reliability": 8, - "reload_time": 160, - "flags": [ "MAG_BULKY" ] + "ammo_type": "9mm" } ] -- cgit v1.2.1