Documentation
¶
Overview ¶
Package buffmanifest is the checked-in manifest of every raid, party, individual and enemy-debuff proto field the sim knows about. It is a leaf package: it may import the standard library and sim/core/proto and nothing else, so the buff generator and the proto emitter can both read it while the generated proto and sim/core files are stale.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var Debuffs = []BuffSpec{ { Field: "hunters_mark", SpellID: 14325, Category: "HuntersMark", Stats: []proto.Stat{ proto.Stat_StatRangedAttackPower, }, }, { Field: "judgement_of_the_crusader", SpellID: 20303, TooltipID: 20308, ImpAction: &ActionRef{ItemID: 23203, SpellID: 28852}, Category: "Judgement of the Crusader", Stats: []proto.Stat{ proto.Stat_StatHolyDamage, proto.Stat_StatSpellDamage, }, }, { Field: "judgement_of_light", SpellID: 20346, TooltipID: 20349, Kind: KindProc, Stats: []proto.Stat{ proto.Stat_StatDefenseRating, }, }, { Field: "judgement_of_wisdom", SpellID: 20355, TooltipID: 20357, Kind: KindProc, Stats: []proto.Stat{ proto.Stat_StatMP5, }, }, { Field: "curse_of_elements", SpellID: 1311680, Category: "CurseOfElements", Stats: []proto.Stat{ proto.Stat_StatSpellDamage, }, }, { Field: "curse_of_recklessness", SpellID: 11717, Category: "MinorArmorReduction", Stats: []proto.Stat{ proto.Stat_StatAttackPower, }, }, { Field: "faerie_fire", SpellID: 9907, Category: "MinorArmorReduction", Stats: []proto.Stat{ proto.Stat_StatAttackPower, }, }, { Field: "expose_armor", SpellID: 11198, Category: "MajorArmorReduction", Stats: []proto.Stat{ proto.Stat_StatAttackPower, }, }, { Field: "sunder_armor", SpellID: 11597, Category: "MajorArmorReduction", Driver: true, Stats: []proto.Stat{ proto.Stat_StatAttackPower, }, }, { Field: "gift_of_arthas", SpellID: 11374, Category: "GiftOfArthasAura", Stats: []proto.Stat{ proto.Stat_StatAttackPower, proto.Stat_StatDefenseRating, }, }, { Field: "demoralizing_roar", SpellID: 9898, Category: "Demoralizing", Stats: []proto.Stat{ proto.Stat_StatStamina, proto.Stat_StatDefenseRating, }, }, { Field: "demoralizing_shout", SpellID: 11556, Category: "Demoralizing", Stats: []proto.Stat{ proto.Stat_StatStamina, proto.Stat_StatDefenseRating, }, }, { Field: "thunder_clap", SpellID: 11581, Category: "AtkSpdReduction", Stats: []proto.Stat{ proto.Stat_StatStamina, proto.Stat_StatDefenseRating, }, }, { Field: "insect_swarm", SpellID: 24977, Category: "HitChanceReduction", Stats: []proto.Stat{ proto.Stat_StatStamina, proto.Stat_StatDefenseRating, }, }, { Field: "scorpid_sting", SpellID: 3043, Category: "HitChanceReduction", Stats: []proto.Stat{ proto.Stat_StatStamina, proto.Stat_StatDefenseRating, }, }, { Field: "hex_of_weakness", SpellID: 19285, Category: "Demoralizing", Stats: []proto.Stat{ proto.Stat_StatStamina, proto.Stat_StatDefenseRating, }, }, { Field: "demoralizing_screech", SpellID: 24579, Owner: proto.Class_ClassHunter, Category: "Demoralizing", Stats: []proto.Stat{ proto.Stat_StatStamina, proto.Stat_StatDefenseRating, }, }, { Field: "curse_of_weakness", SpellID: 11708, Category: "CurseOfWeakness", Stats: []proto.Stat{ proto.Stat_StatStamina, proto.Stat_StatDefenseRating, }, }, { Field: "dust_cloud", SpellID: 1265904, CastID: 1265911, Category: "MinorArmorReduction", Driver: true, Stats: []proto.Stat{ proto.Stat_StatAttackPower, }, }, { Field: "armor_shatter", SpellID: 16928, Category: "MinorArmorReduction", Driver: true, Stats: []proto.Stat{ proto.Stat_StatAttackPower, }, }, { Field: "vindication", SpellID: 440667, TooltipID: 9452, Owner: proto.Class_ClassPaladin, Talent: 9452, Proto: ProtoBool, Category: "Demoralizing", Stats: []proto.Stat{ proto.Stat_StatStamina, proto.Stat_StatDefenseRating, }, }, { Field: "thunderfury", SpellID: 21992, Driver: true, Stats: []proto.Stat{ proto.Stat_StatNatureDamage, proto.Stat_StatStamina, proto.Stat_StatDefenseRating, }, }, { Field: "puncture_armor", SpellID: 17315, Category: "MinorArmorReduction", Driver: true, Proto: ProtoInt32, Stats: []proto.Stat{ proto.Stat_StatAttackPower, }, }, }
var Individual = []BuffSpec{ { Field: "greater_blessing_of_kings", SpellID: 25898, Stats: []proto.Stat{ proto.Stat_StatAgility, proto.Stat_StatIntellect, proto.Stat_StatSpirit, proto.Stat_StatStamina, proto.Stat_StatStrength, }, }, { Field: "greater_blessing_of_might", SpellID: 25782, Ranks: []BuffRank{{SpellID: 25782}, {SpellID: 25916}}, Stats: []proto.Stat{ proto.Stat_StatAttackPower, }, }, { Field: "greater_blessing_of_wisdom", SpellID: 25894, Ranks: []BuffRank{{SpellID: 25894}, {SpellID: 25918}}, Stats: []proto.Stat{ proto.Stat_StatMP5, }, }, { Field: "greater_blessing_of_salvation", Kind: KindFlag, Reason: "Greater Blessing of Salvation 25895 is gone from the game files; the field stays for saved settings and applies nothing.", }, { Field: "greater_blessing_of_light", Kind: KindFlag, Reason: "Greater Blessing of Light 25890 is gone from the game files; the field stays for saved settings and applies nothing.", }, { Field: "innervates", SpellID: 29166, Kind: KindExternalCD, Category: "Innervate", Stats: []proto.Stat{ proto.Stat_StatMP5, }, Label: "Innervates", AllManaRegen: true, }, { Field: "power_infusions", SpellID: 10060, Kind: KindExternalCD, Category: "PowerInfusion", Stats: []proto.Stat{ proto.Stat_StatSpellDamage, proto.Stat_StatHealingPower, }, Label: "Power Infusions", }, { Field: "thorns", SpellID: 9910, Category: "Thorns", SingleAura: true, Driver: true, Stats: []proto.Stat{ proto.Stat_StatDefenseRating, proto.Stat_StatStamina, }, }, { Field: "thorns_spell_power", Kind: KindFlag, Proto: ProtoDouble, Reason: "the Nature spell power of the druid providing Thorns, which driveThorns scales the damage with; a sim input with no spell source, rendered under Other Inputs.", }, }
var Party = []BuffSpec{ { Field: "blood_pact", SpellID: 11767, Category: "BloodPact", Stats: []proto.Stat{ proto.Stat_StatStamina, }, }, { Field: "devotion_aura", SpellID: 10293, Category: "DevotionAura", SharedCategory: "PaladinAura", SingleAura: true, Stats: []proto.Stat{ proto.Stat_StatArmor, }, }, { Field: "mana_spring_totem", SpellID: 10494, CastID: 10497, Talent: 16187, Category: "ManaSpringTotem", Stats: []proto.Stat{ proto.Stat_StatMP5, }, }, { Field: "mana_tide_totems", SpellID: 1325257, CastID: 1325256, Kind: KindExternalCD, Category: "ManaTideTotem", Stats: []proto.Stat{ proto.Stat_StatMP5, }, Label: "Mana Tide Totem", }, { Field: "retribution_aura", SpellID: 10301, Category: "RetributionAura", SharedCategory: "PaladinAura", SingleAura: true, Driver: true, Stats: []proto.Stat{ proto.Stat_StatDefenseRating, }, }, { Field: "retribution_aura_spell_power", Kind: KindFlag, Proto: ProtoDouble, Reason: "the Holy spell power of the paladin providing Retribution Aura, which driveRetributionAura scales the damage with; a sim input with no spell source, rendered under Other Inputs.", }, { Field: "concentration_aura", SpellID: 19746, Category: "ConcentrationAura", SharedCategory: "PaladinAura", SingleAura: true, Stats: []proto.Stat{ proto.Stat_StatSpellDamage, proto.Stat_StatHealingPower, }, }, { Field: "atiesh_mage", SpellID: 28142, Owner: proto.Class_ClassMage, Kind: KindItemCount, Label: "Atiesh - Mage", Stats: []proto.Stat{ proto.Stat_StatCritRating, }, }, { Field: "atiesh_warlock", SpellID: 28143, Owner: proto.Class_ClassWarlock, Kind: KindItemCount, Label: "Atiesh - Warlock", Stats: []proto.Stat{ proto.Stat_StatSpellDamage, proto.Stat_StatHealingPower, }, }, { Field: "atiesh_druid", SpellID: 28145, Owner: proto.Class_ClassDruid, Kind: KindItemCount, Label: "Atiesh - Druid", Stats: []proto.Stat{ proto.Stat_StatMP5, }, }, { Field: "atiesh_priest", SpellID: 28144, Owner: proto.Class_ClassPriest, Kind: KindItemCount, Label: "Atiesh - Priest", Stats: []proto.Stat{ proto.Stat_StatHealingPower, }, }, { Field: "stoneskin_totem", SpellID: 10405, CastID: 10408, Talent: 16258, Category: "StoneskinTotem", Stats: []proto.Stat{ proto.Stat_StatDefenseRating, }, }, { Field: "darkspear", SpellID: 16939, Label: "Darkspear", Category: "Darkspear", SingleAura: true, Driver: true, Stats: []proto.Stat{ proto.Stat_StatCritRating, }, }, { Field: "admirals_hat", SpellID: 12022, Category: "AdmiralsHat", SingleAura: true, Stats: []proto.Stat{ proto.Stat_StatStamina, }, }, { Field: "dark_inspiration", SpellID: 1326168, Talent: 1326159, Category: "DarkInspiration", Proto: ProtoInt32, Stats: []proto.Stat{ proto.Stat_StatSpirit, }, }, { Field: "headmasters_charge", SpellID: 18264, TooltipItemID: 13937, Category: "HeadmastersCharge", SingleAura: true, Stats: []proto.Stat{ proto.Stat_StatIntellect, }, }, }
var Raid = []BuffSpec{ { Field: "arcane_intellect", SpellID: 10157, Category: "StatBuff", ElixirCategory: "ElixirStat", Stats: []proto.Stat{ proto.Stat_StatIntellect, }, }, { Field: "prayer_of_spirit", SpellID: 27681, Category: "StatBuff", ElixirCategory: "ElixirStat", Stats: []proto.Stat{ proto.Stat_StatSpirit, }, }, { Field: "mark_of_the_wild", SpellID: 9885, Stats: []proto.Stat{ proto.Stat_StatArmor, proto.Stat_StatStrength, proto.Stat_StatAgility, proto.Stat_StatIntellect, proto.Stat_StatSpirit, proto.Stat_StatStamina, }, }, { Field: "power_word_fortitude", SpellID: 10938, Category: "StatBuff", ElixirCategory: "ElixirStat", Stats: []proto.Stat{ proto.Stat_StatStamina, }, }, { Field: "shadow_protection", SpellID: 10958, Stats: []proto.Stat{ proto.Stat_StatShadowResistance, }, }, { Field: "fire_resistance_aura", SpellID: 19900, Category: "FireResistanceAura", SharedCategory: "PaladinAura", SingleAura: true, Stats: []proto.Stat{ proto.Stat_StatFireResistance, }, }, { Field: "frost_resistance_aura", SpellID: 19898, Category: "FrostResistanceAura", SharedCategory: "PaladinAura", SingleAura: true, Stats: []proto.Stat{ proto.Stat_StatFrostResistance, }, }, { Field: "shadow_resistance_aura", SpellID: 19896, Category: "ShadowResistanceAura", SharedCategory: "PaladinAura", SingleAura: true, Stats: []proto.Stat{ proto.Stat_StatShadowResistance, }, }, { Field: "fire_resistance_totem", SpellID: 10535, CastID: 10538, Stats: []proto.Stat{ proto.Stat_StatFireResistance, }, }, { Field: "frost_resistance_totem", SpellID: 10477, CastID: 10479, Stats: []proto.Stat{ proto.Stat_StatFrostResistance, }, }, { Field: "nature_resistance_totem", SpellID: 10599, CastID: 10601, Stats: []proto.Stat{ proto.Stat_StatNatureResistance, }, }, { Field: "strength_of_earth_totem", SpellID: 10441, CastID: 10442, Category: "StrengthOfEarthTotem", Ranks: []BuffRank{{SpellID: 10441, CastID: 10442}, {SpellID: 25362, CastID: 25361}}, Stats: []proto.Stat{ proto.Stat_StatStrength, }, }, { Field: "grace_of_air_totem", SpellID: 10626, CastID: 10627, Category: "GraceOfAirTotem", Ranks: []BuffRank{{SpellID: 10626, CastID: 10627}, {SpellID: 25360, CastID: 25359}}, Stats: []proto.Stat{ proto.Stat_StatAgility, }, }, { Field: "windfury_totem", SpellID: 10612, CastID: 10614, Kind: KindProc, Category: "WindfuryTotem", Owner: proto.Class_ClassShaman, Stats: []proto.Stat{ proto.Stat_StatAttackPower, }, }, { Field: "flametongue_totem", SpellID: 15036, CastID: 16387, Kind: KindProc, Category: "FlametongueTotem", Stats: []proto.Stat{ proto.Stat_StatAttackPower, }, }, { Field: "battle_shout", SpellID: 11551, Category: "BattleShout", SingleAura: true, Driver: true, ImpAction: &ActionRef{SpellID: 23563}, Proto: ProtoInt32, Stats: []proto.Stat{ proto.Stat_StatAttackPower, }, }, { Field: "trueshot_aura", SpellID: 20906, Stats: []proto.Stat{ proto.Stat_StatRangedAttackPower, }, }, { Field: "furious_howl", SpellID: 24597, Owner: proto.Class_ClassHunter, Category: "BattleShout", SingleAura: true, Stats: []proto.Stat{ proto.Stat_StatAttackPower, }, }, { Field: "aspect_of_the_wild", SpellID: 20190, Stats: []proto.Stat{ proto.Stat_StatNatureResistance, }, }, { Field: "leader_of_the_pack", SpellID: 24932, CastID: 17007, Category: "RaidCrit", ElixirCategory: "ElixirCrit", SingleAura: true, Stats: []proto.Stat{ proto.Stat_StatAttackPower, proto.Stat_StatSpellDamage, }, }, { Field: "moonkin_aura", SpellID: 24907, TooltipID: 24858, Category: "RaidCrit", ElixirCategory: "ElixirCrit", SingleAura: true, Stats: []proto.Stat{ proto.Stat_StatAttackPower, proto.Stat_StatSpellDamage, }, }, }
var Scopes = []BuffScope{ScopeParty, ScopeRaid, ScopeIndividual, ScopeDebuff}
Scopes is the order the rows are resolved, rendered and applied in. The apply order is the order the auras register in, which the sim's results follow.
Functions ¶
func RenderProto ¶
func RenderProto() []byte
RenderProto emits proto/buffs.proto from the manifest. A field's number is its position in its scope's slice.
Types ¶
type BuffKind ¶
type BuffKind int
BuffKind names a row whose behaviour is not simply the aura its spell states. A plain row states none, and a damage shield is read off the spell.
type BuffProtoType ¶
type BuffProtoType int
const ( ProtoBool BuffProtoType = iota + 1 ProtoTristate ProtoInt32 ProtoDouble )
The zero BuffProtoType is no override: the row's type is derived, see ProtoType.
func (BuffProtoType) String ¶
func (t BuffProtoType) String() string
type BuffRank ¶
One state of a rank select, whose aura bids in the row's categories. SpellID and CastID mean what they do on the row, and the state's label is the cast's name and rank in the game files.
type BuffSpec ¶
type BuffSpec struct {
Field string // proto field name, snake_case
// SpellID is the spell the aura's numbers are read from: the top rank of the castable family (the
// trainer's top rank where only a class book teaches the rank above it), or the aura that family's
// cast applies when the cast is a summon or a dummy. CastID is that cast,
// the spell the player learns, which names the buff and times an external cooldown. Both are
// roots of the spell store.
SpellID int32
CastID int32
// TooltipID is the spell the settings input shows as its icon and tooltip, for a row whose aura
// states no text and whose CastID is not that spell either. 0 defers to CastID, then SpellID; it
// never changes the numbers the row reads.
TooltipID int32
// TooltipItemID is the item the settings input shows instead of a spell, for a row an item's use
// effect provides. It wins over TooltipID and never changes the numbers the row reads.
TooltipItemID int32
// Talent is the spell of the trait node that prices the improved state, 0 when none does.
Talent int32
Category string // exclusive-effect category value, "" = none
ElixirCategory string // the elixirs' category the aura's stats overwrite (core.ElixirStatCategory or core.ElixirCritCategory), "" = none
SingleAura bool
Driver bool // apply block hands the field to drive<Go>; the aura is not simply always up
Stats []proto.Stat // UI relevance tags
// ImpAction names the improved state's source when it is not a talent: an
// item, or the spell an item set grants at a piece threshold. It is the icon
// the improved state shows.
ImpAction *ActionRef
Label string // UI label override, "" = the spell's name
// Owner is the class that provides a buff whose spell names no class family.
Owner proto.Class
Kind BuffKind
Proto BuffProtoType // override of the derived type
// Reason says what a Flag row is, since no spell does; the shell it renders as carries it.
Reason string
// A rank select's states: 0 is off and state N applies Ranks[N-1] in place of the row's SpellID.
Ranks []BuffRank
// The row's mana regen percent is Innervate's multiplier on the mana regen, where it otherwise
// multiplies the Spirit regen only.
AllManaRegen bool
}
BuffSpec is what the game files cannot state about a proto field. Its scope is the slice it sits in, its number its position there, and its names, owner and left-out auras are read off its spell.
func (BuffSpec) GoField ¶
GoField is the field name protoc-gen-go generates for Field. It ports protobuf-go's strs.GoCamelCase, including the branch that keeps the underscore in front of a digit ("soe_enhancement_2pt4" gives "SoeEnhancement_2Pt4").
func (BuffSpec) GoStem ¶
GoStem is the identifier stem the generated code names the row by: GoField without underscores.
func (BuffSpec) ProtoType ¶
func (s BuffSpec) ProtoType() BuffProtoType
ProtoType is the field's proto type: a tristate when a talent or an action prices an improved state, a count for an external cooldown or an item, a state for a rank select, and a bool otherwise.