Documentation
¶
Index ¶
- Constants
- Variables
- type APLValueTotemRemainingTime
- type SelfBuffs
- type Shaman
- func (shaman *Shaman) AddRaidBuffs(raidBuffs *proto.RaidBuffs)
- func (shaman *Shaman) ApplyTalents()
- func (shaman *Shaman) ElementalDevastationCritPercent() float64
- func (shaman *Shaman) GetCharacter() *core.Character
- func (shaman *Shaman) GetOverloadChance() float64
- func (shaman *Shaman) Initialize()
- func (shaman *Shaman) NewAPLValue(rot *core.APLRotation, config *proto.APLValue) core.APLValue
- func (shaman *Shaman) OnEncounterStart(sim *core.Simulation)
- func (shaman *Shaman) RegisterFlametongueImbue()
- func (shaman *Shaman) RegisterFrostbrandImbue()
- func (shaman *Shaman) RegisterRockbiterImbue()
- func (shaman *Shaman) RegisterWindfuryImbue()
- func (shaman *Shaman) Reset(sim *core.Simulation)
- type ShamanAgent
Constants ¶
const ( SpellFlagShamanSpell = core.SpellFlagAgentReserved1 SpellFlagShock = core.SpellFlagAgentReserved2 SpellFlagInstant = core.SpellFlagAgentReserved3 SpellFlagFocusable = core.SpellFlagAgentReserved4 )
const ( AirTotem int = iota EarthTotem FireTotem WaterTotem )
Indexes into NextTotemDrops for self buffs
const ( SpellMaskNone int64 = 0 SpellMaskFlameShockDirect int64 = 1 << iota SpellMaskFlameShockDot SpellMaskLightningBolt SpellMaskLightningBoltOverload SpellMaskChainLightning SpellMaskChainLightningOverload SpellMaskEarthShock SpellMaskLightningShield SpellMaskMagmaTotem SpellMaskSearingTotem SpellMaskFireNova SpellMaskStormstrike SpellMaskEarthShield SpellMaskFrostShock SpellMaskFlametongueWeapon SpellMaskFrostbrandWeapon SpellMaskLightningMastery SpellMaskShamanisticRage SpellMaskBasicTotem SpellMaskFlameShock = SpellMaskFlameShockDirect | SpellMaskFlameShockDot SpellMaskFire = SpellMaskFlameShock SpellMaskNature = SpellMaskLightningBolt | SpellMaskLightningBoltOverload | SpellMaskChainLightning | SpellMaskChainLightningOverload | SpellMaskEarthShock SpellMaskFrost = SpellMaskFrostShock SpellMaskOverload = SpellMaskLightningBoltOverload | SpellMaskChainLightningOverload SpellMaskShock = SpellMaskFlameShock | SpellMaskEarthShock | SpellMaskFrostShock SpellMaskFireTotem = SpellMaskMagmaTotem | SpellMaskSearingTotem SpellMaskTotem = SpellMaskFireTotem | SpellMaskBasicTotem )
const ( DDBC_Stormstrike int = iota DDBC_Total )
The slots on the shaman's attack table against a target that the debuffs parsed with spelldata.FromCaster hold.
const CastTagLightningOverload int32 = 6
The tag the results label an overload by.
Variables ¶
var ItemSetGiftOfTheGatheringStorm = core.NewItemSet(core.ItemSet{ ID: 502, Name: "Gift of the Gathering Storm", 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) { shaman := agent.(ShamanAgent).GetShaman() multiplier := 1 + gatheringStormChain.EffectN(1).Percent() setBonusAura. AttachMultiplicativePseudoStatBuff(&shaman.chainLightningJumpMultiplier, multiplier). ExposeToAPL(gatheringStormChain.ID) }, }, })
Ahn'Qiraj https://www.wowhead.com/forever/item-set=502/gift-of-the-gathering-storm
var ItemSetStormcallersGarb = core.NewItemSet(core.ItemSet{ ID: 501, Name: "Stormcaller's Garb", Slots: []proto.ItemSlot{ proto.ItemSlot_ItemSlotHead, proto.ItemSlot_ItemSlotShoulder, proto.ItemSlot_ItemSlotChest, proto.ItemSlot_ItemSlotLegs, proto.ItemSlot_ItemSlotFeet, }, Bonuses: map[int32]core.ApplySetBonus{ 3: func(agent core.Agent, setBonusAura *core.Aura) { shaman := agent.(ShamanAgent).GetShaman() wrath := shaman.RegisterAura(spelldata.AuraConfig(stormcallerWrath)) spelldata.ParseEffects(&shaman.Character, wrath, stormcallerWrath) trigger := spelldata.ProcTrigger(&shaman.Character, stormcallerProc, func(sim *core.Simulation, _ *core.Spell, _ *core.SpellResult) { wrath.Activate(sim) }) trigger.Name = "Stormcaller's Garb - 3PC" trigger.ClassSpellMask = SpellMaskLightningBolt | SpellMaskChainLightning | SpellMaskShock setBonusAura.AttachProcTrigger(trigger).ExposeToAPL(stormcallerProc.ID) }, 5: shared.ParsedSetBonus(stormcallerChainHeal), }, })
Ahn'Qiraj https://www.wowhead.com/forever/item-set=501/stormcallers-garb
var ItemSetTheEarthshatterer = core.NewItemSet(core.ItemSet{ ID: 527, Name: "The Earthshatterer", Slots: shared.TierThreeSlots, Bonuses: map[int32]core.ApplySetBonus{ 2: shared.ParsedSetBonus(earthshatterTotemCost), 4: shared.ParsedSetBonus(earthshatterSpring), 8: func(agent core.Agent, setBonusAura *core.Aura) { shaman := agent.(ShamanAgent).GetShaman() shaman.earthshattererAura = setBonusAura setBonusAura.ExposeToAPL(earthshatterShield.ID) }, }, })
Tier 3 https://www.wowhead.com/forever/item-set=527/the-earthshatterer
var ItemSetTheSpiritcallersRage = core.NewItemSet(core.ItemSet{ ID: 2110, Name: "The Spiritcaller's Rage", Slots: []proto.ItemSlot{ proto.ItemSlot_ItemSlotHead, proto.ItemSlot_ItemSlotShoulder, proto.ItemSlot_ItemSlotChest, proto.ItemSlot_ItemSlotHands, proto.ItemSlot_ItemSlotLegs, proto.ItemSlot_ItemSlotFeet, }, Bonuses: map[int32]core.ApplySetBonus{ 2: shared.ParsedSetBonus(spelldata.MustFind(1300957)), 4: shared.ParsedSetBonus(spelldata.MustFind(1301090)), 5: shared.ParsedSetBonus(spelldata.MustFind(1301709)), }, })
Tier 1 - Enhancement https://www.wowhead.com/forever/item-set=2110/the-spiritcallers-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 widens the earth and air totems' radius, which the sim does not model.
var TalentTreeSizes = [3]int{16, 18, 16}
Functions ¶
This section is empty.
Types ¶
type APLValueTotemRemainingTime ¶
type APLValueTotemRemainingTime struct {
core.DefaultAPLValueImpl
// contains filtered or unexported fields
}
func (*APLValueTotemRemainingTime) GetDuration ¶
func (value *APLValueTotemRemainingTime) GetDuration(sim *core.Simulation) time.Duration
func (*APLValueTotemRemainingTime) String ¶
func (value *APLValueTotemRemainingTime) String() string
func (*APLValueTotemRemainingTime) Type ¶
func (value *APLValueTotemRemainingTime) Type() proto.APLValueType
type SelfBuffs ¶
type SelfBuffs struct {
ShieldProcrate float64
ImbueMH proto.ShamanImbue
ImbueMHSwap proto.ShamanImbue
}
Which buffs this shaman is using.
type Shaman ¶
type Shaman struct {
core.Character
Talents *proto.ShamanTalents
SelfBuffs SelfBuffs
Totems *proto.ShamanTotems
// The expiration time of each totem (earth, air, fire, water).
TotemExpirations [4]time.Duration
Stormstrike *core.Spell
LightningShield *core.Spell
LightningShieldAura *core.Aura
WaterShieldAura *core.Aura
// Spends a charge of the shield that is up the way a hit taken does, for the shield proc rate option.
ShieldSelfProc func(sim *core.Simulation)
EarthShock []*core.Spell // One per rank in castableRanks.
FlameShock []*core.Spell
FrostShock []*core.Spell
StormstrikeDebuffAuras core.AuraArray
MagmaTotem *core.Spell
SearingTotem *core.Spell
FireNova *core.Spell
WindfuryTotem *core.Spell
FlametongueTotem *core.Spell
// Always nil: its registrar is commented out in totems.go, upstream of the fork.
HealingStreamTotem *core.Spell
// The cast that stood the totem in each element's slot, indexed like TotemExpirations; its aura is RelatedSelfBuff.
TotemSpells [4]*core.Spell
// contains filtered or unexported fields
}
Shaman represents a shaman character.
func (*Shaman) AddRaidBuffs ¶
func (*Shaman) ApplyTalents ¶
func (shaman *Shaman) ApplyTalents()
func (*Shaman) ElementalDevastationCritPercent ¶
The physical crit Elemental Devastation's buff grants at the talent's rank, 0 without the talent.
func (*Shaman) GetCharacter ¶
func (*Shaman) GetOverloadChance ¶
The chance is the talent's ranked dummy; the effect's base points, 30, are what the talent's ranks replace. Rank fit in EV-0137.
func (*Shaman) Initialize ¶
func (shaman *Shaman) Initialize()
The shocks, Lightning Bolt and Chain Lightning register every rank in castableRanks; the other spells register their highest rank only.
func (*Shaman) NewAPLValue ¶
func (*Shaman) OnEncounterStart ¶
func (shaman *Shaman) OnEncounterStart(sim *core.Simulation)
func (*Shaman) RegisterFlametongueImbue ¶
func (shaman *Shaman) RegisterFlametongueImbue()
436519 has no roll: every melee hit of the main hand adds its fire damage.
func (*Shaman) RegisterFrostbrandImbue ¶
func (shaman *Shaman) RegisterFrostbrandImbue()
Enchant 1668 casts 16353 off the main hand's hits. The slow, effect 1, is not modelled.
func (*Shaman) RegisterRockbiterImbue ¶
func (shaman *Shaman) RegisterRockbiterImbue()
Enchant 1664 puts 16313 on the main hand as an equip aura: the attack power, and the threat Spirit Weapons gives effect 2, which the game files state as 0.
func (*Shaman) RegisterWindfuryImbue ¶
func (shaman *Shaman) RegisterWindfuryImbue()
439431 rolls off a main-hand melee hit's cast result, and the Windfury hits follow once that hit has been dealt, in the same instant. The spell hears abilities, the Windfury hits among them, but they land inside the 1.5 s ICD the proc has just started, so they never roll.
func (*Shaman) Reset ¶
func (shaman *Shaman) Reset(sim *core.Simulation)
type ShamanAgent ¶
type ShamanAgent interface {
core.Agent
// The Shaman controlled by this Agent.
GetShaman() *Shaman
}
Implemented by each Shaman spec.
Source Files
¶
- apl_values.go
- chain_lightning.go
- electric_spell.go
- fire_totems.go
- item_armor.go
- item_sets.go
- item_totems.go
- item_weapons.go
- items.go
- lightning_bolt.go
- ranks.go
- shaman.go
- shields.go
- shocks.go
- spell_data_auto_gen.go
- stormstrike.go
- talents_elemental.go
- talents_enhancement.go
- talents_restoration.go
- totems.go
- weapon_imbues.go