Skip to content

Commit

Permalink
💸npctrade💸: Remove item locations from trade window
Browse files Browse the repository at this point in the history
  • Loading branch information
pjf committed Feb 23, 2020
1 parent 9015618 commit 56cf33e
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/npctrade.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -318,10 +318,7 @@ void trading_window::update_win( npc &np, const std::string &deal )
const int &owner_sells = they ? ip.u_has : ip.npc_has;
const int &owner_sells_charge = they ? ip.u_charges : ip.npc_charges;
std::string itname = it->display_name();
if( ip.loc.where() != item_location::type::character ) {
itname = itname + " " + ip.loc.describe( &g->u );
color = c_light_blue;
}

if( ip.charges > 0 && owner_sells_charge > 0 ) {
itname += string_format( _( ": trading %d" ), owner_sells_charge );
} else {
Expand Down

0 comments on commit 56cf33e

Please sign in to comment.