Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
beats-dh committed Mar 24, 2024
1 parent 3fd4c3f commit 816ccaa
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/canary_server.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ class CanaryServer {
FAILED
};

RSA &rsa;
Logger &logger;
RSA &rsa;
ServiceManager &serviceManager;

std::atomic<LoaderStatus> loaderStatus = LoaderStatus::LOADING;
Expand Down
12 changes: 6 additions & 6 deletions src/creatures/players/wheel/wheel_gems.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ class GemModifierStrategy {
public:
explicit GemModifierStrategy(PlayerWheel &wheel) :
m_wheel(wheel) { }
virtual ~GemModifierStrategy() { }
virtual ~GemModifierStrategy() = default;
virtual void execute() = 0;

protected:
Expand Down Expand Up @@ -224,9 +224,9 @@ class GemModifierRevelationStrategy : public GemModifierStrategy {

class GemModifierSpellBonusStrategy : public GemModifierStrategy {
public:
explicit GemModifierSpellBonusStrategy(PlayerWheel &wheel, const std::string &spellName, WheelSpells::Bonus bonus) :
explicit GemModifierSpellBonusStrategy(PlayerWheel &wheel, std::string spellName, WheelSpells::Bonus bonus) :
GemModifierStrategy(wheel),
m_spellName(spellName),
m_spellName(std::move(spellName)),
m_bonus(bonus) { }

void execute() override;
Expand Down Expand Up @@ -256,7 +256,7 @@ class WheelModifierContext {
Vocation_t m_vocation;
};

static int32_t getHealthValue(Vocation_t vocation, WheelGemBasicModifier_t modifier) {
[[maybe_unused]] static int32_t getHealthValue(Vocation_t vocation, WheelGemBasicModifier_t modifier) {
static const std::unordered_map<WheelGemBasicModifier_t, std::unordered_map<Vocation_t, int32_t>> stats = {
{
WheelGemBasicModifier_t::Vocation_Health,
Expand Down Expand Up @@ -333,7 +333,7 @@ static int32_t getHealthValue(Vocation_t vocation, WheelGemBasicModifier_t modif
return 0;
}

static int32_t getManaValue(Vocation_t vocation, WheelGemBasicModifier_t modifier) {
[[maybe_unused]] static int32_t getManaValue(Vocation_t vocation, WheelGemBasicModifier_t modifier) {
static const std::unordered_map<WheelGemBasicModifier_t, std::unordered_map<Vocation_t, int32_t>> stats = {
{
WheelGemBasicModifier_t::Vocation_Mana_FireResistance,
Expand Down Expand Up @@ -409,7 +409,7 @@ static int32_t getManaValue(Vocation_t vocation, WheelGemBasicModifier_t modifie
return 0;
}

static int32_t getCapacityValue(Vocation_t vocation, WheelGemBasicModifier_t modifier) {
[[maybe_unused]] static int32_t getCapacityValue(Vocation_t vocation, WheelGemBasicModifier_t modifier) {
static const std::unordered_map<WheelGemBasicModifier_t, std::unordered_map<Vocation_t, int32_t>> stats = {
{
WheelGemBasicModifier_t::Vocation_Capacity_FireResistance,
Expand Down

0 comments on commit 816ccaa

Please sign in to comment.