Fixes Pokemon::get_Nickname in angelscript.
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -159,4 +159,10 @@ namespace PkmnLib::Battling {
|
||||
_allowedExperienceGain = value;
|
||||
return *this;
|
||||
}
|
||||
|
||||
CreatePokemon& CreatePokemon::WithNickname(const std::string& nickname) {
|
||||
_nickname = nickname;
|
||||
return *this;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -9,7 +9,7 @@ namespace PkmnLib::Battling {
|
||||
ArbUt::StringView _species = ""_cnc;
|
||||
ArbUt::StringView _forme = "default"_cnc;
|
||||
level_int_t _level;
|
||||
std::string _nickname = "";
|
||||
std::optional<std::string> _nickname = "";
|
||||
|
||||
ArbUt::StringView _ability = ""_cnc;
|
||||
ArbUt::StringView _nature;
|
||||
@@ -66,6 +66,8 @@ namespace PkmnLib::Battling {
|
||||
|
||||
CreatePokemon& WithNature(const ArbUt::StringView& nature);
|
||||
CreatePokemon& IsAllowedExperienceGain(bool value);
|
||||
CreatePokemon& WithNickname(const std::string& nickname);
|
||||
|
||||
|
||||
Pokemon* Build() {
|
||||
auto rand = ArbUt::Random();
|
||||
|
||||
Reference in New Issue
Block a user