Skip to content

Commit

Permalink
Add range values for default experience (#9318)
Browse files Browse the repository at this point in the history
  • Loading branch information
ihhub authored Dec 6, 2024
1 parent db8136f commit fc979dc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/fheroes2/heroes/heroes_indicator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,8 @@ void ExperienceIndicator::Redraw() const
const fheroes2::Sprite & sprite = fheroes2::AGG::GetICN( ICN::HSICONS, 1 );
fheroes2::Blit( sprite, display, _area.x, _area.y );

const fheroes2::Text text( _isDefault ? "-" : std::to_string( _hero->GetExperience() ), fheroes2::FontType::smallWhite() );
// For the default range of experience see Heroes::GetStartingXp() method.
const fheroes2::Text text( _isDefault ? "40-90" : std::to_string( _hero->GetExperience() ), fheroes2::FontType::smallWhite() );
text.draw( _area.x + 17 - text.width() / 2, _area.y + 25, display );
}

Expand Down

0 comments on commit fc979dc

Please sign in to comment.