Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Weapon Category Update #1709

Merged
merged 53 commits into from
Mar 30, 2023
Merged
Show file tree
Hide file tree
Changes from 50 commits
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
ffea314
Merge pull request #50212 from Saicchi/weaponcategory
KheirFerrum Jul 8, 2022
81723d3
Weapon Categories: Krav Maga
KheirFerrum Jul 8, 2022
fbb96a9
SHIVS (#52615)
Termineitor244 Nov 5, 2021
72e12cc
weapon categories in [F1] menu (#52402)
Saicchi Oct 23, 2021
f9c14f9
Weapon Categories: Ninjutsu (#51868)
Termineitor244 Sep 27, 2021
a31bebc
Weapon Categories: Eskrima (#51918)
Termineitor244 Sep 29, 2021
f11d919
[CR] Weapon Categories: Silat (And Polearms categories) (#51972)
Termineitor244 Oct 28, 2021
70a1d00
POLEARMS (#52579)
Termineitor244 Nov 5, 2021
03e0a34
Merge pull request #52671 from Termineitor244/Fior-Di-Battaglia-Weapons
Rivet-the-Zombie Nov 11, 2021
8f7f808
Merge pull request #52786 from Termineitor244/Fencing-Weapons
Rivet-the-Zombie Nov 14, 2021
dc657b2
Weapon Categories: Bionic Combatives (#52885)
KheirFerrum Jul 8, 2022
3433816
Weapon Categories: Medieval Swordsmanship (#53449)
catdach Dec 16, 2021
0a69097
bokken and bio blade (#53695)
catdach Dec 23, 2021
e41d996
Rename
KheirFerrum Jul 8, 2022
3f509f1
Merge pull request #57008 from Termineitor244/Weapon-Categories-Final
dseguin Apr 22, 2022
f3f15c6
Styling
KheirFerrum Jul 8, 2022
050fcb6
Display weapon category in item info.
KheirFerrum Aug 6, 2022
84d02ca
Strip out gun weapon categories
KheirFerrum Dec 3, 2022
5343203
Merge branch 'upload' into Weapon-Categories
KheirFerrum Dec 4, 2022
6929df6
Add weapon categories to guns
KheirFerrum Feb 4, 2023
69c11e8
JSON fixes
KheirFerrum Mar 19, 2023
26afa46
Add weapon categories to melee weapons
KheirFerrum Mar 19, 2023
fbf4492
martial arts update
KheirFerrum Mar 19, 2023
ccedfe5
Display and sort
KheirFerrum Mar 19, 2023
b2286b1
Tweaks
KheirFerrum Mar 19, 2023
e8f0f27
Translated string Update
KheirFerrum Mar 19, 2023
c35347e
Merge branch 'upload' into Weapon-Categories
KheirFerrum Mar 19, 2023
3cf6d7f
Tonfa separation from Batons
KheirFerrum Mar 19, 2023
3c8c6b2
Update martialarts.json
KheirFerrum Mar 19, 2023
29efc4b
Update martialarts.json
KheirFerrum Mar 19, 2023
dc4b692
Linting
KheirFerrum Mar 19, 2023
b9d9330
Update weapons.json
KheirFerrum Mar 19, 2023
800b7c5
Fixes
KheirFerrum Mar 19, 2023
8904650
Reference fix
KheirFerrum Mar 19, 2023
0cbd08c
Mod Update
KheirFerrum Mar 19, 2023
bc1cd5e
Linting
KheirFerrum Mar 20, 2023
4aa42d9
Update tools.json
KheirFerrum Mar 20, 2023
f900242
Update src/item.cpp
KheirFerrum Mar 25, 2023
52b3f9a
Update src/martialarts.cpp
KheirFerrum Mar 25, 2023
deeaeae
Update description and add extract function to table
KheirFerrum Mar 25, 2023
0b071f7
Merge branch 'Weapon-Categories' of https://github.com/KheirFerrum/Ca…
KheirFerrum Mar 25, 2023
061a65e
Merge remote-tracking branch 'upstream/upload' into Weapon-Categories
KheirFerrum Mar 26, 2023
0a25ff1
Move weapon category check
KheirFerrum Mar 30, 2023
2ead8d9
Update lang/extract_json_strings.py
KheirFerrum Mar 30, 2023
c2cb999
Alphabetize
KheirFerrum Mar 30, 2023
32d9cae
Alphabetize 2
KheirFerrum Mar 30, 2023
0839df6
Remove looks_like
KheirFerrum Mar 30, 2023
bd146f1
Magnetic weapon fix
KheirFerrum Mar 30, 2023
8a1f652
Fix name for 1shot default rifle
KheirFerrum Mar 30, 2023
fdc7b0d
Update martialarts.cpp
KheirFerrum Mar 30, 2023
18a8000
No reason to change this here.
KheirFerrum Mar 30, 2023
8270262
Merge branch 'upload' into Weapon-Categories
KheirFerrum Mar 30, 2023
4592dcd
Merge branch 'upload' into Weapon-Categories
KheirFerrum Mar 30, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
256 changes: 236 additions & 20 deletions data/json/items/classes/gun.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"abstract": "flamethrower_base",
"copy-from": "gun_base",
"type": "GUN",
"weapon_category": [ "FLAMETHROWERS" ],
"reload_noise": "slosh.",
"name": { "str": "base flamethrower" },
"looks_like": "m79",
Expand All @@ -31,6 +32,7 @@
"abstract": "launcher_base",
"copy-from": "gun_base",
"type": "GUN",
"weapon_category": [ "GRENADE_LAUNCHERS" ],
"name": { "str": "base launcher" },
"looks_like": "m79",
"bashing": 12,
Expand All @@ -41,10 +43,20 @@
"flags": [ "RELOAD_ONE", "RELOAD_EJECT", "NEVER_JAMS" ],
"faults": [ "fault_gun_blackpowder", "fault_gun_dirt" ]
},
{
"abstract": "rocket_base",
"copy-from": "launcher_base",
"type": "GUN",
"weapon_category": [ "ROCKET_LAUNCHERS" ],
"name": { "str": "base rocket launcher" },
"valid_mod_locations": [ [ "accessories", 2 ], [ "barrel", 1 ], [ "sights", 1 ], [ "sling", 1 ] ],
"flags": [ "RELOAD_ONE", "NEVER_JAMS", "PYROMANIAC_WEAPON" ]
},
{
"abstract": "pistol_base",
"copy-from": "gun_base",
"type": "GUN",
"weapon_category": [ "PISTOLS", "AUTOLOADING" ],
"name": { "str": "base pistol" },
"looks_like": "glock_17",
"skill": "pistol",
Expand Down Expand Up @@ -87,10 +99,21 @@
[ "underbarrel mount", 1 ]
]
},
{
"abstract": "pistol_1shot",
"copy-from": "pistol_base",
"type": "GUN",
"weapon_category": [ "PISTOLS", "1SHOT" ],
"name": { "str": "single shot pistols" },
"extend": { "flags": [ "RELOAD_ONE", "RELOAD_EJECT", "NEVER_JAMS" ] },
"//": "More reliable than other pistols because it uses no magazine and has no loading/cycling mechanisms.",
"faults": [ "fault_gun_blackpowder", "fault_gun_dirt" ]
},
{
"abstract": "pistol_revolver",
"copy-from": "pistol_base",
"type": "GUN",
"weapon_category": [ "REVOLVERS", "MANUAL_ACTION" ],
"name": { "str": "revolver" },
"looks_like": "sw_619",
"to_hit": -2,
Expand All @@ -113,13 +136,13 @@
},
{
"abstract": "pistol_revolver_cap_ball",
"copy-from": "pistol_base",
"copy-from": "pistol_revolver",
"type": "GUN",
"name": { "str": "cap & ball revolver" },
"looks_like": "sw_619",
"clip_size": 6,
"reload": 150,
"extend": { "flags": [ "RELOAD_ONE", "NO_UNLOAD" ] },
"extend": { "flags": [ "NO_UNLOAD" ] },
"delete": { "flags": [ "NEVER_JAMS" ] },
"//": "Slower reloads, no unloading. Base, unskilled person should take 1.5 seconds per chamber. No underbarrel mods, that's where the ram goes.",
"faults": [ "fault_gun_blackpowder", "fault_gun_dirt" ],
"valid_mod_locations": [
Expand All @@ -132,10 +155,54 @@
[ "sights mount", 1 ]
]
},
{
"abstract": "pistol_energy",
"copy-from": "pistol_base",
"type": "GUN",
"weapon_category": [ "PISTOLS", "ENERGY_WEAPONS" ],
"name": { "str": "energy pistol" },
"looks_like": "v29",
"//": "No conventional faults because it uses non-conventional systems.",
"flags": [ "NEVER_JAMS", "NO_UNLOAD", "NON-FOULING", "NEEDS_NO_LUBE" ],
"valid_mod_locations": [
[ "accessories", 2 ],
[ "emitter", 1 ],
[ "grip", 1 ],
[ "lens", 1 ],
[ "rail", 1 ],
[ "sights", 1 ],
[ "stock", 1 ],
[ "underbarrel", 1 ]
],
"faults": [ ]
},
{
"abstract": "pistol_elastic",
"copy-from": "pistol_base",
"type": "GUN",
"weapon_category": [ "PISTOLS", "ELASTIC" ],
"name": { "str": "elastic pistol" },
"bashing": 7,
"to_hit": -2,
"//": "No conventional faults because it uses non-conventional systems.",
"flags": [ "RELOAD_ONE", "STR_RELOAD", "WATERPROOF_GUN", "UNDERWATER_GUN", "NEVER_JAMS", "NON-FOULING", "NEEDS_NO_LUBE" ],
"dispersion": 120,
"reload": 600,
"valid_mod_locations": [
[ "accessories", 2 ],
[ "grip", 1 ],
[ "sights", 1 ],
[ "stock", 1 ],
[ "rail mount", 1 ],
[ "underbarrel mount", 1 ]
],
"faults": [ ]
},
{
"abstract": "rifle_base",
"copy-from": "gun_base",
"type": "GUN",
"weapon_category": [ "RIFLES", "AUTOLOADING" ],
"name": { "str": "base rifle" },
"looks_like": "ar15",
"bashing": 12,
Expand All @@ -161,23 +228,10 @@
"abstract": "rifle_manual",
"copy-from": "rifle_base",
"type": "GUN",
"weapon_category": [ "RIFLES", "MANUAL_ACTION" ],
"name": { "str": "rifle with manual actions", "str_pl": "rifles with manual actions" },
"//": "Manual actions exclude the magazine location preventing installation of belt-feed adaptors",
"faults": [ "fault_gun_blackpowder", "fault_gun_dirt" ],
"valid_mod_locations": [
[ "accessories", 4 ],
[ "barrel", 1 ],
[ "bore", 1 ],
[ "brass catcher", 1 ],
[ "grip", 1 ],
[ "mechanism", 4 ],
[ "muzzle", 1 ],
[ "rail", 1 ],
[ "sights", 1 ],
[ "sling", 1 ],
[ "stock", 1 ],
[ "underbarrel", 1 ]
]
"//": "Slightly more reliable than autoloading actions.",
"faults": [ "fault_gun_blackpowder", "fault_gun_dirt" ]
},
{
"abstract": "rifle_semi",
Expand All @@ -191,10 +245,19 @@
"type": "GUN",
"name": { "str": "fully automatic rifle" }
},
{
"abstract": "rifle_1shot",
"copy-from": "rifle_base",
"type": "GUN",
"weapon_category": [ "RIFLES", "1SHOT" ],
"name": { "str": "single shot rifle" },
"flags": [ "RELOAD_ONE", "RELOAD_EJECT", "NEVER_JAMS" ]
},
{
"abstract": "rifle_home_made",
"copy-from": "rifle_base",
"type": "GUN",
"weapon_category": [ "RIFLES", "1SHOT" ],
"name": { "str": "home-made rifle" },
"ranged_damage": { "damage_type": "bullet", "amount": 1 },
"dispersion": 550,
Expand All @@ -216,10 +279,91 @@
"faults": [ "fault_gun_blackpowder", "fault_gun_dirt" ],
"flags": [ "RELOAD_EJECT" ]
},
{
"abstract": "rifle_energy",
"copy-from": "rifle_base",
"type": "GUN",
"weapon_category": [ "RIFLES", "ENERGY_WEAPONS" ],
"name": { "str": "energy rifle" },
"looks_like": "laser_rifle",
"//": "No conventional faults because it uses non-conventional systems.",
"flags": [ "NEVER_JAMS", "NO_UNLOAD", "NON-FOULING", "NEEDS_NO_LUBE" ],
"valid_mod_locations": [
[ "accessories", 4 ],
[ "emitter", 1 ],
[ "grip", 1 ],
[ "lens", 1 ],
[ "rail", 1 ],
[ "sights", 1 ],
[ "sling", 1 ],
[ "stock", 1 ],
[ "underbarrel", 1 ]
],
"faults": [ ]
},
{
"abstract": "rifle_magnetic",
"copy-from": "rifle_base",
"type": "GUN",
"weapon_category": [ "RIFLES", "MAGNETIC" ],
"name": { "str": "magnetic rifle" },
"looks_like": "laser_rifle",
"//": "No conventional faults because it uses non-conventional systems.",
"flags": [ "NEVER_JAMS", "NON-FOULING", "NEEDS_NO_LUBE" ],
"valid_mod_locations": [
[ "accessories", 4 ],
[ "grip", 1 ],
[ "mechanism", 4 ],
[ "rail", 1 ],
[ "sights", 1 ],
[ "sling", 1 ],
[ "stock", 1 ],
[ "underbarrel", 1 ]
],
"faults": [ ]
},
{
"abstract": "rifle_elastic",
"copy-from": "rifle_base",
"type": "GUN",
"weapon_category": [ "RIFLES", "ELASTIC" ],
"name": { "str": "elastic rifle" },
"bashing": 8,
"to_hit": -2,
"//": "No conventional faults because it uses non-conventional systems.",
"flags": [ "RELOAD_ONE", "STR_RELOAD", "WATERPROOF_GUN", "UNDERWATER_GUN", "NEVER_JAMS", "NON-FOULING", "NEEDS_NO_LUBE" ],
"dispersion": 90,
"reload": 700,
"valid_mod_locations": [
[ "accessories", 4 ],
[ "grip", 1 ],
[ "sights", 1 ],
[ "sling", 1 ],
[ "stock", 1 ],
[ "rail mount", 1 ],
[ "underbarrel mount", 1 ]
],
"faults": [ ]
},
{
"abstract": "rifle_pneumatic",
"copy-from": "rifle_base",
"type": "GUN",
"weapon_category": [ "RIFLES", "PNEUMATIC" ],
"name": { "str": "pneumatic rifle" },
"bashing": 8,
"//": "No conventional faults because it uses non-conventional systems.",
"flags": [ "NEVER_JAMS", "NON-FOULING", "NEEDS_NO_LUBE" ],
"dispersion": 350,
"reload": 600,
"valid_mod_locations": [ [ "accessories", 3 ], [ "sling", 1 ], [ "grip", 1 ], [ "mechanism", 4 ], [ "stock", 1 ], [ "rail mount", 1 ] ],
"faults": [ ]
},
{
"abstract": "shotgun_base",
"copy-from": "gun_base",
"type": "GUN",
"weapon_category": [ "SHOTGUNS", "AUTOLOADING" ],
"name": { "str": "base shotgun" },
"skill": "shotgun",
"bashing": 12,
Expand All @@ -241,13 +385,23 @@
[ "underbarrel mount", 1 ]
]
},
{
"abstract": "shotgun_1shot",
"copy-from": "shotgun_base",
"type": "GUN",
"weapon_category": [ "SHOTGUNS", "1SHOT" ],
"name": { "str": "single shot shotguns" },
"extend": { "flags": [ "RELOAD_ONE", "RELOAD_EJECT" ] },
"faults": [ "fault_gun_blackpowder", "fault_gun_dirt" ]
},
{
"abstract": "shotgun_pump",
"copy-from": "shotgun_base",
"type": "GUN",
"weapon_category": [ "SHOTGUNS", "MANUAL_ACTION" ],
"name": { "str": "pump action shotgun" },
"reload_noise": "chuk chuk.",
"flags": [ "RELOAD_ONE", "PUMP_ACTION" ],
"extend": { "flags": [ "RELOAD_ONE", "PUMP_ACTION" ] },
"faults": [ "fault_gun_blackpowder", "fault_gun_dirt" ]
},
{
Expand Down Expand Up @@ -276,6 +430,7 @@
"abstract": "smg_base",
"copy-from": "gun_base",
"type": "GUN",
"weapon_category": [ "SUBMACHINE_GUNS", "AUTOLOADING" ],
"name": { "str": "base SMG" },
"bashing": 10,
"ascii_picture": "hk_mp5a2",
Expand All @@ -295,5 +450,66 @@
[ "stock", 1 ],
[ "underbarrel", 1 ]
]
},
{
"abstract": "mg_base",
"copy-from": "rifle_base",
"type": "GUN",
"weapon_category": [ "MACHINE_GUNS", "AUTOLOADING" ],
"name": { "str": "base machine gun" },
"to_hit": -4,
"bashing": 18,
"reload": 400,
"handling": 40
},
{
"abstract": "gatling_base",
"copy-from": "gun_base",
"type": "GUN",
"weapon_category": [ "GATLING_GUNS", "AUTOLOADING" ],
"name": { "str": "base gatling gun" },
"looks_like": "ar15",
"to_hit": -4,
"bashing": 18,
"skill": "rifle",
"dispersion": 300,
"reload": 400,
"handling": 60,
"valid_mod_locations": [ [ "brass catcher", 1 ], [ "sling", 1 ], [ "rail mount", 1 ], [ "sights mount", 1 ] ],
"flags": [ "MOUNTED_GUN" ],
"faults": [ "fault_gun_blackpowder", "fault_gun_dirt" ]
},
{
"abstract": "gatling_energy",
"copy-from": "gatling_base",
"type": "GUN",
"weapon_category": [ "GATLING_GUNS", "ENERGY_WEAPONS" ],
"name": { "str": "energy gatling gun" },
"bashing": 8,
"reload": 200,
"handling": 40,
"flags": [ "NO_UNLOAD", "NEVER_JAMS", "NON-FOULING" ],
"faults": [ ]
},
{
"abstract": "chemical_sprayer_base",
"copy-from": "gun_base",
"type": "GUN",
"weapon_category": [ "SPRAY_GUNS" ],
"name": { "str": "base chemical sprayer" },
"looks_like": "m79",
"bashing": 9,
"skill": "launcher",
"ammo": "chemical_spray",
"flags": [ "FIRE_50", "NEVER_JAMS", "NON-FOULING" ],
"valid_mod_locations": [
[ "accessories", 4 ],
[ "grip", 1 ],
[ "rail", 1 ],
[ "sights", 1 ],
[ "sling", 1 ],
[ "stock", 1 ],
[ "underbarrel", 1 ]
]
}
]
Loading