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
Corrected world level incursion search criteria #1713
Changes from all commits
ab617f6
8f5d9fe
7944026
1cd9bab
edc84f8
afe99b8
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -314,7 +314,19 @@ command_result embark_assistant(color_ostream &out, std::vector <std::string> & | |
embark_assist::main::state->survey_results[i][k].survey_completed = false; | ||
embark_assist::main::state->survey_results[i][k].neighboring_clay = false; | ||
embark_assist::main::state->survey_results[i][k].neighboring_sand = false; | ||
embark_assist::main::state->survey_results[i][k].neighboring_aquifer = embark_assist::defs::Clear_Aquifer_Bits; | ||
for (uint8_t l = 0; l <= ENUM_LAST_ITEM(biome_type); l++) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There's also a FOR_ENUM_ITEMS macro in DataDefs.h, in case you were unaware - you're perfectly welcome not to use it, though (for stylistic reasons or otherwise - it does yield values of the enum type instead of the base integer type, although I think either would work here). There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks. I didn't know that. |
||
embark_assist::main::state->survey_results[i][k].neighboring_biomes[l] = false; | ||
} | ||
|
||
for (uint8_t l = 0; l <= ENUM_LAST_ITEM(world_region_type); l++) { | ||
embark_assist::main::state->survey_results[i][k].neighboring_region_types[l] = false; | ||
} | ||
|
||
for (uint8_t l = 0; l < 2; l++) { | ||
embark_assist::main::state->survey_results[i][k].neighboring_savagery[l] = false; | ||
embark_assist::main::state->survey_results[i][k].neighboring_evilness[l] = false; | ||
} | ||
|
||
embark_assist::main::state->survey_results[i][k].aquifer = embark_assist::defs::Clear_Aquifer_Bits; | ||
embark_assist::main::state->survey_results[i][k].clay_count = 0; | ||
embark_assist::main::state->survey_results[i][k].sand_count = 0; | ||
|
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.
Thanks for updating this - are the other changes in this PR essentially a continuation of #1704?
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.
Yes, it's a continuation of that PR, so the line in the changelog covers it. The magic number->named number change is too internal and marginal to get a description, as it doesn't modify the functionality (apart from introduced bugs...).
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.
Makes sense, thanks for confirming