Fix MoveData to use signed byte for priority constructor instead of unsigned.
This commit is contained in:
parent
4ee5a14b4c
commit
9974adb5ad
|
@ -2,7 +2,7 @@
|
||||||
#include <utility>
|
#include <utility>
|
||||||
PkmnLib::Library::MoveData::MoveData(const std::string& name, uint8_t type,
|
PkmnLib::Library::MoveData::MoveData(const std::string& name, uint8_t type,
|
||||||
PkmnLib::Library::MoveCategory category, uint8_t power, uint8_t accuracy,
|
PkmnLib::Library::MoveCategory category, uint8_t power, uint8_t accuracy,
|
||||||
uint8_t baseUsage, CreatureLib::Library::AttackTarget target, uint8_t priority,
|
uint8_t baseUsage, CreatureLib::Library::AttackTarget target, int8_t priority,
|
||||||
std::unordered_set<std::string> flags)
|
std::unordered_set<std::string> flags)
|
||||||
: AttackData(name, type, static_cast<CreatureLib::Library::AttackCategory>(category), power, accuracy, baseUsage,
|
: AttackData(name, type, static_cast<CreatureLib::Library::AttackCategory>(category), power, accuracy, baseUsage,
|
||||||
target, priority, std::move(flags)) {}
|
target, priority, std::move(flags)) {}
|
||||||
|
|
|
@ -10,7 +10,7 @@ namespace PkmnLib::Library {
|
||||||
|
|
||||||
public:
|
public:
|
||||||
MoveData(const std::string& name, uint8_t type, PkmnLib::Library::MoveCategory category, uint8_t power,
|
MoveData(const std::string& name, uint8_t type, PkmnLib::Library::MoveCategory category, uint8_t power,
|
||||||
uint8_t accuracy, uint8_t baseUsage, CreatureLib::Library::AttackTarget target, uint8_t priority,
|
uint8_t accuracy, uint8_t baseUsage, CreatureLib::Library::AttackTarget target, int8_t priority,
|
||||||
std::unordered_set<std::string> flags);
|
std::unordered_set<std::string> flags);
|
||||||
|
|
||||||
PkmnLib::Library::MoveCategory GetCategory() const;
|
PkmnLib::Library::MoveCategory GetCategory() const;
|
||||||
|
|
Loading…
Reference in New Issue