Skip to content

Commit

Permalink
feat(UI): fix odd coloration of tools/components UI, recipes showing …
Browse files Browse the repository at this point in the history
…same color as ones using rotten components (#4757)
  • Loading branch information
chaosvolt authored Jun 8, 2024
1 parent ee3a15a commit 115b09e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/crafting_gui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,9 @@ struct availability {

nc_color color( bool ignore_missing_skills = false ) const {
return can_craft
? ( ( can_craft_non_rotten && has_all_skills ) || ignore_missing_skills ? c_white : c_brown )
: ( ( could_craft_if_knew && has_all_skills ) || ignore_missing_skills ? c_yellow : c_dark_gray );
? ( ( can_craft_non_rotten && has_all_skills ) || ignore_missing_skills ? c_white : c_yellow )
: ( ( could_craft_if_knew && has_all_skills ) ||
ignore_missing_skills ? c_light_gray : c_dark_gray );
}

};
Expand Down

0 comments on commit 115b09e

Please sign in to comment.