From 95fb4e7eaa70e3939ec6b0e0cd6acb2324f29233 Mon Sep 17 00:00:00 2001 From: Kelly Kinkade Date: Sun, 9 Apr 2023 12:57:11 -0500 Subject: [PATCH] add raw/cooked z level output to prospector toady shifted displayed z levels by 100 for v50 --- docs/changelog.txt | 1 + plugins/prospector.cpp | 8 ++++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/docs/changelog.txt b/docs/changelog.txt index 259a7ce7f..7b71f5253 100644 --- a/docs/changelog.txt +++ b/docs/changelog.txt @@ -41,6 +41,7 @@ changelog.txt uses a syntax similar to RST, with a few special sequences: - ``launchdf``: launch Dwarf Fortress via the Steam client so Steam Workshop is functional - `blueprint`: interpret saplings, shrubs, and twigs as floors instead of walls - `combine`: fix error processing stockpiles with boundaries that extend outside of the map +- `prospector`: display both "raw" Z levels and "cooked" elevations ## Misc Improvements - `buildingplan`: items in the item selection dialog should now use the same item quality symbols as the base game diff --git a/plugins/prospector.cpp b/plugins/prospector.cpp index 86d77e643..148883830 100644 --- a/plugins/prospector.cpp +++ b/plugins/prospector.cpp @@ -168,9 +168,13 @@ static void printMatdata(color_ostream &con, const matdata &data, bool only_z = con << std::setw(9) << int(data.count); if(data.lower_z != data.upper_z) - con <<" Z:" << std::setw(4) << data.lower_z << ".." << data.upper_z << std::endl; + con <<" Z:" << std::setw(4) << data.lower_z << " .." << std::setw(4) << data.upper_z + <<" Elev:" << std::setw(4) << (data.lower_z - 100) << " .." << std::setw(4) << (data.upper_z - 100) + << std::endl; else - con <<" Z:" << std::setw(4) << data.lower_z << std::endl; + con <<" Z:" << std::setw(4) << data.lower_z << " " + <<" Elev:" << std::setw(4) << (data.lower_z - 100) + << std::endl; } static int getValue(const df::inorganic_raw &info)