Skip to content

Commit

Permalink
Add visible_hp to ActivePokemon
Browse files Browse the repository at this point in the history
  • Loading branch information
davidstone committed May 20, 2024
1 parent 073fbb6 commit 29a1ecb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions source/tm/pokemon/active_pokemon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ import tm.heal;
import tm.held_item;
import tm.item;
import tm.rational;
import tm.visible_hp;

import bounded;
import containers;
Expand Down Expand Up @@ -280,6 +281,9 @@ struct ActivePokemonImpl {
constexpr auto hp() const {
return m_pokemon.hp();
}
constexpr auto visible_hp() const -> VisibleHP requires any_seen_pokemon<PokemonType> {
return this->m_pokemon.visible_hp();
}
constexpr auto stat(SplitSpecialRegularStat const stat_name) const {
return m_pokemon.stat(stat_name);
}
Expand Down

0 comments on commit 29a1ecb

Please sign in to comment.