diff --git a/docs/Authors.rst b/docs/Authors.rst index 2c943c3f5..43a4ed674 100644 --- a/docs/Authors.rst +++ b/docs/Authors.rst @@ -76,6 +76,7 @@ kane-t kane-t Kelly Kinkade ab9rf KlonZK KlonZK Kris Parker kaypy +Kristjan Moore kristjanmoore Kromtec Kromtec Kurik Amudnil Lethosor lethosor diff --git a/docs/changelog.txt b/docs/changelog.txt index ee264f743..e15fbb232 100644 --- a/docs/changelog.txt +++ b/docs/changelog.txt @@ -37,6 +37,9 @@ changelog.txt uses a syntax similar to RST, with a few special sequences: - `search`: fixed an issue causing item counts on the trade screen to display inconsistently when searching - `stockpiles`: fixed a crash when loading food stockpiles +## Misc Improvements +- `embark-assistant`: added support for searching for taller waterfalls (up to 50 z-levels tall) + # 0.47.04-r2 ## New Tweaks diff --git a/plugins/embark-assistant/defs.h b/plugins/embark-assistant/defs.h index 13494b91e..d22b7436d 100644 --- a/plugins/embark-assistant/defs.h +++ b/plugins/embark-assistant/defs.h @@ -318,7 +318,7 @@ namespace embark_assist { aquifer_ranges aquifer; river_ranges min_river; river_ranges max_river; - int8_t min_waterfall; // N/A(-1), Absent, 1-9 + int8_t min_waterfall; // N/A(-1), Absent, 1-50 yes_no_ranges flat; present_absent_ranges clay; present_absent_ranges sand; diff --git a/plugins/embark-assistant/finder_ui.cpp b/plugins/embark-assistant/finder_ui.cpp index bcd82a3e4..aaaf8945e 100644 --- a/plugins/embark-assistant/finder_ui.cpp +++ b/plugins/embark-assistant/finder_ui.cpp @@ -535,16 +535,16 @@ namespace embark_assist { break; case fields::min_waterfall: - for (int16_t k = -1; k <= 9; k++) { - if (k == -1) { - element->list.push_back({ "N/A", k }); - } - else if (k == 0) { - element->list.push_back({ "Absent", k }); - } - else { - element->list.push_back({ std::to_string(k), k }); - } + + element->list.push_back({ "N/A", -1 }); + element->list.push_back({ "Absent", 0 }); + + for (int16_t k = 1; k <= 9; k++) { + element->list.push_back({ std::to_string(k), k }); + } + + for (int16_t k = 10; k <= 50; k+=5) { + element->list.push_back({ std::to_string(k), k }); } break;