Skip to content

Commit e1fc5c5

Browse files
committed
Remove resistances
1 parent 833065e commit e1fc5c5

52 files changed

Lines changed: 36795 additions & 39599 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

assets/database/db.bin

-681 KB
Binary file not shown.

assets/database/db.json

Lines changed: 17097 additions & 17082 deletions
Large diffs are not rendered by default.

assets/database/leftover_db.bin

-818 KB
Binary file not shown.

assets/database/leftover_db.json

Lines changed: 19612 additions & 19614 deletions
Large diffs are not rendered by default.

proto/api.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ message TargetedActionMetrics {
197197
// # of times this action was a critical tick on a target.
198198
int32 crit_ticks = 6;
199199

200-
// # of times this action was a Miss or Resist.
200+
// # of times this action was a Miss.
201201
int32 misses = 7;
202202

203203
// # of times this action was a Dodge.

proto/common.proto

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ enum Profession {
188188
// the Go Stats array to be larger than the size of the Stat enum proto, but the
189189
// shared indices between the two must exactly match.
190190
//
191-
// NextIndex: 27;
191+
// NextIndex: 22;
192192
enum Stat {
193193
// Primary attributes ("main stat")
194194
StatStrength = 0;
@@ -210,22 +210,17 @@ enum Stat {
210210
StatAttackPower = 12;
211211
StatRangedAttackPower = 13;
212212
StatSpellPower = 14;
213-
StatSpellPenetration = 15;
214-
StatResilienceRating = 16;
215-
StatArcaneResistance = 17;
216-
StatFireResistance = 18;
217-
StatFrostResistance = 19;
218-
StatNatureResistance = 20;
219-
StatShadowResistance = 21;
220-
StatArmor = 22; // "white armor" that fully scales with all multipliers
221-
StatBonusArmor = 23; // "green armor" that does not scale
213+
StatPvpResilienceRating = 15;
214+
StatPvpPowerRating = 16;
215+
StatArmor = 17; // "white armor" that fully scales with all multipliers
216+
StatBonusArmor = 18; // "green armor" that does not scale
222217

223218
// Composite stats that are built up from the above gear stats + buffs.
224219
// These still belong in the Stat enum because they can be present on
225220
// some enchants and because the base values need to be stored for NPCs.
226-
StatHealth = 24;
227-
StatMana = 25;
228-
StatMP5 = 26;
221+
StatHealth = 19;
222+
StatMana = 20;
223+
StatMP5 = 21;
229224

230225
// DO NOT add new stats here without discussing it first; new stats come
231226
// with a performance penalty.
@@ -871,4 +866,4 @@ enum LogLevel {
871866
Error = 2;
872867

873868
Undefined = -1;
874-
}
869+
}

sim/common/cata/stat_bonus_cds.go

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -131,21 +131,4 @@ func init() {
131131
// PARRY
132132
shared.NewParryActive(55881, 1260, time.Second*10, time.Minute) // Impetuous Query
133133
shared.NewParryActive(56406, 1425, time.Second*10, time.Minute) // Impetuous Query (Heroic)
134-
135-
// RESI
136-
shared.CreateDefensiveStatActive(62466, time.Second*10, time.Minute, stats.Stats{ // Mirror of Broken Images (Alliance)
137-
stats.ArcaneResistance: 400,
138-
stats.FrostResistance: 400,
139-
stats.FireResistance: 400,
140-
stats.ShadowResistance: 400,
141-
stats.NatureResistance: 400,
142-
})
143-
144-
shared.CreateDefensiveStatActive(62471, time.Second*10, time.Minute, stats.Stats{ // Mirror of Broken Images (Horde)
145-
stats.ArcaneResistance: 400,
146-
stats.FrostResistance: 400,
147-
stats.FireResistance: 400,
148-
stats.ShadowResistance: 400,
149-
stats.NatureResistance: 400,
150-
})
151134
}

sim/core/armor_test.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -59,25 +59,25 @@ func TestDamageReductionFromArmor(t *testing.T) {
5959
expectedDamageReduction := 0.349334
6060
attackTable := NewAttackTable(&attacker, &target)
6161
tolerance := 0.0001
62-
if !WithinToleranceFloat64(1-expectedDamageReduction, attackTable.GetArmorDamageModifier(spell), tolerance) {
63-
t.Fatalf("Expected no armor modifiers to result in %f damage reduction got %f", expectedDamageReduction, 1-attackTable.GetArmorDamageModifier(spell))
62+
if !WithinToleranceFloat64(1-expectedDamageReduction, attackTable.getArmorDamageModifier(spell), tolerance) {
63+
t.Fatalf("Expected no armor modifiers to result in %f damage reduction got %f", expectedDamageReduction, 1-attackTable.getArmorDamageModifier(spell))
6464
}
6565

6666
// Major
6767
weakenedArmorAura := WeakenedArmorAura(&target)
6868
weakenedArmorAura.Activate(&sim)
6969
weakenedArmorAura.SetStacks(&sim, 3)
7070
expectedDamageReduction = 0.320864
71-
if !WithinToleranceFloat64(1-expectedDamageReduction, attackTable.GetArmorDamageModifier(spell), tolerance) {
72-
t.Fatalf("Expected major armor modifier to result in %f damage reduction got %f", expectedDamageReduction, 1-attackTable.GetArmorDamageModifier(spell))
71+
if !WithinToleranceFloat64(1-expectedDamageReduction, attackTable.getArmorDamageModifier(spell), tolerance) {
72+
t.Fatalf("Expected major armor modifier to result in %f damage reduction got %f", expectedDamageReduction, 1-attackTable.getArmorDamageModifier(spell))
7373
}
7474
weakenedArmorAura.Deactivate(&sim)
7575

7676
// Major Multi
7777
shatteringThrowAura := ShatteringThrowAura(&target, attacker.UnitIndex)
7878
shatteringThrowAura.Activate(&sim)
7979
expectedDamageReduction = 0.300459
80-
if !WithinToleranceFloat64(1-expectedDamageReduction, attackTable.GetArmorDamageModifier(spell), tolerance) {
81-
t.Fatalf("Expected major & shattering modifier to result in %f damage reduction got %f", expectedDamageReduction, 1-attackTable.GetArmorDamageModifier(spell))
80+
if !WithinToleranceFloat64(1-expectedDamageReduction, attackTable.getArmorDamageModifier(spell), tolerance) {
81+
t.Fatalf("Expected major & shattering modifier to result in %f damage reduction got %f", expectedDamageReduction, 1-attackTable.getArmorDamageModifier(spell))
8282
}
8383
}

sim/core/aura_helpers.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ func (aura *StatBuffAura) CanProc(sim *Simulation) bool {
238238
func (aura *StatBuffAura) InferCDType() CooldownType {
239239
cdType := CooldownTypeUnknown
240240

241-
if aura.BuffsMatchingStat([]stats.Stat{stats.Armor, stats.BlockPercent, stats.DodgeRating, stats.ParryRating, stats.Health, stats.ArcaneResistance, stats.FireResistance, stats.FrostResistance, stats.NatureResistance, stats.ShadowResistance}) {
241+
if aura.BuffsMatchingStat([]stats.Stat{stats.Armor, stats.BlockPercent, stats.DodgeRating, stats.ParryRating, stats.Health}) {
242242
cdType |= CooldownTypeSurvival
243243
} else {
244244
cdType |= CooldownTypeDPS

sim/core/constants.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ const DefaultAttackPowerPerDPS = 14.0
2020
// Updated based on formulas supplied by InDebt on WoWSims Discord
2121
const EnemyAutoAttackAPCoefficient = 1.0 / (14.0 * 177.0)
2222

23-
const AverageMagicPartialResistMultiplier = 0.94
24-
2523
// IDs for items used in core
2624
// const ()
2725

0 commit comments

Comments
 (0)