Reworks nature library to be simpler.
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2020-04-17 18:20:48 +02:00
parent 94980ef7ab
commit 086438f547
9 changed files with 41 additions and 116 deletions

View File

@@ -13,7 +13,7 @@ namespace PkmnLib::Battling {
std::string _nickname = "";
Arbutils::CaseInsensitiveConstString _ability = ""_cnc;
uint8_t _nature = 255;
Arbutils::CaseInsensitiveConstString _nature;
CreatureLib::Library::Gender _gender = static_cast<CreatureLib::Library::Gender>(-1);
Arbutils::CaseInsensitiveConstString _heldItem = ""_cnc;
uint32_t _identifier = 0;
@@ -54,7 +54,7 @@ namespace PkmnLib::Battling {
CreatePokemon* WithEffortValues(uint8_t hp, uint8_t att, uint8_t def, uint8_t spAtt, uint8_t spDef,
uint8_t speed);
CreatePokemon* WithNature(const std::string& nature);
CreatePokemon* WithNature(const Arbutils::CaseInsensitiveConstString& nature);
Pokemon* Build();
};