Skip to content

Commit

Permalink
Update item.cpp
Browse files Browse the repository at this point in the history
Lower is not better with price
  • Loading branch information
bananaPheasant authored Jul 23, 2022
1 parent b86bfea commit 90e9654
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 @@ -5425,13 +5425,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 90e9654

Please sign in to comment.