Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterWarlock()
- type APLActionCastWarlockAssignedCurse
- func (x *APLActionCastWarlockAssignedCurse) Execute(sim *core.Simulation)
- func (x *APLActionCastWarlockAssignedCurse) Finalize(*core.APLRotation)
- func (x *APLActionCastWarlockAssignedCurse) GetAPLValues() []core.APLValue
- func (x *APLActionCastWarlockAssignedCurse) GetInnerActions() []*core.APLAction
- func (x *APLActionCastWarlockAssignedCurse) GetNextAction(*core.Simulation) *core.APLAction
- func (x *APLActionCastWarlockAssignedCurse) GetSpellFromAction(sim *core.Simulation) *core.Spell
- func (x *APLActionCastWarlockAssignedCurse) IsReady(sim *core.Simulation) bool
- func (x *APLActionCastWarlockAssignedCurse) PostFinalize(*core.APLRotation)
- func (x *APLActionCastWarlockAssignedCurse) ReplaceAPLValues(func(core.APLValue) core.APLValue)
- func (x *APLActionCastWarlockAssignedCurse) Reset(*core.Simulation)
- func (x *APLActionCastWarlockAssignedCurse) String() string
- type APLValueWarlockActiveOnAllTargets
- type APLValueWarlockActivePet
- type APLValueWarlockAssignedCurseIsActive
- type APLValueWarlockIsAssignedCurse
- type APLValueWarlockTimeToHalfTick
- type Warlock
- func (warlock *Warlock) AddRaidBuffs(raidBuffs *proto.RaidBuffs)
- func (warlock *Warlock) AfflictionCount(target *core.Unit) float64
- func (warlock *Warlock) ApplyTalents()
- func (warlock *Warlock) GetAssignedCurse() *core.Spell
- func (warlock *Warlock) GetCharacter() *core.Character
- func (warlock *Warlock) GetWarlock() *Warlock
- func (warlock *Warlock) Initialize()
- func (warlock *Warlock) NewAPLAction(rot *core.APLRotation, config *proto.APLAction) core.APLActionImpl
- func (warlock *Warlock) NewAPLValue(rot *core.APLRotation, config *proto.APLValue) core.APLValue
- func (warlock *Warlock) OnEncounterStart(sim *core.Simulation)
- func (warlock *Warlock) Reset(sim *core.Simulation)
- type WarlockAgent
- type WarlockPet
Constants ¶
const ( DDBC_ShadowVulnerability int = iota DDBC_Total )
Slots in a target's per-caster damage multipliers, one per warlock debuff. Each needs its own slot so one debuff's expiry cannot clear another's, and every caller passes DDBC_Total so the slice is sized alike.
const ( WarlockSpellFlagNone int64 = 0 WarlockSpellConflagrate int64 = 1 << iota WarlockSpellShadowBolt WarlockSpellImmolate WarlockSpellIncinerate WarlockSpellSoulFire WarlockSpellShadowBurn WarlockSpellLifeTap WarlockSpellCorruption WarlockSpellCurseOfElements WarlockSpellBaneOfAgony WarlockSpellBaneOfDoom WarlockSpellDrainLife WarlockSpellHellfire WarlockSpellSearingPain WarlockSpellImpFireBolt WarlockSpellSuccubusLashOfPain WarlockSpellRainOfFire WarlockSpellCurseOfRecklessness WarlockSpellCurseOfWeakness WarlockSpellSiphonLife WarlockSpellWrack WarlockSpellDrainSoul WarlockSpellDeathCoil WarlockSpellSummonDemon WarlockSpellAll int64 = 1<<iota - 1 )
Variables ¶
var ItemSetChampionsDreadgear = core.NewItemSet(core.ItemSet{
ID: 541,
Name: "Champion's Dreadgear",
Slots: sixPieceSlots,
Bonuses: pvpSetBonuses(2, 4, 6),
})
var ItemSetChampionsThreads = core.NewItemSet(core.ItemSet{
ID: 345,
Name: "Champion's Threads",
Slots: sixPieceSlots,
Bonuses: pvpSetBonuses(2, 4, 6),
})
var ItemSetDemonheartRaiment = core.NewItemSet(core.ItemSet{ ID: 2100, Name: "Demonheart Raiment", Slots: sixPieceSlots, Bonuses: map[int32]core.ApplySetBonus{ 2: parsedSetBonus(demonheartHit), 4: func(_ core.Agent, setBonusAura *core.Aura) { shared.AttachSpellDamageVersus(setBonusAura, demonheartDemons) }, 5: func(agent core.Agent, setBonusAura *core.Aura) { warlock := agent.(WarlockAgent).GetWarlock() setBonusAura.AttachAdditivePseudoStatBuff(&warlock.lifeTapManaBonus, demonheartLifeTap.EffectN(1).Percent()) }, }, })
Tier 1 The ItemSet row lists six pieces, head and chest among them, but the game files ship only the shoulders, hands, legs and feet, so the 5-piece bonus cannot be worn yet. The 3-piece bonus shortens Banish, which the sim does not cast.
var ItemSetDemoniacsThreads = core.NewItemSet(core.ItemSet{ ID: 481, Name: "Demoniac's Threads", Slots: []proto.ItemSlot{ proto.ItemSlot_ItemSlotNeck, proto.ItemSlot_ItemSlotShoulder, proto.ItemSlot_ItemSlotChest, proto.ItemSlot_ItemSlotWrist, proto.ItemSlot_ItemSlotTrinket1, proto.ItemSlot_ItemSlotTrinket2, }, Bonuses: map[int32]core.ApplySetBonus{ 2: parsedSetBonus(demoniacDamage), 3: parsedSetBonus(demoniacCorrupt), 5: parsedSetBonus(demoniacDeathCoil), }, })
Zul'Gurub
var ItemSetDoomcallersAttire = core.NewItemSet(core.ItemSet{ ID: 499, Name: "Doomcaller's Attire", Slots: []proto.ItemSlot{ proto.ItemSlot_ItemSlotHead, proto.ItemSlot_ItemSlotShoulder, proto.ItemSlot_ItemSlotChest, proto.ItemSlot_ItemSlotLegs, proto.ItemSlot_ItemSlotFeet, }, Bonuses: map[int32]core.ApplySetBonus{ 3: parsedSetBonus(doomcallerImmo), 5: parsedSetBonus(doomcallerBolt), }, })
Ahn'Qiraj
var ItemSetFieldMarshalsThreads = core.NewItemSet(core.ItemSet{
ID: 392,
Name: "Field Marshal's Threads",
Slots: sixPieceSlots,
Bonuses: pvpSetBonuses(6, 3, 2),
})
var ItemSetImplementsOfUnspokenNames = core.NewItemSet(core.ItemSet{ ID: 500, Name: "Implements of Unspoken Names", Slots: []proto.ItemSlot{ proto.ItemSlot_ItemSlotBack, proto.ItemSlot_ItemSlotFinger1, proto.ItemSlot_ItemSlotFinger2, proto.ItemSlot_ItemSlotMainHand, }, Bonuses: map[int32]core.ApplySetBonus{ 3: func(agent core.Agent, _ *core.Aura) { warlock := agent.(WarlockAgent).GetWarlock() petMult := 1 + unspokenPets.EffectN(2).Percent() for _, pet := range warlock.demons() { pet.PseudoStats.DamageDealtMultiplier *= petMult } }, }, })
Ahn'Qiraj
var ItemSetLieutenantCommandersDreadgear = core.NewItemSet(core.ItemSet{
ID: 547,
Name: "Lieutenant Commander's Dreadgear",
Slots: sixPieceSlots,
Bonuses: pvpSetBonuses(2, 4, 6),
})
var ItemSetLieutenantCommandersThreads = core.NewItemSet(core.ItemSet{
ID: 346,
Name: "Lieutenant Commander's Threads",
Slots: sixPieceSlots,
Bonuses: pvpSetBonuses(2, 4, 6),
})
var ItemSetPlagueheartRaiment = core.NewItemSet(core.ItemSet{ ID: 529, Name: "Plagueheart Raiment", Slots: shared.TierThreeSlots, Bonuses: map[int32]core.ApplySetBonus{ 4: shared.ParsedSetBonus(plagueCorruption), 6: shared.ParsedSetBonus(plagueThreat), }, })
Tier 3
var ItemSetWarlordsThreads = core.NewItemSet(core.ItemSet{
ID: 391,
Name: "Warlord's Threads",
Slots: sixPieceSlots,
Bonuses: pvpSetBonuses(6, 3, 2),
})
var TalentTreeSizes = [3]int{17, 19, 16}
Functions ¶
func RegisterWarlock ¶
func RegisterWarlock()
Types ¶
type APLActionCastWarlockAssignedCurse ¶
type APLActionCastWarlockAssignedCurse struct {
// contains filtered or unexported fields
}
func (*APLActionCastWarlockAssignedCurse) Execute ¶
func (x *APLActionCastWarlockAssignedCurse) Execute(sim *core.Simulation)
func (*APLActionCastWarlockAssignedCurse) Finalize ¶
func (x *APLActionCastWarlockAssignedCurse) Finalize(*core.APLRotation)
func (*APLActionCastWarlockAssignedCurse) GetAPLValues ¶
func (x *APLActionCastWarlockAssignedCurse) GetAPLValues() []core.APLValue
func (*APLActionCastWarlockAssignedCurse) GetInnerActions ¶
func (x *APLActionCastWarlockAssignedCurse) GetInnerActions() []*core.APLAction
func (*APLActionCastWarlockAssignedCurse) GetNextAction ¶
func (x *APLActionCastWarlockAssignedCurse) GetNextAction(*core.Simulation) *core.APLAction
func (*APLActionCastWarlockAssignedCurse) GetSpellFromAction ¶
func (x *APLActionCastWarlockAssignedCurse) GetSpellFromAction(sim *core.Simulation) *core.Spell
func (*APLActionCastWarlockAssignedCurse) IsReady ¶
func (x *APLActionCastWarlockAssignedCurse) IsReady(sim *core.Simulation) bool
func (*APLActionCastWarlockAssignedCurse) PostFinalize ¶
func (x *APLActionCastWarlockAssignedCurse) PostFinalize(*core.APLRotation)
func (*APLActionCastWarlockAssignedCurse) ReplaceAPLValues ¶
func (x *APLActionCastWarlockAssignedCurse) ReplaceAPLValues(func(core.APLValue) core.APLValue)
func (*APLActionCastWarlockAssignedCurse) Reset ¶
func (x *APLActionCastWarlockAssignedCurse) Reset(*core.Simulation)
func (*APLActionCastWarlockAssignedCurse) String ¶
func (x *APLActionCastWarlockAssignedCurse) String() string
type APLValueWarlockActiveOnAllTargets ¶
type APLValueWarlockActiveOnAllTargets struct {
core.DefaultAPLValueImpl
// contains filtered or unexported fields
}
True while every target that is up holds one of the spells.
func (*APLValueWarlockActiveOnAllTargets) GetBool ¶
func (x *APLValueWarlockActiveOnAllTargets) GetBool(sim *core.Simulation) bool
func (*APLValueWarlockActiveOnAllTargets) String ¶
func (x *APLValueWarlockActiveOnAllTargets) String() string
func (*APLValueWarlockActiveOnAllTargets) Type ¶
func (x *APLValueWarlockActiveOnAllTargets) Type() proto.APLValueType
type APLValueWarlockActivePet ¶
type APLValueWarlockActivePet struct {
core.DefaultAPLValueImpl
// contains filtered or unexported fields
}
func (*APLValueWarlockActivePet) GetBool ¶
func (x *APLValueWarlockActivePet) GetBool(_ *core.Simulation) bool
func (*APLValueWarlockActivePet) String ¶
func (x *APLValueWarlockActivePet) String() string
func (*APLValueWarlockActivePet) Type ¶
func (x *APLValueWarlockActivePet) Type() proto.APLValueType
type APLValueWarlockAssignedCurseIsActive ¶
type APLValueWarlockAssignedCurseIsActive struct {
core.DefaultAPLValueImpl
// contains filtered or unexported fields
}
func (*APLValueWarlockAssignedCurseIsActive) GetBool ¶
func (x *APLValueWarlockAssignedCurseIsActive) GetBool(sim *core.Simulation) bool
func (*APLValueWarlockAssignedCurseIsActive) String ¶
func (x *APLValueWarlockAssignedCurseIsActive) String() string
func (*APLValueWarlockAssignedCurseIsActive) Type ¶
func (x *APLValueWarlockAssignedCurseIsActive) Type() proto.APLValueType
type APLValueWarlockIsAssignedCurse ¶
type APLValueWarlockIsAssignedCurse struct {
core.DefaultAPLValueImpl
// contains filtered or unexported fields
}
func (*APLValueWarlockIsAssignedCurse) GetBool ¶
func (x *APLValueWarlockIsAssignedCurse) GetBool(sim *core.Simulation) bool
func (*APLValueWarlockIsAssignedCurse) GetSpellFromAction ¶
func (x *APLValueWarlockIsAssignedCurse) GetSpellFromAction(sim *core.Simulation) *core.Spell
func (*APLValueWarlockIsAssignedCurse) String ¶
func (x *APLValueWarlockIsAssignedCurse) String() string
func (*APLValueWarlockIsAssignedCurse) Type ¶
func (x *APLValueWarlockIsAssignedCurse) Type() proto.APLValueType
type APLValueWarlockTimeToHalfTick ¶ added in v1.0.18
type APLValueWarlockTimeToHalfTick struct {
core.DefaultAPLValueImpl
// contains filtered or unexported fields
}
func (*APLValueWarlockTimeToHalfTick) GetDuration ¶ added in v1.0.18
func (x *APLValueWarlockTimeToHalfTick) GetDuration(sim *core.Simulation) time.Duration
The dot ticks on its expiry less whole normal periods, and Wrack adds the points between them on its own period's grid from the expiry. The half tick read is the latest such point before the expiry that is after now and after the instant the dot is up from, so a half tick due at this instant reads as the next one.
func (*APLValueWarlockTimeToHalfTick) String ¶ added in v1.0.18
func (x *APLValueWarlockTimeToHalfTick) String() string
func (*APLValueWarlockTimeToHalfTick) Type ¶ added in v1.0.18
func (x *APLValueWarlockTimeToHalfTick) Type() proto.APLValueType
type Warlock ¶
type Warlock struct {
core.Character
Talents *proto.WarlockTalents
Options *proto.WarlockOptions
// Base Spells
Corruption *core.Spell
DrainLife *core.Spell
DrainSoul *core.Spell
Hellfire *core.Spell
Immolate []*core.Spell // Every registered rank
Incinerate *core.Spell
RainOfFire *core.Spell
SearingPain *core.Spell
ShadowBolt *core.Spell
Soulfire *core.Spell
LifeTap *core.Spell
// Curses
CurseOfElements *core.Spell
CurseOfElementsAuras core.AuraArray
CurseOfRecklessness *core.Spell
CurseOfRecklessnessAuras core.AuraArray
CurseOfWeakness *core.Spell
CurseOfWeaknessAuras core.AuraArray
CurseOfWeaknessAmpAuras core.AuraArray
Curses []*core.Spell
// Banes
BaneOfAgony *core.Spell
BaneOfDoom *core.Spell
Banes []*core.Spell
BaneOfHavoc *core.Spell
BaneOfHavocAuras core.AuraArray
// Summons
SummonImp *core.Spell
SummonVoidwalker *core.Spell
SummonSuccubus *core.Spell
SummonFelhunter *core.Spell
// Talent Tree Spells
AmplifyCurse *core.Spell
DemonicSacrifice *core.Spell
Conflagrate *core.Spell
Shadowburn *core.Spell
SiphonLife *core.Spell
Wrack *core.Spell
// Auras
DemonicSacrificeAuras map[proto.WarlockOptions_Summon]*core.Aura // Demonic Sacrifice's effect, by the demon sacrificed
FelDominationAura *core.Aura
AmplifyCurseAura *core.Aura
AmplifyCurseMultiplier float64
ShadowVulnerabilityAuras core.AuraArray
DemonicBrandAuras core.AuraArray
NightfallProcAura *core.Aura
ShadowEmbraceAura *core.Aura
DemonicKnowledgeAura *core.Aura
// Pets
ActivePet *WarlockPet
Felhunter *WarlockPet
Imp *WarlockPet
Succubus *WarlockPet
Voidwalker *WarlockPet
// Armors
DemonArmor *core.Aura
SoulShardsAura *core.Aura // the Soul Shards left this iteration, as its stacks
// contains filtered or unexported fields
}
func NewWarlock ¶
func (*Warlock) AddRaidBuffs ¶
func (*Warlock) AfflictionCount ¶
The number of this warlock's Corruption, Siphon Life and Bane of Agony effects active on the target, the effects Soul Siphon's tooltip counts. One rank of Corruption is up at a time, so the count is at most three.
func (*Warlock) ApplyTalents ¶
func (warlock *Warlock) ApplyTalents()
func (*Warlock) GetAssignedCurse ¶
Nil under NoCurse. Elements is the default: any value it does not name falls back to it.
func (*Warlock) GetCharacter ¶
func (*Warlock) GetWarlock ¶
func (*Warlock) Initialize ¶
func (warlock *Warlock) Initialize()
func (*Warlock) NewAPLAction ¶
func (warlock *Warlock) NewAPLAction(rot *core.APLRotation, config *proto.APLAction) core.APLActionImpl
func (*Warlock) NewAPLValue ¶
func (*Warlock) OnEncounterStart ¶
func (warlock *Warlock) OnEncounterStart(sim *core.Simulation)
func (*Warlock) Reset ¶
func (warlock *Warlock) Reset(sim *core.Simulation)
type WarlockAgent ¶
type WarlockAgent interface {
GetWarlock() *Warlock
}
Agent is a generic way to access underlying warlock on any of the agents.
type WarlockPet ¶
type WarlockPet struct {
core.Pet
AutoCastAbilities []*core.Spell
MinMana float64 // The mana the pet keeps before it casts again
// contains filtered or unexported fields
}
func (*WarlockPet) ExecuteCustomRotation ¶
func (pet *WarlockPet) ExecuteCustomRotation(sim *core.Simulation)
Casts the first ability that is ready once the pet has its MinMana; otherwise waits until it has the mana for the cheapest one, or until the GCD and the cooldown of an ability it has the mana for end.
func (*WarlockPet) GetPet ¶
func (pet *WarlockPet) GetPet() *core.Pet
func (*WarlockPet) Initialize ¶
func (pet *WarlockPet) Initialize()
Each demon registers its own abilities, as the pet initializes.
func (*WarlockPet) OnEncounterStart ¶
func (pet *WarlockPet) OnEncounterStart(_ *core.Simulation)
func (*WarlockPet) Reset ¶
func (pet *WarlockPet) Reset(_ *core.Simulation)
Source Files
¶
- agony.go
- apl_values.go
- armors.go
- bane_of_havoc.go
- conflagrate.go
- corruption.go
- curse_of_elements.go
- curse_of_recklessness.go
- curse_of_weakness.go
- death_coil.go
- doom.go
- drain_life.go
- drain_soul.go
- hellfire.go
- immolate.go
- incinerate.go
- item_sets.go
- items.go
- lifetap.go
- pets.go
- rain_of_fire.go
- searing_pain.go
- shadowbolt.go
- shadowburn.go
- siphon_life.go
- soul_shards.go
- soulfire.go
- spell_data_auto_gen.go
- summon.go
- talents.go
- talents_affliction.go
- talents_demonology.go
- talents_destruction.go
- warlock.go
- wrack.go