Skip to content

Commit

Permalink
simplified / made more readable
Browse files Browse the repository at this point in the history
  • Loading branch information
ncberman committed Apr 11, 2024
1 parent c0bb9cc commit e68be22
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 9 deletions.
4 changes: 2 additions & 2 deletions sim/hunter/explosive_shot.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func (hunter *Hunter) registerExplosiveShotSpell(timer *core.Timer) {

CritDamageBonus: hunter.mortalShots(),

DamageMultiplier: hunter.applyTntDamageMultiplier(),
DamageMultiplier: hunter.tntDamageMultiplier(),
ThreatMultiplier: 1,

Dot: core.DotConfig{
Expand Down Expand Up @@ -102,4 +102,4 @@ func (hunter *Hunter) calcExplosiveShotDamageMultipliers() float64 {
damageMultiplier *= 1.1
}
return damageMultiplier
}
}
2 changes: 1 addition & 1 deletion sim/hunter/explosive_trap.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func (hunter *Hunter) getExplosiveTrapConfig(rank int, timer *core.Timer) core.S
IgnoreHaste: true, // Hunter GCD is locked at 1.5s
},

DamageMultiplier: (1 + 0.15*float64(hunter.Talents.CleverTraps)) * hunter.applyTntDamageMultiplier(),
DamageMultiplier: (1 + 0.15*float64(hunter.Talents.CleverTraps)) * hunter.tntDamageMultiplier(),
ThreatMultiplier: 1,

Dot: core.DotConfig{
Expand Down
2 changes: 1 addition & 1 deletion sim/hunter/immolation_trap.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func (hunter *Hunter) getImmolationTrapConfig(rank int, timer *core.Timer) core.
IgnoreHaste: true, // Hunter GCD is locked at 1.5s
},

DamageMultiplier: (1 + 0.15*float64(hunter.Talents.CleverTraps)) * hunter.applyTntDamageMultiplier(),
DamageMultiplier: (1 + 0.15*float64(hunter.Talents.CleverTraps)) * hunter.tntDamageMultiplier(),
ThreatMultiplier: 1,

Dot: core.DotConfig{
Expand Down
9 changes: 4 additions & 5 deletions sim/hunter/runes.go
Original file line number Diff line number Diff line change
Expand Up @@ -225,10 +225,9 @@ func (hunter *Hunter) applyRaptorFury() {
})
}

func (hunter *Hunter) applyTntDamageMultiplier() float64 {
damageMult := 1.0
func (hunter *Hunter) tntDamageMultiplier() float64 {
if hunter.HasRune(proto.HunterRune_RuneBracersTNT) {
damageMult *= 1.1
return 1.1
}
return damageMult
}
return 1.0
}

0 comments on commit e68be22

Please sign in to comment.