This commit is contained in:
@@ -14,8 +14,7 @@ namespace PkmnLib::Battling {
|
||||
CreatureLib::Library::StatisticSet<uint8_t> _effortValues;
|
||||
|
||||
ArbUt::BorrowedPtr<const PkmnLib::Library::Nature> _nature;
|
||||
|
||||
ArbUt::BorrowedPtr<const BattleLibrary> GetLibrary() const { return _library.ForceAs<const BattleLibrary>(); }
|
||||
std::unique_ptr<CreatureLib::Battling::Script> _statusScript = nullptr;
|
||||
|
||||
public:
|
||||
Pokemon(ArbUt::BorrowedPtr<const BattleLibrary> library,
|
||||
@@ -59,6 +58,14 @@ namespace PkmnLib::Battling {
|
||||
|
||||
void Evolve(ArbUt::BorrowedPtr<const Library::PokemonSpecies> mon,
|
||||
ArbUt::BorrowedPtr<const Library::PokemonForme> forme);
|
||||
|
||||
void SetStatus(const ArbUt::StringView& name);
|
||||
void ClearStatus();
|
||||
const ArbUt::StringView& GetStatusName() noexcept {
|
||||
if (_statusScript == nullptr)
|
||||
return ArbUt::StringView::Empty();
|
||||
return _statusScript->GetName();
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user