From f1c9717eb10ea20a6b8adce5dbd2754671fe09b3 Mon Sep 17 00:00:00 2001 From: Red Rose Date: Sun, 27 Mar 2022 15:54:54 +1100 Subject: [PATCH] [Medical Menu] Static efftype_id # |<-- Using around 50, Maximum 72 Characters -->| # Explain why this change is being made # |<---- Limit Each Line to a Maximum Of 72 Characters ---->| # Provide links or keys to any relevant tickets, articles or other resources # Example: fixes #1234, closes #2345, resolves #3456, references #4567 --- src/medical_ui.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/medical_ui.cpp b/src/medical_ui.cpp index a10e348fd4665..b7ebb1ae1d275 100644 --- a/src/medical_ui.cpp +++ b/src/medical_ui.cpp @@ -24,6 +24,7 @@ static const efftype_id effect_bite( "bite" ); static const efftype_id effect_bleed( "bleed" ); static const efftype_id effect_infected( "infected" ); +static const efftype_id effect_mending( "mending" ); static const trait_id trait_COLDBLOOD4( "COLDBLOOD4" ); static const trait_id trait_NOPAIN( "NOPAIN" ); @@ -362,7 +363,7 @@ static medical_column draw_health_summary( const int column_count, avatar *playe if( no_feeling ) { hp_str = colorize( "==%==", c_blue ); } else { - const auto &eff = player->get_effect( efftype_id( "mending" ), part ); + const auto &eff = player->get_effect( effect_mending, part ); const int mend_perc = eff.is_null() ? 0.0 : 100 * eff.get_duration() / eff.get_max_duration(); const int num = mend_perc / 20;