Skip to content

Conversation

@quietust
Copy link
Member

  • Display correct quality level for items with "non-displayed" improvements
  • Add ALL item designations here (and remove "XXwearXX" from other spot)
  • Obey SHOW_IMP_QUALITY setting

Fixes #5404

Replaces PR #5406 (which was merging from the wrong branch)

* Display correct quality level for items with "non-displayed" improvements
* Add ALL item designations here (and remove "XXwearXX" from other spot)
* Obey SHOW_IMP_QUALITY setting
if (has_displayed_item_improvements) {
tmp = '\xAE' + tmp + '\xAF'; // («) + tmp + (»)
addQuality(tmp, item->getImprovementQuality());
if (df::global::d_init->display.flags.is_set(d_init_flags1::SHOW_IMP_QUALITY))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

although we've traditionally tested globals before using them in the core library, I think this function is well out of the way of the code path that might be hit when globals aren't defined, so this is fine.

@github-project-automation github-project-automation bot moved this from Todo to Review In Progress in 51.11-r2 Apr 27, 2025
@myk002 myk002 merged commit c2296aa into DFHack:develop Apr 27, 2025
14 checks passed
@github-project-automation github-project-automation bot moved this from Review In Progress to Done in 51.11-r2 Apr 27, 2025
@quietust quietust deleted the itemdesc branch June 27, 2025 00:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

No open projects
Status: Done

Development

Successfully merging this pull request may close these issues.

Items::getDescription does not display quality correctly

2 participants