Skip to content

Commit

Permalink
[Medical Menu] Static efftype_id
Browse files Browse the repository at this point in the history
# |<-- 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 CleverRaven#1234, closes CleverRaven#2345, resolves CleverRaven#3456, references CleverRaven#4567
  • Loading branch information
redrosedialtone committed Mar 27, 2022
1 parent 512c38d commit f1c9717
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/medical_ui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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" );
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit f1c9717

Please sign in to comment.