Skip to content

Commit

Permalink
Merge branch 'master' into vigo/resource-tasks
Browse files Browse the repository at this point in the history
# Conflicts:
#	sim/deathknight/dps/TestBlood.results
#	sim/deathknight/ghoul_pet.go
#	sim/druid/balance/TestBalance.results
#	sim/druid/feral/TestFeral.results
#	sim/rogue/TestCombat.results
  • Loading branch information
vigo2 committed Oct 17, 2023
2 parents 79fa3d2 + c30e977 commit 0e8623e
Show file tree
Hide file tree
Showing 249 changed files with 8,635 additions and 10,097 deletions.
10 changes: 10 additions & 0 deletions sim/core/test_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -245,3 +245,13 @@ func GetAplRotation(dir string, file string) RotationCombo {

return RotationCombo{Label: file, Rotation: APLRotationFromJsonString(string(data))}
}

func GetGearSet(dir string, file string) GearSetCombo {
filePath := dir + "/" + file + ".gear.json"
data, err := os.ReadFile(filePath)
if err != nil {
log.Fatalf("failed to load gear json file: %s, %s", filePath, err)
}

return GearSetCombo{Label: file, GearSet: EquipmentSpecFromJsonString(string(data))}
}
2 changes: 1 addition & 1 deletion sim/deathknight/dancing_rune_weapon.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ func (dk *Deathknight) NewRuneWeapon() *RuneWeaponPet {
}, func(ownerStats stats.Stats) stats.Stats {
return stats.Stats{
stats.AttackPower: ownerStats[stats.AttackPower],
stats.MeleeHaste: ownerStats[stats.MeleeHaste] * PetHasteScale,
stats.MeleeHaste: ownerStats[stats.MeleeHaste],

stats.MeleeHit: ownerStats[stats.MeleeHit],
stats.SpellHit: ownerStats[stats.MeleeHit] * PetSpellHitScale,
Expand Down
6 changes: 3 additions & 3 deletions sim/deathknight/deathknight.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ const (
)

const (
PetSpellHitScale = 17.0 / 8.0 * core.SpellHitRatingPerHitChance / core.MeleeHitRatingPerHitChance // 1.7
PetExpertiseScale = 3.25 * core.ExpertisePerQuarterPercentReduction / core.MeleeHitRatingPerHitChance // 0.8125
PetHasteScale = core.HasteRatingPerHastePercent / (core.HasteRatingPerHastePercent / 1.3) // 1.3
PetSpellHitScale = 17.0 / 8.0 * core.SpellHitRatingPerHitChance / core.MeleeHitRatingPerHitChance // 1.7
PetExpertiseScale = 3.25 * core.ExpertisePerQuarterPercentReduction / core.MeleeHitRatingPerHitChance // 0.8125
PetSpellHasteScale = 1.3
)

var TalentTreeSizes = [3]int{28, 29, 31}
Expand Down
Loading

0 comments on commit 0e8623e

Please sign in to comment.