Skip to content

Commit

Permalink
Move all ammo attributes to arrays
Browse files Browse the repository at this point in the history
  • Loading branch information
ymber authored and KorGgenT committed May 6, 2020
1 parent 771188a commit 1f672da
Show file tree
Hide file tree
Showing 107 changed files with 452 additions and 463 deletions.
10 changes: 5 additions & 5 deletions data/json/items/basecamp.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"name": { "str": "basecamp charcoal smoker" },
"description": "A fake charcoal smoker used for basecamps.",
"sub": "char_smoker",
"ammo": "charcoal",
"ammo": [ "charcoal" ],
"max_charges": 2000
},
{
Expand All @@ -16,7 +16,7 @@
"name": { "str": "basecamp fireplace" },
"description": "A fake fireplace used for basecamps.",
"sub": "hotplate",
"ammo": "tinder",
"ammo": [ "tinder" ],
"max_charges": 50000,
"charge_factor": 25
},
Expand All @@ -27,7 +27,7 @@
"name": { "str": "basecamp forge" },
"description": "A fake forge used for basecamps.",
"sub": "char_forge",
"ammo": "charcoal",
"ammo": [ "charcoal" ],
"max_charges": 2000
},
{
Expand All @@ -37,7 +37,7 @@
"name": { "str": "basecamp kiln" },
"description": "A fake kiln used for basecamps.",
"sub": "char_kiln",
"ammo": "charcoal",
"ammo": [ "charcoal" ],
"max_charges": 2000
},
{
Expand All @@ -47,7 +47,7 @@
"name": { "str": "basecamp stove" },
"description": "A fake stove used for basecamps.",
"sub": "hotplate",
"ammo": "tinder",
"ammo": [ "tinder" ],
"max_charges": 50000,
"charge_factor": 10
},
Expand Down
4 changes: 2 additions & 2 deletions data/json/items/classes/gun.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"reload_noise": "slosh.",
"name": { "str": "base flamethrower" },
"skill": "launcher",
"ammo": "flammable",
"ammo": [ "flammable" ],
"ammo_effects": [ "FLARE" ],
"reload": 4,
"flags": [ "FIRE_100", "NEVER_JAMS", "FIRESTARTER" ],
Expand Down Expand Up @@ -175,7 +175,7 @@
"type": "GUN",
"name": { "str": "base shotgun" },
"skill": "shotgun",
"ammo": "shot",
"ammo": [ "shot" ],
"valid_mod_locations": [
[ "accessories", 4 ],
[ "barrel", 1 ],
Expand Down
2 changes: 1 addition & 1 deletion data/json/items/fake.json
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@
"material": "steel",
"flags": [ "REACH_ATTACK" ],
"skill": "archery",
"ammo": "arrow",
"ammo": [ "arrow" ],
"weight": "340 g",
"volume": "1500 ml",
"bashing": 6,
Expand Down
2 changes: 1 addition & 1 deletion data/json/items/generic.json
Original file line number Diff line number Diff line change
Expand Up @@ -2506,7 +2506,7 @@
50000,
100000
],
"ammo": "money"
"ammo": [ "money" ]
},
{
"id": "robofac_test_data",
Expand Down
4 changes: 2 additions & 2 deletions data/json/items/generic/toys_and_sports.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"material": "plastic",
"symbol": "|",
"color": "pink",
"ammo": "battery",
"ammo": [ "battery" ],
"charges_per_use": 1,
"turns_per_charge": 20,
"use_action": "DOLLCHAT",
Expand Down Expand Up @@ -44,7 +44,7 @@
"material": "plastic",
"symbol": "|",
"color": "pink",
"ammo": "battery",
"ammo": [ "battery" ],
"charges_per_use": 1,
"turns_per_charge": 20,
"use_action": "DOLLCHAT",
Expand Down
2 changes: 1 addition & 1 deletion data/json/items/gun/12mm.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"to_hit": -1,
"bashing": 12,
"material": "steel",
"ammo": "12mm",
"ammo": [ "12mm" ],
"skill": "rifle",
"range": 60,
"dispersion": 45,
Expand Down
6 changes: 3 additions & 3 deletions data/json/items/gun/20x66mm.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"material": [ "superalloy", "ceramic" ],
"symbol": "(",
"color": "dark_gray",
"ammo": "20x66mm",
"ammo": [ "20x66mm" ],
"skill": "shotgun",
"range": 6,
"ranged_damage": { "damage_type": "bullet", "amount": 4 },
Expand Down Expand Up @@ -53,7 +53,7 @@
"material": [ "superalloy", "ceramic" ],
"symbol": "(",
"color": "dark_gray",
"ammo": "20x66mm",
"ammo": [ "20x66mm" ],
"skill": "shotgun",
"dispersion": 335,
"durability": 9,
Expand Down Expand Up @@ -88,7 +88,7 @@
"material": [ "superalloy", "ceramic" ],
"symbol": "(",
"color": "dark_gray",
"ammo": "20x66mm",
"ammo": [ "20x66mm" ],
"skill": "pistol",
"dispersion": 400,
"durability": 9,
Expand Down
20 changes: 10 additions & 10 deletions data/json/items/gun/22.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"material": "steel",
"symbol": "(",
"color": "light_gray",
"ammo": "22",
"ammo": [ "22" ],
"skill": "smg",
"ranged_damage": { "damage_type": "bullet", "amount": 4 },
"dispersion": 280,
Expand Down Expand Up @@ -56,7 +56,7 @@
"material": [ "iron", "wood" ],
"symbol": "(",
"color": "brown",
"ammo": "22",
"ammo": [ "22" ],
"skill": "rifle",
"ranged_damage": { "damage_type": "bullet", "amount": 5 },
"dispersion": 90,
Expand Down Expand Up @@ -96,7 +96,7 @@
"bashing": 1,
"material": [ "steel", "wood" ],
"color": "dark_gray",
"ammo": "22",
"ammo": [ "22" ],
"ranged_damage": { "damage_type": "bullet", "amount": -2 },
"dispersion": 520,
"durability": 6,
Expand Down Expand Up @@ -131,7 +131,7 @@
"material": [ "steel", "wood" ],
"symbol": "(",
"color": "brown",
"ammo": "22",
"ammo": [ "22" ],
"skill": "rifle",
"ranged_damage": { "damage_type": "bullet", "amount": 1 },
"dispersion": 550,
Expand Down Expand Up @@ -170,7 +170,7 @@
"material": [ "steel", "wood" ],
"symbol": "(",
"color": "brown",
"ammo": "22",
"ammo": [ "22" ],
"skill": "rifle",
"ranged_damage": { "damage_type": "bullet", "amount": 4 },
"dispersion": 110,
Expand Down Expand Up @@ -201,7 +201,7 @@
"type": "GUN",
"name": { "str_sp": "Ruger LCR .22" },
"weight": "420 g",
"ammo": "22",
"ammo": [ "22" ],
"clip_size": 8,
"magazines": [ [ "22", [ "22_speedloader8" ] ] ]
},
Expand All @@ -221,7 +221,7 @@
"material": [ "aluminum", "steel", "plastic" ],
"symbol": "(",
"color": "dark_gray",
"ammo": "22",
"ammo": [ "22" ],
"skill": "pistol",
"ranged_damage": { "damage_type": "bullet", "amount": -1 },
"dispersion": 480,
Expand Down Expand Up @@ -258,7 +258,7 @@
"bashing": 9,
"material": [ "aluminum", "steel", "plastic" ],
"color": "dark_gray",
"ammo": "22",
"ammo": [ "22" ],
"dispersion": 480,
"durability": 7,
"min_cycle_recoil": 39,
Expand All @@ -279,7 +279,7 @@
"bashing": 1,
"material": [ "budget_steel" ],
"color": "dark_gray",
"ammo": "22",
"ammo": [ "22" ],
"dispersion": 600,
"durability": 5,
"min_cycle_recoil": 39,
Expand All @@ -301,7 +301,7 @@
"bashing": 4,
"material": [ "plastic", "zinc" ],
"color": "dark_gray",
"ammo": "22",
"ammo": [ "22" ],
"dispersion": 480,
"durability": 7,
"min_cycle_recoil": 39,
Expand Down
34 changes: 17 additions & 17 deletions data/json/items/gun/223.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"material": [ "steel", "plastic" ],
"symbol": "(",
"color": "dark_gray",
"ammo": "223",
"ammo": [ "223" ],
"ranged_damage": { "damage_type": "bullet", "amount": -1 },
"dispersion": 150,
"durability": 8,
Expand Down Expand Up @@ -60,7 +60,7 @@
"material": [ "steel", "plastic" ],
"symbol": "(",
"color": "dark_gray",
"ammo": "223",
"ammo": [ "223" ],
"dispersion": 150,
"durability": 7,
"min_cycle_recoil": 1350,
Expand Down Expand Up @@ -101,7 +101,7 @@
"material": [ "steel", "aluminum" ],
"symbol": "(",
"color": "dark_gray",
"ammo": "223",
"ammo": [ "223" ],
"range": -6,
"ranged_damage": { "damage_type": "bullet", "amount": -9 },
"dispersion": 380,
Expand All @@ -124,7 +124,7 @@
"material": [ "steel", "plastic" ],
"symbol": "(",
"color": "dark_gray",
"ammo": "223",
"ammo": [ "223" ],
"ranged_damage": { "damage_type": "bullet", "amount": -2 },
"dispersion": 180,
"durability": 8,
Expand Down Expand Up @@ -161,7 +161,7 @@
"material": [ "steel", "plastic" ],
"symbol": "(",
"color": "dark_gray",
"ammo": "223",
"ammo": [ "223" ],
"ranged_damage": { "damage_type": "stab", "amount": -2 },
"dispersion": 150,
"durability": 9,
Expand Down Expand Up @@ -196,7 +196,7 @@
"material": [ "steel", "plastic" ],
"symbol": "(",
"color": "dark_gray",
"ammo": "223",
"ammo": [ "223" ],
"ranged_damage": { "damage_type": "bullet", "amount": -2 },
"dispersion": 180,
"durability": 8,
Expand Down Expand Up @@ -239,7 +239,7 @@
"material": [ "steel", "plastic" ],
"symbol": "(",
"color": "dark_gray",
"ammo": "223",
"ammo": [ "223" ],
"dispersion": 150,
"durability": 8,
"min_cycle_recoil": 1350,
Expand All @@ -262,7 +262,7 @@
"material": [ "steel", "plastic" ],
"symbol": "(",
"color": "dark_gray",
"ammo": "223",
"ammo": [ "223" ],
"dispersion": 200,
"durability": 7,
"min_cycle_recoil": 1350,
Expand Down Expand Up @@ -350,7 +350,7 @@
"material": [ "steel", "plastic" ],
"symbol": "(",
"color": "dark_gray",
"ammo": "223",
"ammo": [ "223" ],
"ranged_damage": { "damage_type": "bullet", "amount": -2 },
"dispersion": 180,
"durability": 6,
Expand Down Expand Up @@ -393,7 +393,7 @@
"material": [ "steel", "plastic" ],
"symbol": "(",
"color": "dark_gray",
"ammo": "223",
"ammo": [ "223" ],
"dispersion": 150,
"durability": 7,
"min_cycle_recoil": 1350,
Expand Down Expand Up @@ -435,7 +435,7 @@
"material": [ "steel", "aluminum" ],
"symbol": "(",
"color": "dark_gray",
"ammo": "223",
"ammo": [ "223" ],
"range": -6,
"ranged_damage": { "damage_type": "bullet", "amount": -11 },
"dispersion": 380,
Expand All @@ -459,7 +459,7 @@
"material": [ "steel", "wood" ],
"symbol": "(",
"color": "brown",
"ammo": "223",
"ammo": [ "223" ],
"skill": "rifle",
"ranged_damage": { "damage_type": "bullet", "amount": -2 },
"dispersion": 550,
Expand Down Expand Up @@ -498,7 +498,7 @@
"material": [ "steel", "wood" ],
"symbol": "(",
"color": "brown",
"ammo": "223",
"ammo": [ "223" ],
"ranged_damage": { "damage_type": "bullet", "amount": 1 },
"dispersion": 100,
"durability": 8,
Expand Down Expand Up @@ -536,7 +536,7 @@
"material": [ "steel", "plastic" ],
"symbol": "(",
"color": "dark_gray",
"ammo": "223",
"ammo": [ "223" ],
"ranged_damage": { "damage_type": "bullet", "amount": -2 },
"dispersion": 150,
"durability": 8,
Expand Down Expand Up @@ -577,7 +577,7 @@
"to_hit": -1,
"bashing": 10,
"material": [ "steel", "plastic" ],
"ammo": "223",
"ammo": [ "223" ],
"dispersion": 180,
"durability": 9,
"min_cycle_recoil": 1350,
Expand Down Expand Up @@ -620,7 +620,7 @@
"material": [ "steel", "plastic" ],
"symbol": "(",
"color": "light_gray",
"ammo": "223",
"ammo": [ "223" ],
"dispersion": 140,
"durability": 8,
"min_cycle_recoil": 1350,
Expand Down Expand Up @@ -659,7 +659,7 @@
"material": [ "steel", "wood" ],
"symbol": "(",
"color": "brown",
"ammo": "223",
"ammo": [ "223" ],
"ranged_damage": { "damage_type": "bullet", "amount": -4 },
"dispersion": 550,
"durability": 6,
Expand Down
2 changes: 1 addition & 1 deletion data/json/items/gun/270win.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"bashing": 12,
"material": [ "steel", "wood" ],
"color": "brown",
"ammo": "270win",
"ammo": [ "270win" ],
"dispersion": 70,
"durability": 8,
"blackpowder_tolerance": 24,
Expand Down
Loading

0 comments on commit 1f672da

Please sign in to comment.