Skip to content

Commit

Permalink
Lower the range of dirt guns spawn with
Browse files Browse the repository at this point in the history
Very very few guns should be fouled heavily, or fouled at all. However,
because the amount of dirt guns spawn with is simply a number between
the min an max defined here, having a range this high leads to most guns
being fouled or fairly heavily fouled.

Adjust this range back to what is was previously, which leads to most
guns being very lightly fouled or not noticeably fouled.
Itemgroups can still override this, and make guns spawn with more
fouling.
  • Loading branch information
anothersimulacrum committed Dec 22, 2019
1 parent eafe7c2 commit 4f3139e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/item_group.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,9 @@ void Single_item_creator::inherit_ammo_mag_chances( const int ammo, const int ma
Item_modifier::Item_modifier()
: damage( 0, 0 )
, count( 1, 1 )
, dirt( 0, 9999 ) // min and max should follow max_dirt in ranged.cpp
// Dirt in guns is capped unless overwritten in the itemgroup
// most guns should not be very dirty or dirty at all
, dirt( 0, 500 )
, charges( -1, -1 )
, with_ammo( 0 )
, with_magazine( 0 )
Expand Down

0 comments on commit 4f3139e

Please sign in to comment.