Skip to content

Commit

Permalink
add rockbiter weapon threat
Browse files Browse the repository at this point in the history
  • Loading branch information
kayla-glick committed Jan 14, 2025
1 parent 6ceef2a commit 84a4d8e
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 6 deletions.
17 changes: 14 additions & 3 deletions sim/shaman/rockbiter_weapon.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ const RockbiterWeaponRanks = 7

var RockbiterWeaponEnchantId = [RockbiterWeaponRanks + 1]int32{0, 29, 6, 1, 503, 1663, 683, 1664}
var RockbiterWeaponBonusAP = [RockbiterWeaponRanks + 1]float64{0, 50, 79, 118, 138, 319, 490, 653}
var RockbiterWeaponBonusTPS = [RockbiterWeaponRanks + 1]float64{0, 6, 10, 16, 27, 41, 55, 72}
var RockbiterWeaponLevel = [RockbiterWeaponRanks + 1]int32{0, 1, 8, 16, 24, 34, 44, 54}

var RockbiterWeaponRankByLevel = map[int32]int32{
Expand All @@ -27,17 +28,27 @@ func (shaman *Shaman) RegisterRockbiterImbue(procMask core.ProcMask) {

rank := RockbiterWeaponRankByLevel[shaman.Level]
enchantId := RockbiterWeaponEnchantId[rank]
bonusThreat := RockbiterWeaponBonusTPS[rank]

duration := time.Minute * 5

if procMask.Matches(core.ProcMaskMeleeMH) {
hasMHImbue := procMask.Matches(core.ProcMaskMeleeMH)
hasOHImbue := procMask.Matches(core.ProcMaskMeleeOH)

if hasMHImbue {
shaman.MainHand().TempEnchant = enchantId
shaman.AutoAttacks.MHConfig().FlatThreatBonus += bonusThreat * shaman.AutoAttacks.MH().SwingSpeed
}
if procMask.Matches(core.ProcMaskMeleeOH) {
if hasOHImbue {
shaman.OffHand().TempEnchant = enchantId
shaman.AutoAttacks.MHConfig().FlatThreatBonus += bonusThreat * shaman.AutoAttacks.OH().SwingSpeed
}

// TODO: Rockbiter +threat
shaman.OnSpellRegistered(func(spell *core.Spell) {
if spell.ProcMask.Matches(procMask) {
spell.FlatThreatBonus += bonusThreat
}
})

aura := shaman.RegisterAura(core.Aura{
Label: "Rockbiter Imbue",
Expand Down
4 changes: 2 additions & 2 deletions sim/shaman/warden/TestWardenShaman.results
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@ dps_results: {
dps_results: {
key: "TestWardenShaman-Phase1-AllItems-GiftoftheGatheringStorm"
value: {
dps: 518.93599
tps: 617.98044
dps: 490.77606
tps: 701.91482
}
}
dps_results: {
Expand Down
2 changes: 1 addition & 1 deletion sim/shaman/warden/warden_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ var Phase1Consumes = core.ConsumesCombo{
FirePowerBuff: proto.FirePowerBuff_ElixirOfGreaterFirepower,
Flask: proto.Flask_FlaskOfTheTitans,
Food: proto.Food_FoodBlessSunfruit,
MainHandImbue: proto.WeaponImbue_WindfuryWeapon,
MainHandImbue: proto.WeaponImbue_RockbiterWeapon,
SpellPowerBuff: proto.SpellPowerBuff_GreaterArcaneElixir,
StrengthBuff: proto.StrengthBuff_JujuPower,
},
Expand Down

0 comments on commit 84a4d8e

Please sign in to comment.