From 8ea1d961fb4d9c22e32fe8171261ba18325f8385 Mon Sep 17 00:00:00 2001 From: actual-nh <74678550+actual-nh@users.noreply.github.com> Date: Sun, 3 Jan 2021 21:42:08 -0500 Subject: [PATCH] Expand debug_weary_info Expand debug_weary_info (in character.cpp) to give enough information to reconstruct reasons for weary_threshold variations. (cherry picked from commit e559d90155badfe3d49385fd4deb5548be42197f) --- src/character.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/character.cpp b/src/character.cpp index a4df57ec0f262..6128032ebc2d9 100644 --- a/src/character.cpp +++ b/src/character.cpp @@ -5017,9 +5017,13 @@ std::string Character::debug_weary_info() const int input = weary.tracker; int thresh = weary_threshold(); int current = weariness_level(); + int morale = get_morale_level(); + int weight = units::to_gram( bodyweight() ); + float bmi = get_bmi(); - return string_format( "Weariness: %s Max Exertion: %s Mult: %g\nBMR: %d Intake: %d Tracker: %d Thresh: %d At: %d\nCalories: %d", - amt, max_act, move_mult, bmr, intake, input, thresh, current, stored_calories ); + return string_format( "Weariness: %s Max Full Exert: %s Mult: %g\nBMR: %d Intake: %d Tracker: %d Thresh: %d At: %d\nCal: %d/%d Fatigue: %d Morale: %d Wgt: %d (BMI %.1f)", + amt, max_act, move_mult, bmr, intake, input, thresh, current, stored_calories, + healthy_calories, fatigue, morale, weight, bmi ); } void weariness_tracker::clear()