-
Notifications
You must be signed in to change notification settings - Fork 36
/
constants.go
44 lines (31 loc) · 1.17 KB
/
constants.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
package core
import (
"time"
)
const CharacterLevel = 85
const GCDMin = time.Second * 1
const GCDDefault = time.Millisecond * 1500
const MaxSpellQueueWindow = time.Millisecond * 400
const MaxMeleeRange = 5.0 // in yards
const DefaultAttackPowerPerDPS = 14.0
const ArmorPenPerPercentArmor = 13.99
const MissDodgeParryBlockCritChancePerDefense = 0.04
const DefenseRatingToChanceReduction = (1.0 / DefenseRatingPerDefense) * MissDodgeParryBlockCritChancePerDefense / 100
const ResilienceRatingPerCritDamageReductionPercent = ResilienceRatingPerCritReductionChance / 2.2
// Updated based on formulas supplied by InDebt on WoWSims Discord
const EnemyAutoAttackAPCoefficient = 1.0 / (14.0 * 177.0)
const AverageMagicPartialResistMultiplier = 0.94
// IDs for items used in core
const (
ItemIDAtieshMage = 22589
ItemIDAtieshWarlock = 22630
ItemIDBraidedEterniumChain = 24114
ItemIDChainOfTheTwilightOwl = 24121
ItemIDEyeOfTheNight = 24116
ItemIDJadePendantOfBlasting = 20966
ItemIDTheLightningCapacitor = 28785
)
type Hand bool
const MainHand Hand = true
const OffHand Hand = false
const CombatTableCoverageCap = 1.024 // 102.4% chance to avoid an attack