Skip to content

Commit

Permalink
Interface: Match quality color (#39605)
Browse files Browse the repository at this point in the history
* Colorize butchering tool info

* Match quality color
  • Loading branch information
Pupsi-Mupsi authored Apr 17, 2020
1 parent 086d751 commit 7d57d08
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/game.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8011,12 +8011,12 @@ static void butcher_submenu( const std::vector<map_stack::iterator> &corpses, in

const int factor = g->u.max_quality( quality_id( "BUTCHER" ) );
const std::string msgFactor = factor > INT_MIN
? string_format( _( "Your best tool has %d butchering." ), factor )
? string_format( _( "Your best tool has <color_cyan>%d butchering</color>." ), factor )
: _( "You have no butchering tool." );

const int factorD = g->u.max_quality( quality_id( "CUT_FINE" ) );
const std::string msgFactorD = factorD > INT_MIN
? string_format( _( "Your best tool has %d fine cutting." ), factorD )
? string_format( _( "Your best tool has <color_cyan>%d fine cutting</color>." ), factorD )
: _( "You have no fine cutting tool." );

bool has_skin = false;
Expand Down
2 changes: 1 addition & 1 deletion src/veh_type.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -737,7 +737,7 @@ int vpart_info::format_description( std::string &msg, const nc_color &format_col
const quality_id quality_lift( "LIFT" );
for( const auto &qual : qualities ) {
msg += string_format(
_( "Has level <color_cyan>%1$d %2$s quality</color>" ), qual.second, qual.first.obj().name );
_( "Has level <color_cyan>%1$d %2$s</color> quality" ), qual.second, qual.first.obj().name );
if( qual.first == quality_jack || qual.first == quality_lift ) {
msg += string_format( _( " and is rated at <color_cyan>%1$d %2$s</color>" ),
static_cast<int>( convert_weight( qual.second * TOOL_LIFT_FACTOR ) ),
Expand Down

0 comments on commit 7d57d08

Please sign in to comment.