Skip to content

Commit

Permalink
fix damage modifier, fix documentation also
Browse files Browse the repository at this point in the history
  • Loading branch information
GuardianDll authored Jul 28, 2024
1 parent b43f895 commit d97d983
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions data/json/items/gunmod/conversions.json
Original file line number Diff line number Diff line change
Expand Up @@ -423,10 +423,10 @@
"overwrite_min_cycle_recoil": 83,
"//0": "AR has too big recoil for .22 round, 83 is right on the edge of being able to use blackpowder loaded and ratshot",
"ammo_modifier": [ "22" ],
"magazine_adaptor": [ [ "22", [ "22_ar15mag_10", "22_ar15mag_28" ] ] ],
"magazine_adaptor": [ [ "22", [ "22_ar15mag_10", " 22_ar15mag_28" ] ] ],
"pocket_mods": [ { "pocket_type": "MAGAZINE_WELL", "item_restriction": [ "22_ar15mag_10", "22_ar15mag_28" ] } ],
"min_skills": [ [ "weapon", 2 ] ],
"damage_modifier": 2,
"damage_modifier": { "damage_type": "bullet", "amount": 2 },
"add_mod": [ [ "brass catcher", 1 ], [ "bayonet lug", 1 ], [ "rail", 2 ], [ "sights", 1 ], [ "underbarrel", 1 ], [ "muzzle", 1 ] ]
},
{
Expand Down
2 changes: 1 addition & 1 deletion doc/JSON_INFO.md
Original file line number Diff line number Diff line change
Expand Up @@ -4199,7 +4199,7 @@ Gun mods can be defined like this:
"ammo_modifier": [ "57" ], // Optional field which if specified modifies parent gun to use these ammo types
"magazine_adaptor": [ [ "223", [ "stanag30" ] ] ], // Optional field which changes the types of magazines the parent gun accepts
"pocket_mods": [ { "pocket_type": "MAGAZINE_WELL", "item_restriction": [ "ai_338mag", "ai_338mag_10" ] } ], // Optional field, alters the original pockets of the weapon ; share the syntax with pocket_data; pocket type MAGAZINE and MAGAZINE_WELL are always overwritten, pocket type CONTAINER is always added to existing pockets; for MAGAZINE and MAGAZINE_WELL both ammo_modifier and magazine_adaptor fields are required to correctly migrate ammo type; type: TOOLMOD can use this field also
"damage_modifier": -1, // Optional field increasing or decreasing base gun damage
"damage_modifier": { "damage_type": "bullet", "amount": -1 }, // Optional field increasing or decreasing base gun damage
"dispersion_modifier": 15, // Optional field increasing or decreasing base gun dispersion
"loudness_modifier": 4, // Optional field increasing or decreasing base guns loudness
"range_modifier": 2, // Optional field increasing or decreasing base gun range
Expand Down

0 comments on commit d97d983

Please sign in to comment.