Skip to content

Commit

Permalink
Add magazine wells to items
Browse files Browse the repository at this point in the history
  • Loading branch information
ymber authored and KorGgenT committed May 20, 2020
1 parent 6782ad0 commit 8ad5b23
Show file tree
Hide file tree
Showing 70 changed files with 2,593 additions and 808 deletions.
26 changes: 16 additions & 10 deletions data/json/items/generic/toys_and_sports.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,13 @@
"charges_per_use": 1,
"turns_per_charge": 20,
"use_action": "DOLLCHAT",
"magazines": [
[
"battery",
[
"pocket_data": [
{
"pocket_type": "MAGAZINE_WELL",
"holster": true,
"max_contains_volume": "20 L",
"max_contains_weight": "20 kg",
"item_restriction": [
"light_minus_disposable_cell",
"light_disposable_cell",
"light_minus_battery_cell",
Expand All @@ -28,7 +31,7 @@
"light_atomic_battery_cell",
"light_minus_atomic_battery_cell"
]
]
}
]
},
{
Expand All @@ -48,10 +51,13 @@
"charges_per_use": 1,
"turns_per_charge": 20,
"use_action": "DOLLCHAT",
"magazines": [
[
"battery",
[
"pocket_data": [
{
"pocket_type": "MAGAZINE_WELL",
"holster": true,
"max_contains_volume": "20 L",
"max_contains_weight": "20 kg",
"item_restriction": [
"light_minus_disposable_cell",
"light_disposable_cell",
"light_minus_battery_cell",
Expand All @@ -60,7 +66,7 @@
"light_atomic_battery_cell",
"light_minus_atomic_battery_cell"
]
]
}
]
},
{
Expand Down
12 changes: 10 additions & 2 deletions data/json/items/gun/12mm.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,15 @@
[ "stock", 1 ],
[ "underbarrel", 1 ]
],
"magazines": [ [ "12mm", [ "hk_g80mag" ] ] ],
"flags": [ "NEVER_JAMS" ]
"flags": [ "NEVER_JAMS" ],
"pocket_data": [
{
"pocket_type": "MAGAZINE_WELL",
"holster": true,
"max_contains_volume": "20 L",
"max_contains_weight": "20 kg",
"item_restriction": [ "hk_g80mag" ]
}
]
}
]
24 changes: 20 additions & 4 deletions data/json/items/gun/20x66mm.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,16 @@
[ "stock", 1 ],
[ "underbarrel", 1 ]
],
"magazines": [ [ "20x66mm", [ "20x66_20_mag", "20x66_40_mag" ] ] ],
"flags": [ "WATERPROOF_GUN", "NEVER_JAMS" ]
"flags": [ "WATERPROOF_GUN", "NEVER_JAMS" ],
"pocket_data": [
{
"pocket_type": "MAGAZINE_WELL",
"holster": true,
"max_contains_volume": "20 L",
"max_contains_weight": "20 kg",
"item_restriction": [ "20x66_20_mag", "20x66_40_mag" ]
}
]
},
{
"id": "rm228",
Expand Down Expand Up @@ -103,7 +111,15 @@
[ "stock", 1 ],
[ "underbarrel mount", 1 ]
],
"magazines": [ [ "20x66mm", [ "20x66_10_mag" ] ] ],
"flags": [ "WATERPROOF_GUN", "NEVER_JAMS" ]
"flags": [ "WATERPROOF_GUN", "NEVER_JAMS" ],
"pocket_data": [
{
"pocket_type": "MAGAZINE_WELL",
"holster": true,
"max_contains_volume": "20 L",
"max_contains_weight": "20 kg",
"item_restriction": [ "20x66_10_mag" ]
}
]
}
]
82 changes: 72 additions & 10 deletions data/json/items/gun/22.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,15 @@
[ "underbarrel", 1 ]
],
"faults": [ "fault_gun_blackpowder", "fault_gun_dirt", "fault_gun_chamber_spent" ],
"magazines": [ [ "22", [ "a180mag" ] ] ]
"pocket_data": [
{
"pocket_type": "MAGAZINE_WELL",
"holster": true,
"max_contains_volume": "20 L",
"max_contains_weight": "20 kg",
"item_restriction": [ "a180mag" ]
}
]
},
{
"id": "marlin_9a",
Expand All @@ -63,7 +71,6 @@
"durability": 8,
"blackpowder_tolerance": 56,
"clip_size": 19,
"magazines": [ [ "22", [ "marlin_tubeloader" ] ] ],
"valid_mod_locations": [
[ "accessories", 4 ],
[ "barrel", 1 ],
Expand All @@ -80,7 +87,15 @@
],
"faults": [ "fault_gun_blackpowder", "fault_gun_dirt" ],
"flags": [ "RELOAD_ONE" ],
"pocket_data": [ { "pocket_type": "MAGAZINE", "ammo_restriction": { "22": 19 } } ]
"pocket_data": [
{
"pocket_type": "MAGAZINE_WELL",
"holster": true,
"max_contains_volume": "20 L",
"max_contains_weight": "20 kg",
"item_restriction": [ "marlin_tubeloader" ]
}
]
},
{
"id": "moss_brownie",
Expand Down Expand Up @@ -195,7 +210,15 @@
[ "underbarrel", 1 ]
],
"faults": [ "fault_gun_blackpowder", "fault_gun_dirt", "fault_gun_chamber_spent" ],
"magazines": [ [ "22", [ "ruger1022mag", "ruger1022bigmag" ] ] ]
"pocket_data": [
{
"pocket_type": "MAGAZINE_WELL",
"holster": true,
"max_contains_volume": "20 L",
"max_contains_weight": "20 kg",
"item_restriction": [ "ruger1022mag", "ruger1022bigmag" ]
}
]
},
{
"id": "ruger_lcr_22",
Expand All @@ -206,8 +229,15 @@
"weight": "420 g",
"ammo": [ "22" ],
"clip_size": 8,
"magazines": [ [ "22", [ "22_speedloader8" ] ] ],
"pocket_data": [ { "pocket_type": "MAGAZINE", "ammo_restriction": { "22": 8 } } ]
"pocket_data": [
{
"pocket_type": "MAGAZINE_WELL",
"holster": true,
"max_contains_volume": "20 L",
"max_contains_weight": "20 kg",
"item_restriction": [ "22_speedloader8" ]
}
]
},
{
"id": "sig_mosquito",
Expand Down Expand Up @@ -245,7 +275,15 @@
[ "underbarrel", 1 ]
],
"faults": [ "fault_gun_blackpowder", "fault_gun_dirt", "fault_gun_chamber_spent" ],
"magazines": [ [ "22", [ "mosquitomag" ] ] ]
"pocket_data": [
{
"pocket_type": "MAGAZINE_WELL",
"holster": true,
"max_contains_volume": "20 L",
"max_contains_weight": "20 kg",
"item_restriction": [ "mosquitomag" ]
}
]
},
{
"id": "sw_22",
Expand All @@ -266,7 +304,15 @@
"dispersion": 480,
"durability": 7,
"min_cycle_recoil": 39,
"magazines": [ [ "22", [ "sw22mag" ] ] ]
"pocket_data": [
{
"pocket_type": "MAGAZINE_WELL",
"holster": true,
"max_contains_volume": "20 L",
"max_contains_weight": "20 kg",
"item_restriction": [ "sw22mag" ]
}
]
},
{
"id": "j22",
Expand All @@ -288,7 +334,15 @@
"durability": 5,
"min_cycle_recoil": 39,
"faults": [ "fault_gun_blackpowder", "fault_gun_dirt", "fault_gun_chamber_spent" ],
"magazines": [ [ "22", [ "j22mag" ] ] ]
"pocket_data": [
{
"pocket_type": "MAGAZINE_WELL",
"holster": true,
"max_contains_volume": "20 L",
"max_contains_weight": "20 kg",
"item_restriction": [ "j22mag" ]
}
]
},
{
"id": "walther_p22",
Expand All @@ -309,6 +363,14 @@
"dispersion": 480,
"durability": 7,
"min_cycle_recoil": 39,
"magazines": [ [ "22", [ "wp22mag" ] ] ]
"pocket_data": [
{
"pocket_type": "MAGAZINE_WELL",
"holster": true,
"max_contains_volume": "20 L",
"max_contains_weight": "20 kg",
"item_restriction": [ "wp22mag" ]
}
]
}
]
Loading

0 comments on commit 8ad5b23

Please sign in to comment.