Skip to content

Conversation

@Crystalwarrior
Copy link
Contributor

@Crystalwarrior Crystalwarrior commented Jul 5, 2024

now you can get unretire-anyone-style summary of a nemesis. It looks like this:

Dwarf_Fortress_74DRSs04GX

advSetUpScreen.nemesis_index:insert('#', index)
end

function getHistfigShortSummary(histFig)
Copy link
Member

Choose a reason for hiding this comment

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

Could you rewrite this to make use of dfhack.units.getReadableName(histFig)? Most of the logic is covered by that function.

Which other tool needs access to this function? Can they also use getReadableName?

Copy link
Contributor Author

@Crystalwarrior Crystalwarrior Jan 27, 2025

Choose a reason for hiding this comment

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

units.getReadableName() does not allow me to format it in the exact way I need it for unretire-anyone.lua. Plus I cannot show untranslated and translated lines together like this. getHistfigShortSummary() is useful for ui/interfaces, it's not the same way as getReadableName(histFig)

@Crystalwarrior Crystalwarrior requested a review from myk002 January 27, 2025 15:53
@myk002 myk002 merged commit 5bab733 into DFHack:master Jan 28, 2025
10 checks passed
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.

2 participants