-
Notifications
You must be signed in to change notification settings - Fork 209
Add zprospectanalyzer #1465
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
base: master
Are you sure you want to change the base?
Add zprospectanalyzer #1465
Conversation
pre-commit.ci autofix |
for more information, see https://pre-commit.ci
if #args == 0 then args = { "blocks" } end | ||
local presets = { | ||
blocks = { | ||
"Alabaster", "Alunite", "Andesite", "Anhydrite", "Basalt", |
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.
This shouldn't be hardcoding - it should fetch the actual stone IDs from the current world's inorganic material definitions.
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.
I realized I didn’t put the initial purpose of the program. The goal is to output stone that is worth 3 points in the embark shop menu.
I’ll review the program today. I can clean it up.
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.
There is no guarantee even that any of those stones exist in any given world, or if they do that they're worth 3 points in the embark menu. For that you need to pull the material definitions out of the world
DFHack tools should, to the extent practical, work even with radically modified raws
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.
Yesterday I tried looking for the skill point value of items and failed. I don’t like the way I’m doing it now but can’t seem to find way to achieve a preset of blocks worth 3 points. I’ll try searching again today.
zprospectanalyzer
Goal: Filter and print stones that are worth 3 points.
Features
Output Parsing: Automatically runs prospect all and parses the text output.
Section Filtering: Optionally filters materials by specific sections like ores or gems.
Presets: Running zprospectanalyzer without parameters will only run the preset of 3-point stones.
Missing Materials Reporting: Displays next to any requested material that doesn't appear in the output.
Usage
zprospectanalyzer [material1] [material2] ...
zprospectanalyzer claystone granite ruby tetrahedrite