Documentation
¶
Index ¶
- Constants
- Variables
- type APLValueDruidBleedIsActive
- type APLValueDruidExcessEnergy
- type Druid
- func (druid *Druid) AddRaidBuffs(raidBuffs *proto.RaidBuffs)
- func (druid *Druid) ApplyTalents()
- func (druid *Druid) BehindTarget() bool
- func (druid *Druid) ClearForm(sim *core.Simulation)
- func (druid *Druid) GetBearWeapon() core.Weapon
- func (druid *Druid) GetCatWeapon() core.Weapon
- func (druid *Druid) GetCharacter() *core.Character
- func (druid *Druid) InForm(form DruidForm) bool
- func (druid *Druid) Initialize()
- func (druid *Druid) NewAPLValue(rot *core.APLRotation, config *proto.APLValue) core.APLValue
- func (druid *Druid) OnEncounterStart(sim *core.Simulation)
- func (druid *Druid) RegisterBalanceSpells()
- func (druid *Druid) RegisterBaselineSpells()
- func (druid *Druid) RegisterBearFormAura()
- func (druid *Druid) RegisterCasterSpells()
- func (druid *Druid) RegisterCatFormAura()
- func (druid *Druid) RegisterFeralSpells()
- func (druid *Druid) RegisterMoonkinFormAura()
- func (druid *Druid) RegisterMoonkinFormSpell()
- func (druid *Druid) RegisterSpell(config core.SpellConfig) *DruidSpell
- func (druid *Druid) Reset(_ *core.Simulation)
- func (druid *Druid) TryMaul(sim *core.Simulation, mhSwingSpell *core.Spell) *core.Spell
- type DruidAgent
- type DruidForm
- type DruidSpell
- type SelfBuffs
Constants ¶
const BearRageIsTwoHanded = true
A bear's auto attack takes the two-hander rage factor whatever it holds, 4.5 rage per second of the bear's 2.5 second swing (EV-0037). No druid row states a rage multiplier of its own.
Variables ¶
var ItemSetChampionsRefuge = core.NewItemSet(core.ItemSet{ ID: 539, Name: "Champion's Refuge", Slots: sixPieceSlots, Bonuses: map[int32]core.ApplySetBonus{ 2: parsedSetBonus(pvpRefuge), 6: parsedSetBonus(pvpStamina), }, })
var ItemSetChampionsWildhide = core.NewItemSet(core.ItemSet{ ID: 2080, Name: "Champion's Wildhide", Slots: sixPieceSlots, Bonuses: map[int32]core.ApplySetBonus{ 2: parsedSetBonus(pvpWildhide), 6: parsedSetBonus(pvpStamina), }, })
var ItemSetFieldMarshalsRefuge = core.NewItemSet(core.ItemSet{ ID: 2077, Name: "Field Marshal's Refuge", Slots: sixPieceSlots, Bonuses: map[int32]core.ApplySetBonus{ 2: parsedSetBonus(pvpStamina), 6: parsedSetBonus(pvpRefuge), }, })
var ItemSetFieldMarshalsWildhide = core.NewItemSet(core.ItemSet{ ID: 2078, Name: "Field Marshal's Wildhide", Slots: sixPieceSlots, Bonuses: map[int32]core.ApplySetBonus{ 2: parsedSetBonus(pvpStamina), 6: parsedSetBonus(pvpWildhide), }, })
var ItemSetGrovekeeperEclipse = core.NewItemSet(core.ItemSet{ ID: 2114, Name: "Grovekeeper Eclipse", Slots: sixPieceSlots, Bonuses: map[int32]core.ApplySetBonus{ 2: parsedSetBonus(spelldata.MustFind(1300940)), 4: func(_ core.Agent, setBonusAura *core.Aura) { row := spelldata.MustFind(1301073) setBonusAura. AttachMobTypeBonusStats(stats.Stats{stats.SpellDamage: row.EffectN(1).BaseValue()}, spelldata.MobTypes(row.EffectN(1).Misc)...). ExposeToAPL(row.ID) }, 5: parsedSetBonus(spelldata.MustFind(1301242)), }, })
Tier 1 - Balance https://www.wowhead.com/forever/item-set=2114/grovekeeper-eclipse
The game files ship four of the six pieces (shoulders, hands, legs, feet), so the 5-piece bonus waits on the head and chest the ItemSet row lists. The 3-piece bonus takes 15 sec off Nature's Grasp's cooldown, which the sim does not cast.
var ItemSetGrovekeeperFerocity = core.NewItemSet(core.ItemSet{ ID: 2115, Name: "Grovekeeper Ferocity", Slots: sixPieceSlots, Bonuses: map[int32]core.ApplySetBonus{ 2: shared.ParsedSetBonus(spelldata.MustFind(1300934)), 4: shared.ParsedSetBonus(spelldata.MustFind(1301075)), 5: shared.ParsedSetBonus(spelldata.MustFind(1301247)), }, })
Tier 1 - Feral https://www.wowhead.com/forever/item-set=2115/grovekeeper-ferocity
The game files ship four of the six pieces (shoulders, hands, legs, feet), so the 5-piece bonus waits on the head and chest the ItemSet row lists. The 3-piece bonus lets Hibernate be cast in Cat Form, which the sim does not cast.
var ItemSetGrovekeeperRage = core.NewItemSet(core.ItemSet{ ID: 2113, Name: "Grovekeeper Rage", Slots: sixPieceSlots, Bonuses: map[int32]core.ApplySetBonus{ 2: shared.ParsedSetBonus(spelldata.MustFind(1300942)), 4: shared.ParsedSetBonus(spelldata.MustFind(1301076)), }, })
Tier 1 - Guardian https://www.wowhead.com/forever/item-set=2113/grovekeeper-rage
The game files ship four of the six pieces (shoulders, hands, legs, feet), so the 5-piece bonus waits on the head and chest the ItemSet row lists. The 3-piece bonus lets Rebirth be cast in Bear Form, and the 5-piece takes 15 sec off Berserk; the sim casts neither.
var ItemSetHaruspexsGarb = core.NewItemSet(core.ItemSet{ ID: 479, Name: "Haruspex's Garb", Slots: []proto.ItemSlot{ proto.ItemSlot_ItemSlotNeck, proto.ItemSlot_ItemSlotChest, proto.ItemSlot_ItemSlotWrist, proto.ItemSlot_ItemSlotWaist, proto.ItemSlot_ItemSlotTrinket1, proto.ItemSlot_ItemSlotTrinket2, }, Bonuses: map[int32]core.ApplySetBonus{ 2: parsedSetBonus(spelldata.MustFind(21618)), 3: parsedSetBonus(spelldata.MustFind(24479)), 5: parsedSetBonus(spelldata.MustFind(24480)), }, })
Zul'Gurub https://www.wowhead.com/forever/item-set=479/haruspexs-garb
var ItemSetLieutenantCommandersRefuge = core.NewItemSet(core.ItemSet{ ID: 551, Name: "Lieutenant Commander's Refuge", Slots: sixPieceSlots, Bonuses: map[int32]core.ApplySetBonus{ 2: parsedSetBonus(pvpRefuge), 6: parsedSetBonus(pvpStamina), }, })
var ItemSetLieutenantCommandersWildhide = core.NewItemSet(core.ItemSet{ ID: 2081, Name: "Lieutenant Commander's Wildhide", Slots: sixPieceSlots, Bonuses: map[int32]core.ApplySetBonus{ 2: parsedSetBonus(pvpWildhide), 6: parsedSetBonus(pvpStamina), }, })
var ItemSetSymbolsOfUnendingLife = core.NewItemSet(core.ItemSet{ ID: 494, Name: "Symbols of Unending Life", 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, setBonusAura *core.Aura) { character := agent.GetCharacter() row := spelldata.MustFind(26107) setBonusAura.ExposeToAPL(row.ID) trigger := spelldata.ProcTrigger(character, row, nil) trigger.Handler = shared.FiredSpellHandler(character, trigger.ActionID, row) if trigger.Handler == nil { return } trigger.Name = "Symbols of Unending Life - 3PC" trigger.Outcome = core.OutcomeMiss | core.OutcomeDodge | core.OutcomeBlock | core.OutcomeParry trigger.RequireDamageDealt = false trigger.ExtraCondition = func(_ *core.Simulation, spell *core.Spell, _ *core.SpellResult) bool { return spellData.Rip.Contains(spell) || spellData.FerociousBite.Contains(spell) } setBonusAura.AttachProcTrigger(trigger) }, }, })
Ruins of Ahn'Qiraj https://www.wowhead.com/forever/item-set=494/symbols-of-unending-life
var ItemSetWarlordsRefuge = core.NewItemSet(core.ItemSet{ ID: 2076, Name: "Warlord's Refuge", Slots: sixPieceSlots, Bonuses: map[int32]core.ApplySetBonus{ 2: parsedSetBonus(pvpStamina), 6: parsedSetBonus(pvpRefuge), }, })
var ItemSetWarlordsWildhide = core.NewItemSet(core.ItemSet{ ID: 2079, Name: "Warlord's Wildhide", Slots: sixPieceSlots, Bonuses: map[int32]core.ApplySetBonus{ 2: parsedSetBonus(pvpStamina), 6: parsedSetBonus(pvpWildhide), }, })
var StarfireRankMap = spelldata.Ranked(spellData.Starfire.Rank(6).ID, spellData.Starfire.Rank(7).ID)
The top rank, 7, and the cheaper rank 6, which an APL can cast in its place.
var TalentTreeSizes = [3]int{16, 20, 16}
Functions ¶
This section is empty.
Types ¶
type APLValueDruidBleedIsActive ¶
type APLValueDruidBleedIsActive struct {
core.DefaultAPLValueImpl
// contains filtered or unexported fields
}
func (*APLValueDruidBleedIsActive) GetBool ¶
func (value *APLValueDruidBleedIsActive) GetBool(_ *core.Simulation) bool
func (*APLValueDruidBleedIsActive) String ¶
func (value *APLValueDruidBleedIsActive) String() string
func (*APLValueDruidBleedIsActive) Type ¶
func (value *APLValueDruidBleedIsActive) Type() proto.APLValueType
type APLValueDruidExcessEnergy ¶
type APLValueDruidExcessEnergy struct {
core.DefaultAPLValueImpl
// contains filtered or unexported fields
}
func (*APLValueDruidExcessEnergy) GetFloat ¶
func (value *APLValueDruidExcessEnergy) GetFloat(sim *core.Simulation) float64
func (*APLValueDruidExcessEnergy) String ¶
func (value *APLValueDruidExcessEnergy) String() string
func (*APLValueDruidExcessEnergy) Type ¶
func (value *APLValueDruidExcessEnergy) Type() proto.APLValueType
type Druid ¶
type Druid struct {
core.Character
SelfBuffs
Talents *proto.DruidTalents
StartingForm DruidForm
CannotShredTarget bool
// Another raid member keeps a bleed on the target, so Rend and Tear always applies.
AssumeBleedActive bool
// Wolfshead Helm (8345): energy added to Shifting Power, and the share added to Enrage's instant rage.
WolfsheadEnergyBonus float64
WolfsheadEnrageBonus float64
MHAutoSpell *core.Spell
Barkskin *DruidSpell
Bash *DruidSpell
ChallengingRoar *DruidSpell
Claw *DruidSpell
Cower *DruidSpell
Dash *DruidSpell
DemoralizingRoar *DruidSpell
FaerieFire *DruidSpell
FeralCharge *DruidSpell
FerociousBite *DruidSpell
Enrage *DruidSpell
EnrageAura *core.Aura
FrenziedRegeneration *DruidSpell
Growl *DruidSpell
Hurricane *DruidSpell
Innervate *DruidSpell
InsectSwarm *DruidSpell
Lacerate *DruidSpell
Maul *DruidSpell
Moonfire *DruidSpell
NaturesSwiftness *DruidSpell
Pounce *DruidSpell
PounceBleed *DruidSpell
PrimalBite *DruidSpell
Prowl *DruidSpell
Shadowmeld *DruidSpell
Rake *DruidSpell
Ravage *DruidSpell
Rejuvenation *DruidSpell
Rip *DruidSpell
ShiftingPower *DruidSpell
Shred *DruidSpell
Starfire []*DruidSpell
Thorns *DruidSpell
Swipe *DruidSpell
Wrath *DruidSpell
CatForm *DruidSpell
BearForm *DruidSpell
DireBearForm *DruidSpell
MoonkinForm *DruidSpell
BearFormAura *core.Aura
CatFormAura *core.Aura
ClearcastingAura *core.Aura
OmenOfClarityAura *core.Aura // The proc trigger, whose ICD says when Omen of Clarity can proc again.
DireBearFormAura *core.Aura
DashAura *core.Aura
FeralChargeMovementAura *core.Aura
FrenziedRegenerationAura *core.Aura
DemoralizingRoarAuras core.AuraArray
FaerieFireAuras core.AuraArray
MoonkinFormAura *core.Aura
ProwlAura *core.Aura
ShadowmeldAura *core.Aura
// contains filtered or unexported fields
}
func (*Druid) AddRaidBuffs ¶
func (*Druid) ApplyTalents ¶
func (druid *Druid) ApplyTalents()
func (*Druid) BehindTarget ¶
Whether Shred, Ravage and Pounce can land: the druid is behind the target and the target can be shredded.
func (*Druid) ClearForm ¶
func (druid *Druid) ClearForm(sim *core.Simulation)
func (*Druid) GetBearWeapon ¶
func (*Druid) GetCatWeapon ¶
func (*Druid) GetCharacter ¶
func (*Druid) Initialize ¶
func (druid *Druid) Initialize()
func (*Druid) NewAPLValue ¶
func (*Druid) OnEncounterStart ¶
func (druid *Druid) OnEncounterStart(sim *core.Simulation)
func (*Druid) RegisterBalanceSpells ¶
func (druid *Druid) RegisterBalanceSpells()
func (*Druid) RegisterBaselineSpells ¶
func (druid *Druid) RegisterBaselineSpells()
func (*Druid) RegisterBearFormAura ¶
func (druid *Druid) RegisterBearFormAura()
func (*Druid) RegisterCasterSpells ¶
func (druid *Druid) RegisterCasterSpells()
The feral specs take Thorns from the buff settings, so only the caster specs register it.
func (*Druid) RegisterCatFormAura ¶
func (druid *Druid) RegisterCatFormAura()
func (*Druid) RegisterFeralSpells ¶
func (druid *Druid) RegisterFeralSpells()
func (*Druid) RegisterMoonkinFormAura ¶
func (druid *Druid) RegisterMoonkinFormAura()
func (*Druid) RegisterMoonkinFormSpell ¶
func (druid *Druid) RegisterMoonkinFormSpell()
func (*Druid) RegisterSpell ¶
func (druid *Druid) RegisterSpell(config core.SpellConfig) *DruidSpell
func (*Druid) Reset ¶
func (druid *Druid) Reset(_ *core.Simulation)
type DruidAgent ¶
type DruidAgent interface {
GetDruid() *Druid
}
Agent is a generic way to access underlying druid on any of the agents (for example balance druid.)
type DruidSpell ¶
func (*DruidSpell) CanCast ¶
func (ds *DruidSpell) CanCast(sim *core.Simulation, target *core.Unit) bool
func (*DruidSpell) IsReady ¶
func (ds *DruidSpell) IsReady(sim *core.Simulation) bool
type SelfBuffs ¶
type SelfBuffs struct {
InnervateTarget *proto.UnitReference
}
Source Files
¶
- apl_values.go
- barkskin.go
- bash.go
- challenging_roar.go
- claw.go
- cower.go
- dash.go
- demoralizing_roar.go
- druid.go
- enrage.go
- excess_energy.go
- faerie_fire.go
- feral.go
- feral_charge.go
- ferocious_bite.go
- forms.go
- frenzied_regeneration.go
- growl.go
- hurricane.go
- innervate.go
- insect_swarm.go
- item_armor.go
- item_idols.go
- item_sets.go
- items.go
- lacerate.go
- maul.go
- menu_groups.go
- moonfire.go
- natures_swiftness.go
- omen_of_clarity.go
- poised.go
- pounce.go
- primal_bite.go
- prowl.go
- rake.go
- ravage.go
- revive.go
- rip.go
- shadowmeld.go
- shifting_power.go
- shred.go
- spell_data_auto_gen.go
- starfire.go
- swipe.go
- talents.go
- talents_balance.go
- talents_feral_combat.go
- talents_restoration.go
- thorns.go
- wrath.go