-
Notifications
You must be signed in to change notification settings - Fork 199
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
global necronomicon functionality #1325
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could you add a line to https://github.com/DFHack/scripts/blob/master/changelog.txt#L42 under Misc Improvements for this change?
docs/necronomicon.rst
Outdated
@@ -23,3 +23,7 @@ Options | |||
``-s``, ``--include-slabs`` | |||
Also list slabs that contain the secrets of life and death. Note that | |||
dwarves cannot read the secrets from a slab in fort mode. | |||
|
|||
``-w``, ``-world`` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
``-w``, ``-world`` | |
``-w``, ``--world`` |
necronomicon.lua
Outdated
print() | ||
for _,rec in ipairs(df.global.world.artifacts.all) do | ||
if df.item_slabst:is_instance(rec.item) and check_slab_secrets(rec.item) then | ||
print(dfhack.TranslateName(rec.name)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
print(dfhack.TranslateName(rec.name)) | |
print(dfhack.df2console(dfhack.TranslateName(rec.name))) |
@@ -79,20 +79,50 @@ function necronomicon(include_slabs) | |||
end | |||
end | |||
|
|||
function necronomicon_world(include_slabs) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could you fix the indentation of this function? it should be four spaces per indent, no tabs. The pre-commit.ci autofix might be able to do it for you. (see https://results.pre-commit.ci/run/github/54066125/1728398159.cyDmLoGvQYO2Zc9I5N4ilg )
pre-commit.ci autofix |
for more information, see https://pre-commit.ci
edits to necronomicon.lua to add a worldwide search function