Skip to content

Commit

Permalink
fix: enums size
Browse files Browse the repository at this point in the history
  • Loading branch information
dudantas committed Nov 19, 2024
1 parent 30ec95a commit 192a072
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 10 deletions.
6 changes: 3 additions & 3 deletions src/creatures/combat/spells.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#pragma once

#include "lua/creature/actions.hpp"
#include "creatures/players/wheel/wheel_definitions.hpp"
#include "creatures/players/components/wheel/wheel_definitions.hpp"

class InstantSpell;
class RuneSpell;
Expand Down Expand Up @@ -254,8 +254,8 @@ class Spell : public BaseSpell {
bool pzLocked = false;

bool whellOfDestinyUpgraded = false;
std::array<int32_t, static_cast<uint8_t>(WheelSpellBoost_t::TOTAL_COUNT)> wheelOfDestinyRegularBoost = { 0 };
std::array<int32_t, static_cast<uint8_t>(WheelSpellBoost_t::TOTAL_COUNT)> wheelOfDestinyUpgradedBoost = { 0 };
std::array<int32_t, magic_enum::enum_count<WheelSpellBoost_t>() + 1> wheelOfDestinyRegularBoost = { 0 };
std::array<int32_t, magic_enum::enum_count<WheelSpellBoost_t>() + 1> wheelOfDestinyUpgradedBoost = { 0 };

private:
uint32_t mana = 0;
Expand Down
10 changes: 5 additions & 5 deletions src/creatures/players/components/wheel/player_wheel.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -494,11 +494,11 @@ class PlayerWheel {
PlayerWheelMethodsBonusData m_playerBonusData;
std::unique_ptr<WheelModifierContext> m_modifierContext;

std::array<uint8_t, magic_enum::enum_count<WheelStage_t>()> m_stages = { 0 };
std::array<int64_t, magic_enum::enum_count<WheelOnThink_t>()> m_onThink = { 0 };
std::array<int32_t, magic_enum::enum_count<WheelStat_t>()> m_stats = { 0 };
std::array<int32_t, magic_enum::enum_count<WheelMajor_t>()> m_majorStats = { 0 };
std::array<bool, magic_enum::enum_count<WheelInstant_t>()> m_instant = { false };
std::array<uint8_t, magic_enum::enum_count<WheelStage_t>() + 1> m_stages = { 0 };
std::array<int64_t, magic_enum::enum_count<WheelOnThink_t>() + 1> m_onThink = { 0 };
std::array<int32_t, magic_enum::enum_count<WheelStat_t>() + 1> m_stats = { 0 };
std::array<int32_t, magic_enum::enum_count<WheelMajor_t>() + 1> m_majorStats = { 0 };
std::array<bool, magic_enum::enum_count<WheelInstant_t>() + 1> m_instant = { false };
std::array<int32_t, COMBAT_COUNT> m_resistance = { 0 };
std::array<int32_t, COMBAT_COUNT> m_specializedMagic = { 0 };

Expand Down
2 changes: 0 additions & 2 deletions src/creatures/players/components/wheel/wheel_definitions.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,6 @@ enum class WheelSpellBoost_t : uint8_t {
HEAL = 10,
CRITICAL_DAMAGE = 11,
CRITICAL_CHANCE = 12,

TOTAL_COUNT = 13
};

/**
Expand Down

0 comments on commit 192a072

Please sign in to comment.