Use vector instead of set for types.
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
This commit is contained in:
@@ -57,7 +57,7 @@ namespace CreatureLib::Battling {
|
||||
std::unique_ptr<Script> _status = nullptr;
|
||||
ScriptSet _volatile = {};
|
||||
|
||||
std::unordered_set<uint8_t> _types;
|
||||
std::vector<uint8_t> _types;
|
||||
|
||||
private:
|
||||
void OnFaint();
|
||||
@@ -115,7 +115,7 @@ namespace CreatureLib::Battling {
|
||||
const ArbUt::StringView& GetActiveTalent() const;
|
||||
|
||||
[[nodiscard]] bool IsFainted() const noexcept;
|
||||
[[nodiscard]] const std::unordered_set<uint8_t>& GetTypes() const noexcept;
|
||||
[[nodiscard]] const std::vector<uint8_t>& GetTypes() const noexcept;
|
||||
[[nodiscard]] bool HasType(uint8_t type) const noexcept;
|
||||
|
||||
uint32_t GetMaxHealth() const noexcept { return _boostedStats.GetHealth(); }
|
||||
|
||||
Reference in New Issue
Block a user