Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 4ab8850

Browse files
authoredFeb 7, 2025··
fix: CI module build cppcheck (#60)
1 parent 07c9be1 commit 4ab8850

File tree

2 files changed

+15
-11
lines changed

2 files changed

+15
-11
lines changed
 

‎src/ZoneDifficulty.h

+11-11
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@
99

1010
struct ZoneDifficultyNerfData
1111
{
12-
float HealingNerfPct;
13-
float AbsorbNerfPct;
14-
float SpellDamageBuffPct;
15-
float MeleeDamageBuffPct;
16-
int8 Enabled;
17-
float HealingNerfPctHard;
18-
float AbsorbNerfPctHard;
19-
float SpellDamageBuffPctHard;
20-
float MeleeDamageBuffPctHard;
12+
float HealingNerfPct = 1.0f;
13+
float AbsorbNerfPct = 1.0f;
14+
float SpellDamageBuffPct = 1.0f;
15+
float MeleeDamageBuffPct = 1.0f;
16+
int8 Enabled = 1;
17+
float HealingNerfPctHard = 1.0f;
18+
float AbsorbNerfPctHard = 1.0f;
19+
float SpellDamageBuffPctHard = 1.0f;
20+
float MeleeDamageBuffPctHard = 1.0f;
2121
};
2222

2323
struct ZoneDifficulySpellOverrideData
@@ -66,8 +66,8 @@ struct VendorSelectionData
6666

6767
struct CreatureOverrideData
6868
{
69-
float NormalOverride;
70-
float MythicOverride;
69+
float NormalOverride = 1.0f;
70+
float MythicOverride = 1.0f;
7171
};
7272

7373
int32 const DUEL_INDEX = 0x7FFFFFFF;

‎src/mod_zone_difficulty_handler.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,10 @@ void ZoneDifficulty::LoadMapDifficultySettings()
4545
NerfInfo[DUEL_INDEX][0].AbsorbNerfPct = 1;
4646
NerfInfo[DUEL_INDEX][0].MeleeDamageBuffPct = 1;
4747
NerfInfo[DUEL_INDEX][0].SpellDamageBuffPct = 1;
48+
NerfInfo[DUEL_INDEX][0].HealingNerfPctHard = 1;
49+
NerfInfo[DUEL_INDEX][0].AbsorbNerfPctHard = 1;
50+
NerfInfo[DUEL_INDEX][0].MeleeDamageBuffPctHard = 1;
51+
NerfInfo[DUEL_INDEX][0].SpellDamageBuffPctHard = 1;
4852

4953
// Heroic Quest -> MapId Translation
5054
HeroicTBCQuestMapList[542] = 11362; // Blood Furnace

0 commit comments

Comments
 (0)
Please sign in to comment.