Skip to content

Commit

Permalink
Merge pull request #31518 from ymber/type
Browse files Browse the repository at this point in the history
fix capacity info for integral magazines
  • Loading branch information
ZhilkinSerg authored Jun 16, 2019
2 parents 1fa2eb7 + f698db0 commit 47fadd9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/item.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1441,6 +1441,12 @@ std::string item::info( std::vector<iteminfo> &info, const iteminfo_query *parts
at->name() );
info.emplace_back( "GUN", _( "<bold>Capacity:</bold> " ), fmt, iteminfo::no_flags,
mod->ammo_capacity() );
} else {
auto fmt = string_format(
ngettext( "<num> round of %s", "<num> rounds of %s", mod->ammo_capacity() ),
at->name() );
info.emplace_back( "GUN", _( "<bold>Capacity:</bold> " ), fmt, iteminfo::no_flags,
mod->ammo_capacity() );
}
}
}
Expand Down

0 comments on commit 47fadd9

Please sign in to comment.