Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rosenrusinov committed Feb 3, 2024
1 parent 3db7b7e commit 9db53ef
Show file tree
Hide file tree
Showing 9 changed files with 158 additions and 154 deletions.
48 changes: 24 additions & 24 deletions sim/druid/balance/TestBalance.results
Original file line number Diff line number Diff line change
Expand Up @@ -51,84 +51,84 @@ character_stats_results: {
dps_results: {
key: "TestBalance-AllItems-BlackfathomElementalist'sHide"
value: {
dps: 23.2738
tps: 24.20084
dps: 31.7086
tps: 32.63564
}
}
dps_results: {
key: "TestBalance-AllItems-BlackfathomSlayer'sLeather"
value: {
dps: 20.71201
tps: 21.46085
dps: 28.21556
tps: 28.9644
}
}
dps_results: {
key: "TestBalance-AllItems-StormshroudArmor"
value: {
dps: 8.29133
tps: 9.02037
dps: 11.30062
tps: 12.02966
}
}
dps_results: {
key: "TestBalance-AllItems-TwilightInvoker'sVestments"
value: {
dps: 22.4015
tps: 23.27574
dps: 30.47978
tps: 31.35402
}
}
dps_results: {
key: "TestBalance-Average-Default"
value: {
dps: 39.92244
tps: 40.8432
dps: 54.07271
tps: 54.99347
}
}
dps_results: {
key: "TestBalance-Settings-Tauren-25-phase_1-Default-phase_1-FullBuffs-LongMultiTarget"
value: {
dps: 39.81764
tps: 58.22644
dps: 53.85073
tps: 72.25953
}
}
dps_results: {
key: "TestBalance-Settings-Tauren-25-phase_1-Default-phase_1-FullBuffs-LongSingleTarget"
value: {
dps: 39.81764
tps: 40.73808
dps: 53.85073
tps: 54.77117
}
}
dps_results: {
key: "TestBalance-Settings-Tauren-25-phase_1-Default-phase_1-FullBuffs-ShortSingleTarget"
value: {
dps: 42.52591
tps: 47.12811
dps: 57.36598
tps: 61.96818
}
}
dps_results: {
key: "TestBalance-Settings-Tauren-25-phase_1-Default-phase_1-NoBuffs-LongMultiTarget"
value: {
dps: 37.09083
tps: 37.09083
dps: 50.65317
tps: 50.65317
}
}
dps_results: {
key: "TestBalance-Settings-Tauren-25-phase_1-Default-phase_1-NoBuffs-LongSingleTarget"
value: {
dps: 37.09083
tps: 37.09083
dps: 50.65317
tps: 50.65317
}
}
dps_results: {
key: "TestBalance-Settings-Tauren-25-phase_1-Default-phase_1-NoBuffs-ShortSingleTarget"
value: {
dps: 41.52242
tps: 41.52242
dps: 55.92235
tps: 55.92235
}
}
dps_results: {
key: "TestBalance-SwitchInFrontOfTarget-Default"
value: {
dps: 39.81764
tps: 40.73808
dps: 53.85073
tps: 54.77117
}
}
4 changes: 2 additions & 2 deletions sim/druid/feral/TestFeral.results
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ dps_results: {
dps_results: {
key: "TestFeral-AllItems-StormshroudArmor"
value: {
dps: 16.97824
tps: 12.05455
dps: 16.9913
tps: 12.06383
}
}
dps_results: {
Expand Down
8 changes: 6 additions & 2 deletions sim/hunter/pet_abilities.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,8 @@ func (hp *HunterPet) newBite() *core.Spell {
60: 17261,
}[hp.Owner.Level]

focusScalar := 35.0 / 25.0

return hp.RegisterSpell(core.SpellConfig{
ActionID: core.ActionID{SpellID: spellID},
SpellSchool: core.SpellSchoolPhysical,
Expand All @@ -143,7 +145,7 @@ func (hp *HunterPet) newBite() *core.Spell {
ThreatMultiplier: 1,

ApplyEffects: func(sim *core.Simulation, target *core.Unit, spell *core.Spell) {
baseDamage := sim.Roll(baseDamageMin, baseDamageMax) + spell.MeleeAttackPower()/14 + spell.BonusWeaponDamage()
baseDamage := sim.Roll(baseDamageMin, baseDamageMax) + (spell.MeleeAttackPower()/14)*focusScalar + spell.BonusWeaponDamage()
baseDamage *= hp.killCommandMult()

spell.CalcAndDealDamage(sim, target, baseDamage, spell.OutcomeMeleeSpecialHitAndCrit)
Expand Down Expand Up @@ -173,6 +175,8 @@ func (hp *HunterPet) newLightningBreath() *core.Spell {
60: 25012,
}[hp.Owner.Level]

focusScalar := 50.0 / 25.0

return hp.RegisterSpell(core.SpellConfig{
ActionID: core.ActionID{SpellID: spellID},
SpellSchool: core.SpellSchoolNature,
Expand All @@ -195,7 +199,7 @@ func (hp *HunterPet) newLightningBreath() *core.Spell {
ApplyEffects: func(sim *core.Simulation, target *core.Unit, spell *core.Spell) {
// TODO: Figure out how LB scales as it doesnt seem to be from SP even tho the spell is listed
// with a sp mod
baseDamage := sim.Roll(baseDamageMin, baseDamageMax) + spell.MeleeAttackPower()*0.2
baseDamage := sim.Roll(baseDamageMin, baseDamageMax) + (spell.MeleeAttackPower()/14)*focusScalar

spell.CalcAndDealDamage(sim, target, baseDamage, spell.OutcomeMagicHitAndCrit)
},
Expand Down
30 changes: 15 additions & 15 deletions sim/warlock/dps/TestAffliction.results
Original file line number Diff line number Diff line change
Expand Up @@ -51,90 +51,90 @@ character_stats_results: {
dps_results: {
key: "TestAffliction-AllItems-TwilightInvoker'sVestments"
value: {
dps: 5.80596
dps: 7.86016
}
}
dps_results: {
key: "TestAffliction-Average-Default"
value: {
dps: 5.88714
dps: 7.98005
}
}
dps_results: {
key: "TestAffliction-Settings-Orc-25-destruction-AffItemSwap--FullBuffs-LongMultiTarget"
value: {
dps: 5.87929
dps: 7.95547
}
}
dps_results: {
key: "TestAffliction-Settings-Orc-25-destruction-AffItemSwap--FullBuffs-LongSingleTarget"
value: {
dps: 5.87929
dps: 7.95547
}
}
dps_results: {
key: "TestAffliction-Settings-Orc-25-destruction-AffItemSwap--FullBuffs-ShortSingleTarget"
value: {
dps: 8.13721
dps: 10.96826
}
}
dps_results: {
key: "TestAffliction-Settings-Orc-25-destruction-AffItemSwap--NoBuffs-LongMultiTarget"
value: {
dps: 3.12504
dps: 4.21618
}
}
dps_results: {
key: "TestAffliction-Settings-Orc-25-destruction-AffItemSwap--NoBuffs-LongSingleTarget"
value: {
dps: 3.12504
dps: 4.21618
}
}
dps_results: {
key: "TestAffliction-Settings-Orc-25-destruction-AffItemSwap--NoBuffs-ShortSingleTarget"
value: {
dps: 4.43909
dps: 5.98468
}
}
dps_results: {
key: "TestAffliction-Settings-Orc-25-destruction-Affliction Warlock--FullBuffs-LongMultiTarget"
value: {
dps: 5.87929
dps: 7.95547
}
}
dps_results: {
key: "TestAffliction-Settings-Orc-25-destruction-Affliction Warlock--FullBuffs-LongSingleTarget"
value: {
dps: 5.87929
dps: 7.95547
}
}
dps_results: {
key: "TestAffliction-Settings-Orc-25-destruction-Affliction Warlock--FullBuffs-ShortSingleTarget"
value: {
dps: 8.13721
dps: 10.96826
}
}
dps_results: {
key: "TestAffliction-Settings-Orc-25-destruction-Affliction Warlock--NoBuffs-LongMultiTarget"
value: {
dps: 3.12504
dps: 4.21618
}
}
dps_results: {
key: "TestAffliction-Settings-Orc-25-destruction-Affliction Warlock--NoBuffs-LongSingleTarget"
value: {
dps: 3.12504
dps: 4.21618
}
}
dps_results: {
key: "TestAffliction-Settings-Orc-25-destruction-Affliction Warlock--NoBuffs-ShortSingleTarget"
value: {
dps: 4.43909
dps: 5.98468
}
}
dps_results: {
key: "TestAffliction-SwitchInFrontOfTarget-Default"
value: {
dps: 5.87929
dps: 7.95547
}
}
42 changes: 21 additions & 21 deletions sim/warlock/dps/TestDemonology.results
Original file line number Diff line number Diff line change
Expand Up @@ -51,96 +51,96 @@ character_stats_results: {
dps_results: {
key: "TestDemonology-AllItems-TwilightInvoker'sVestments"
value: {
dps: 10.30712
dps: 13.95437
}
}
dps_results: {
key: "TestDemonology-Average-Default"
value: {
dps: 10.33813
dps: 14.01203
}
}
dps_results: {
key: "TestDemonology-Settings-Orc-25-destruction-Demonology Warlock--FullBuffs-LongMultiTarget"
value: {
dps: 10.31516
dps: 13.94872
}
}
dps_results: {
key: "TestDemonology-Settings-Orc-25-destruction-Demonology Warlock--FullBuffs-LongSingleTarget"
value: {
dps: 10.31516
dps: 13.94872
}
}
dps_results: {
key: "TestDemonology-Settings-Orc-25-destruction-Demonology Warlock--FullBuffs-ShortSingleTarget"
value: {
dps: 14.38029
dps: 19.48526
}
}
dps_results: {
key: "TestDemonology-Settings-Orc-25-destruction-Demonology Warlock--NoBuffs-LongMultiTarget"
value: {
dps: 5.26949
dps: 7.12854
}
}
dps_results: {
key: "TestDemonology-Settings-Orc-25-destruction-Demonology Warlock--NoBuffs-LongSingleTarget"
value: {
dps: 5.26949
dps: 7.12854
}
}
dps_results: {
key: "TestDemonology-Settings-Orc-25-destruction-Demonology Warlock--NoBuffs-ShortSingleTarget"
value: {
dps: 7.66633
dps: 10.31302
}
}
dps_results: {
key: "TestDemonology-Settings-Orc-25-destruction-Demonology Warlock-destruction-FullBuffs-LongMultiTarget"
value: {
dps: 195.92372
tps: 447.49655
dps: 221.38845
tps: 467.88331
}
}
dps_results: {
key: "TestDemonology-Settings-Orc-25-destruction-Demonology Warlock-destruction-FullBuffs-LongSingleTarget"
value: {
dps: 160.08425
tps: 158.96396
dps: 172.70908
tps: 166.49665
}
}
dps_results: {
key: "TestDemonology-Settings-Orc-25-destruction-Demonology Warlock-destruction-FullBuffs-ShortSingleTarget"
value: {
dps: 185.19555
tps: 168.8245
dps: 200.14694
tps: 176.30687
}
}
dps_results: {
key: "TestDemonology-Settings-Orc-25-destruction-Demonology Warlock-destruction-NoBuffs-LongMultiTarget"
value: {
dps: 105.51453
tps: 358.8711
dps: 122.99077
tps: 373.74796
}
}
dps_results: {
key: "TestDemonology-Settings-Orc-25-destruction-Demonology Warlock-destruction-NoBuffs-LongSingleTarget"
value: {
dps: 79.44408
tps: 85.1769
dps: 87.13746
tps: 90.26303
}
}
dps_results: {
key: "TestDemonology-Settings-Orc-25-destruction-Demonology Warlock-destruction-NoBuffs-ShortSingleTarget"
value: {
dps: 97.72898
tps: 92.90538
dps: 107.37462
tps: 98.68147
}
}
dps_results: {
key: "TestDemonology-SwitchInFrontOfTarget-Default"
value: {
dps: 10.31516
dps: 13.94872
}
}
Loading

0 comments on commit 9db53ef

Please sign in to comment.