We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1b98a68 + be71f21 commit 92cf853Copy full SHA for 92cf853
src/game_inventory.cpp
@@ -1918,7 +1918,13 @@ class weapon_inventory_preset: public inventory_selector_preset
1918
);
1919
}
1920
1921
- const int ammo_damage = damage.total_damage();
+
1922
+ int ammo_damage;
1923
+ if( loc->barrel_length().value() > 0 ) {
1924
+ ammo_damage = damage.di_considering_length( loc->barrel_length() ).total_damage();
1925
+ } else {
1926
+ ammo_damage = damage.total_damage();
1927
+ }
1928
1929
return string_format( "%s<color_light_gray>+</color>%s <color_light_gray>=</color> %s",
1930
get_damage_string( basic_damage, true ),
0 commit comments