Use level_int_t for levels.
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2020-08-22 12:24:52 +02:00
parent cc92cf1491
commit c6e2de6156
7 changed files with 34 additions and 6 deletions

View File

@@ -9,7 +9,7 @@ namespace PkmnLib::Battling {
ArbUt::BorrowedPtr<const BattleLibrary> _library;
ArbUt::StringView _species = ""_cnc;
ArbUt::StringView _forme = "default"_cnc;
uint8_t _level;
level_int_t _level;
std::string _nickname = "";
ArbUt::StringView _ability = ""_cnc;

View File

@@ -20,7 +20,7 @@ namespace PkmnLib::Battling {
public:
Pokemon(ArbUt::BorrowedPtr<const BattleLibrary> library,
const ArbUt::BorrowedPtr<const Library::PokemonSpecies>& species,
const ArbUt::BorrowedPtr<const Library::PokemonForme>& forme, uint8_t level, uint32_t experience,
const ArbUt::BorrowedPtr<const Library::PokemonForme>& forme, level_int_t level, uint32_t experience,
uint32_t uid, CreatureLib::Library::Gender gender, uint8_t coloring,
ArbUt::BorrowedPtr<const Library::Item> heldItem, const std::string& nickname,
const CreatureLib::Library::TalentIndex& talent,