Skip to content

Commit

Permalink
Merge pull request #59527 from liminalRoar/liminalRoar-patch-1
Browse files Browse the repository at this point in the history
Correctly color price when comparing items.
  • Loading branch information
Rivet-the-Zombie authored Jul 24, 2022
2 parents b7142b2 + 90e9654 commit 1ec7b52
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/item.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5426,13 +5426,13 @@ void item::final_info( std::vector<iteminfo> &info, const iteminfo_query *parts,
if( parts->test( iteminfo_parts::BASE_PRICE ) ) {
insert_separation_line( info );
info.emplace_back( "BASE", _( "Price: " ), _( "$<num>" ),
iteminfo::is_decimal | iteminfo::lower_is_better | iteminfo::no_newline,
iteminfo::is_decimal | iteminfo::no_newline,
static_cast<double>( price_preapoc ) / 100 );
}
if( price_preapoc != price_postapoc && parts->test( iteminfo_parts::BASE_BARTER ) ) {
const std::string space = " ";
info.emplace_back( "BASE", space + _( "Barter value: " ), _( "$<num>" ),
iteminfo::is_decimal | iteminfo::lower_is_better,
iteminfo::is_decimal,
static_cast<double>( price_postapoc ) / 100 );
}

Expand Down

0 comments on commit 1ec7b52

Please sign in to comment.