syntax = "proto3"; package proto; option go_package = "./proto"; import "google/protobuf/descriptor.proto"; // protobuf does not directly support constants for versioning purposes, but we // can emulate the functionality of a CURRENT_VERSION_NUMBER constant by // defining it as a custom option for a ProtoVersion message whose only purpose // is to house the value of this option. While a bit hacky, this allows us to // increment the version number directly in the proto files, rather than needing // to separately increment two constants in the front-end and back-end code. extend google.protobuf.MessageOptions { int32 current_version_number = 50000; } extend google.protobuf.FieldOptions { // The spell a talent field stands for, which every rank of the talent shares. An APL condition // names a talent by this id, so it outlives a rename of the field. int32 talent_spell_id = 50001; // The most points the talent takes. A talents string saved before a tree was reworked can carry // more, and the sim caps the field at this many. int32 talent_max_rank = 50002; } message ProtoVersion { // The version the UI stamps every api_version field with. The sim is not // deployed anywhere, so no saved browser data or sim link predates this // number and nothing converts one: a breaking proto change simply breaks // whatever a browser still holds. option (current_version_number) = 2; // The actual field value is only used within unit tests. int32 saved_version_number = 1; } message ScalingItemProperties { int32 rand_prop_points = 1; double weapon_damage_min = 2; double weapon_damage_max = 3; float unrounded_dps = 8; map stats = 4; // for compactness // Stats that only apply while the encounter is in that kind of area. repeated AreaStats area_stats = 7; // Stats that only apply against a target of the mob type, one entry per mob type. repeated MobTypeStats mob_type_stats = 5; int32 ilvl = 6; // The damage the weapon deals with a random suffix that reduces caster DPS; unset on items with no such suffix option. ReducedCasterWeaponDamage reduced_caster_weapon_damage = 9; // The weapon skill the item adds; each value is the bonus on top of the level-based skill, not the full skill. repeated WeaponSkillValue weapon_skills = 10; // Health restored every 5 seconds. Nothing reads it yet, since the sim does not regenerate health. int32 hp5 = 11; } message ReducedCasterWeaponDamage { double weapon_damage_min = 1; double weapon_damage_max = 2; float unrounded_dps = 3; } message AreaStats { AreaType area_type = 1; map stats = 2; // keys are the numeric values of Stat } // Stats that only apply against a target of one of these mob types. message MobTypeStats { repeated MobType mob_types = 1; map stats = 2; // keys are the numeric values of Stat } // Stats that only apply while the encounter is in one of these zones, by AreaTable id. message ZoneStats { repeated int32 zone_ids = 1; map stats = 2; // keys are the numeric values of Stat } enum Spec { SpecUnknown = 0; SpecBalanceDruid = 1; SpecFeralCatDruid = 2; SpecFeralBearDruid = 3; SpecRestorationDruid = 4; SpecHunter = 5; SpecMage = 6; SpecHolyPaladin = 7; SpecProtectionPaladin = 8; SpecRetributionPaladin = 9; SpecDpsPriest = 10; SpecHealerPriest = 18; SpecRogue = 11; SpecElementalShaman = 12; SpecEnhancementShaman = 13; SpecRestorationShaman = 14; SpecWarlock = 15; SpecDpsWarrior = 16; SpecProtectionWarrior = 17; } enum Race { RaceUnknown = 0; RaceBloodElf = 1; RaceDwarf = 2; RaceGnome = 3; RaceHuman = 4; RaceNightElf = 5; RaceOrc = 6; RaceTauren = 7; RaceTroll = 8; RaceUndead = 9; RaceHighOrderSkyborne = 10; RaceWindshaperSkyborne = 11; } enum Faction { Unknown = 0; Alliance = 1; Horde = 2; } // Should aways be in order of dbc class file to properly match class masks // Found at https://wago.tools/db2/ChrClasses?build=5.5.0.61217&sort%5BID%5D=asc enum Class { ClassUnknown = 0; ClassWarrior = 1; ClassPaladin = 2; ClassHunter = 3; ClassRogue = 4; ClassPriest = 5; ClassShaman = 7; ClassMage = 8; ClassWarlock = 9; ClassDruid = 11; ClassExtra1 = 12; ClassExtra2 = 13; ClassExtra3 = 14; ClassExtra4 = 15; ClassExtra5 = 16; ClassExtra6 = 17; } enum Profession { ProfessionUnknown = 0; Alchemy = 1; Blacksmithing = 2; Enchanting = 3; Engineering = 4; Herbalism = 5; Inscription = 6; reserved 7; reserved "Jewelcrafting"; Leatherworking = 8; Mining = 9; Skinning = 10; Tailoring = 11; } // General rules for Stats vs. PseudoStats at the proto level: // - Define a property as a Stat if and only if it needs to be present in // one or more stats arrays embedded in the database files, local storage // data, or sim links. This generally means that the property is a BASIC // attribute that is directly found on items or enchants and parsed from // tooltips during database generation. Alternatively, if the stat is // required for reconstructing a target NPC from saved Encounter // settings, then it also belongs in the Stat enum. // // - If the above criterion is not satisfied, then the best practice is to // define the property as a PseudoStat rather than a Stat. For example, // the various school-specific versions of Hit, Crit, and Haste are all // defined as PseudoStats from Cataclysm onwards, since only the generic // Ratings need to be parsed from item data and stored in the sim // database. // // - Note that the above rules apply only for the proto messages used for // saving and loading data in the browser. It is perfectly okay to define // additional Stats in the back-end code for convenience or performance // reasons, such as for automatically propagating linear stat // dependencies when dynamic stat changes occur in a sim iteration. For // example, the SpellHit PseudoStat mentioned above is actually modeled // as a proper Stat in the back-end code so that it can benefit from the // StatDependency tooling, but is converted to a PseudoStat when writing // UnitStats protos for character stats and stat weights requests. This // keeps the item database compact while still giving the UI access to // calculated tertiary stats like SpellHit, MeleeCrit, RangedHaste, etc. // // - When adding new Stats or PseudoStats, make the units for each property // explicit in the name to avoid confusion. For example, append "Rating" // to the end of the field name for properties that are represented in // Rating units (regardless of how they are stored in-game), and append // "Chance" to the end of the field name for properties that represent // probabilities (between 0 and 1). // // Keep in sync with sim/core/stats/stats.go. As mentioned above, it is okay for // the Go Stats array to be larger than the size of the Stat enum proto, but the // shared indices between the two must exactly match. // // NextIndex: 38; enum Stat { // Primary attributes ("main stat") StatStrength = 0; StatAgility = 1; StatStamina = 2; StatIntellect = 3; // Spell Power and Spell Power derivatives StatHealingPower = 4; StatSpellDamage = 5; StatArcaneDamage = 6; StatFireDamage = 7; StatFrostDamage = 8; StatHolyDamage = 9; StatNatureDamage = 10; StatShadowDamage = 11; // Caster Secondaries // The game files' name for spell penetration: "Rune of Perfection" states // "Spell Piercing increased". StatSpellPiercing = 12; StatSpirit = 13; // Physical Secondaries StatAttackPower = 14; StatRangedAttackPower = 15; StatFeralAttackPower = 16; // Shared Secondaries: one rating each converts into the melee, ranged // and spell percentages alike. StatHitRating = 17; StatCritRating = 18; StatHasteRating = 19; // Physical Secondaries StatArmorPenetration = 20; StatExpertiseRating = 21; // Tank Secondaries StatDefenseRating = 22; StatBlockRating = 23; StatBlockValue = 24; StatDodgeRating = 25; StatParryRating = 26; StatArmor = 27; StatBonusArmor = 28; // Composite stats that are built up from the above gear stats + buffs. // These still belong in the Stat enum because they can be present on // some enchants and because the base values need to be stored for NPCs. StatHealth = 29; StatMana = 30; StatMP5 = 31; // Resistances StatArcaneResistance = 32; StatFireResistance = 33; StatFrostResistance = 34; StatNatureResistance = 35; StatShadowResistance = 36; StatPhysicalDamage = 37; // Armor that neither the percent armor modifiers nor the scaling of armor // from items touch, which A_MOD_ARMOR_NO_MODS states. It adds to Armor. StatArmorNoMods = 38; // DO NOT add new stats here without discussing it first; new stats come // with a performance penalty. // Checklist for making breaking changes to the Stat enum (deleting // stats, re-ordering stats, changing the interpretation of stat values, // etc.): // (1) Make the desired change in the enum above. // (2) Mirror the change in sim/core/stats/stats.go . // (3) Update any required code in sim/core for proper sim behavior. // (4) If the total number of stats changed, then change the size of the // Stats array type defined in tools/database/wowhead_tooltips.go . // (5) Run "make items" so that the sim database reflects the stats // change. At this point, you should see no changes in DPS results // when running "make test", if the only changes made were indexing // or bookkeeping adjustments. However, saved browser settings and // old sim links will be broken on the UI side. // (6) Increment the current_version_number option in the ProtoVersion // message at the top of this file. } // Not all pseudostats are included here; just the ones we want to pass // between the UI and backend. It's also OK to include things here which aren't // in the PseudoStats struct. // // NextIndex: 39; enum PseudoStat { PseudoStatMainHandDps = 0; PseudoStatOffHandDps = 1; PseudoStatRangedDps = 2; PseudoStatBlockValueMultiplier = 3; PseudoStatDodgePercent = 4; PseudoStatParryPercent = 5; // Spell School Hit PseudoStatSchoolHitPercentArcane = 6; PseudoStatSchoolHitPercentFire = 7; PseudoStatSchoolHitPercentFrost = 8; PseudoStatSchoolHitPercentHoly = 9; PseudoStatSchoolHitPercentNature = 10; PseudoStatSchoolHitPercentShadow = 11; PseudoStatMeleeHitPercent = 12; PseudoStatSpellHitPercent = 13; PseudoStatMeleeCritPercent = 14; PseudoStatSpellCritPercent = 15; PseudoStatBlockPercent = 16; PseudoStatMeleeSpeedMultiplier = 17; PseudoStatRangedSpeedMultiplier = 18; PseudoStatCastSpeedMultiplier = 19; PseudoStatMeleeHastePercent = 20; PseudoStatRangedHastePercent = 21; PseudoStatSpellHastePercent = 22; PseudoStatBlockValuePerStrength = 23; PseudoStatRangedHitPercent = 24; PseudoStatRangedCritPercent = 25; PseudoStatReducedCritTakenPercent = 26; // Dodge/parry reduction in percent. Forever's sources are mostly flat percentages // (talents, the Hyjal flask); ExpertiseRating covers the few rating-denominated ones // (the tier 1 4P bonuses) and converts into this at 10 rating per percent. PseudoStatExpertisePercent = 27; // Character sheet values per attack; the sim never reads them back, and the UI does not read the *Rating ones either. PseudoStatOffHandHitPercent = 28; PseudoStatOffHandCritPercent = 29; PseudoStatMainHandHitRating = 30; PseudoStatMainHandCritRating = 31; PseudoStatOffHandHitRating = 32; PseudoStatOffHandCritRating = 33; PseudoStatRangedHitRating = 34; PseudoStatRangedCritRating = 35; PseudoStatRangedCritSuppressionPercent = 36; PseudoStatFeralCombatSkill = 37; // Weapon skill points for whatever weapon the hand holds, on top of that weapon's skill; a feral // form ignores them. Only stat weights set them, to weigh weapon skill per hand. PseudoStatMainHandWeaponSkill = 38; PseudoStatOffHandWeaponSkill = 39; } message UnitStats { // Proto version at the time these stats were saved. If you make any // breaking changes to the size, ordering, or interpretation of the // stats or pseudoStats arrays, then make sure to increment the // current_version_number option in the ProtoVersion message at the top // of this file. // A "breaking change" here is defined as anything that will break saved // browser data or old sim links; the version need not be incremented if // you simply append a new rarely-used PseudoStat to the end of the // array, for example. int32 api_version = 3; repeated double stats = 1; repeated double pseudo_stats = 2; } enum ItemType { ItemTypeUnknown = 0; ItemTypeHead = 1; ItemTypeNeck = 2; ItemTypeShoulder = 3; ItemTypeBack = 4; ItemTypeChest = 5; ItemTypeWrist = 6; ItemTypeHands = 7; ItemTypeWaist = 8; ItemTypeLegs = 9; ItemTypeFeet = 10; ItemTypeFinger = 11; ItemTypeTrinket = 12; ItemTypeWeapon = 13; ItemTypeRanged = 14; } enum ArmorType { ArmorTypeUnknown = 0; ArmorTypeCloth = 1; ArmorTypeLeather = 2; ArmorTypeMail = 3; ArmorTypePlate = 4; } enum WeaponType { WeaponTypeUnknown = 0; WeaponTypeAxe = 1; WeaponTypeDagger = 2; WeaponTypeFist = 3; WeaponTypeMace = 4; WeaponTypeOffHand = 5; WeaponTypePolearm = 6; WeaponTypeShield = 7; WeaponTypeStaff = 8; WeaponTypeSword = 9; } enum HandType { HandTypeUnknown = 0; HandTypeMainHand = 1; HandTypeOneHand = 2; HandTypeOffHand = 3; HandTypeTwoHand = 4; } enum RangedWeaponType { RangedWeaponTypeUnknown = 0; RangedWeaponTypeBow = 1; RangedWeaponTypeCrossbow = 2; RangedWeaponTypeGun = 3; RangedWeaponTypeThrown = 4; RangedWeaponTypeWand = 5; RangedWeaponTypeIdol = 6; RangedWeaponTypeLibram = 7; RangedWeaponTypeTotem = 8; RangedWeaponTypeSigil = 9; } enum WeaponSkill { WeaponSkillUnknown = 0; WeaponSkillAxes = 1; WeaponSkillTwoHandedAxes = 2; WeaponSkillMaces = 3; WeaponSkillTwoHandedMaces = 4; WeaponSkillSwords = 5; WeaponSkillTwoHandedSwords = 6; WeaponSkillPolearms = 7; WeaponSkillStaves = 8; WeaponSkillDaggers = 9; WeaponSkillFistWeapons = 10; WeaponSkillBows = 11; WeaponSkillCrossbows = 12; WeaponSkillGuns = 13; WeaponSkillThrown = 14; WeaponSkillWands = 15; WeaponSkillFeralCombat = 16; } message WeaponSkillValue { WeaponSkill skill = 1; int32 value = 2; // The full skill, level-based part included (300 is the maximum at level 60). } // All slots on the gear menu where a single item can be worn. enum ItemSlot { ItemSlotHead = 0; ItemSlotNeck = 1; ItemSlotShoulder = 2; ItemSlotBack = 3; ItemSlotChest = 4; ItemSlotWrist = 5; ItemSlotHands = 6; ItemSlotWaist = 7; ItemSlotLegs = 8; ItemSlotFeet = 9; ItemSlotFinger1 = 10; ItemSlotFinger2 = 11; ItemSlotTrinket1 = 12; ItemSlotTrinket2 = 13; ItemSlotMainHand = 14; // can be 1h or 2h ItemSlotOffHand = 15; ItemSlotRanged = 16; } enum ItemQuality { ItemQualityJunk = 0; ItemQualityCommon = 1; ItemQualityUncommon = 2; ItemQualityRare = 3; ItemQualityEpic = 4; ItemQualityLegendary = 5; ItemQualityArtifact = 6; ItemQualityHeirloom = 7; } enum SpellSchool { SpellSchoolPhysical = 0; SpellSchoolArcane = 1; SpellSchoolFire = 2; SpellSchoolFrost = 3; SpellSchoolHoly = 4; SpellSchoolNature = 5; SpellSchoolShadow = 6; } enum TristateEffect { TristateEffectMissing = 0; TristateEffectRegular = 1; TristateEffectImproved = 2; } message ConsumesSpec { reserved 1; reserved "pot_id"; int32 flask_id = 2; int32 food_id = 5; int32 conjured_id = 6; int32 explosive_id = 7; int32 mhImbue_id = 10; int32 ohImbue_id = 11; // Contains all available potions repeated int32 potions = 17; // Contains all available conjured items repeated int32 conjured_items = 18; // Item ids of the consumables the character uses besides the one-per-kind fields above. repeated int32 extra_ids = 19; // Item ids of the elixirs the character uses, any number of them. repeated int32 elixir_ids = 21; // The poison, firestone, spellstone or Scroll of Imbue on each hand, beside its stone or oil above. int32 mh_weapon_imbue_id = 22; int32 oh_weapon_imbue_id = 23; // The same four picks for the item swap set's weapons. int32 swap_mh_imbue_id = 24; int32 swap_oh_imbue_id = 25; int32 swap_mh_weapon_imbue_id = 26; int32 swap_oh_weapon_imbue_id = 27; // The potion each APL potion placeholder casts, one per PotionClass. int32 resource_pot_id = 28; int32 defensive_pot_id = 29; int32 offensive_pot_id = 30; } enum MobType { MobTypeUnknown = 0; MobTypeBeast = 1; MobTypeDemon = 2; MobTypeDragonkin = 3; MobTypeElemental = 4; MobTypeGiant = 5; MobTypeHumanoid = 6; MobTypeMechanical = 7; MobTypeUndead = 8; } // The groups of creatures item effects count against. None of them is a creature type or a // creature family in the game files, whose CreatureFamily table holds the hunter and warlock pet families. enum CreatureFamily { CreatureFamilyUnknown = 0; CreatureFamilyNaga = 1; CreatureFamilySatyr = 2; CreatureFamilyAquatic = 3; CreatureFamilyEarthElemental = 4; CreatureFamilyFireElemental = 5; CreatureFamilyMountainGiant = 6; CreatureFamilySwine = 7; CreatureFamilyPlant = 8; CreatureFamilyTroll = 9; CreatureFamilyOrc = 10; CreatureFamilyOgre = 11; CreatureFamilyWolf = 12; CreatureFamilyWorgen = 13; CreatureFamilyMurloc = 14; CreatureFamilyFurbolg = 15; CreatureFamilyDwarf = 16; CreatureFamilyDinosaur = 17; CreatureFamilySerpentine = 18; } // The game files' terrain area groups (SpellCastingRequirements.RequiredAreasID). enum AreaType { AreaTypeUnknown = 0; AreaTypeForestGrassland = 1; AreaTypeMountainous = 2; AreaTypeSnowy = 3; AreaTypeDesert = 4; AreaTypeSwamp = 5; AreaTypeWasteland = 6; AreaTypeHaunted = 7; AreaTypeCavernous = 8; AreaTypeVolcanic = 9; AreaTypeStrongholdsCities = 10; } enum InputType { Bool = 0; Number = 1; Enum = 2; } message TargetInput { InputType input_type = 1; string label = 2; string tooltip = 5; bool bool_value = 3; double number_value = 4; int32 enum_value = 6; repeated string enum_options = 7; // The label of the target's Bool input that shows this one while it is on; empty shows it always. string shown_by = 8; } message Target { // The in-game NPC ID. int32 id = 14; string name = 15; int32 level = 4; MobType mob_type = 3; CreatureFamily creature_family = 20; repeated double stats = 5; // Auto attack parameters. double min_base_damage = 7; double damage_spread = 19; // replaces tight_enemy_damage double swing_speed = 8; bool dual_wield = 9; bool dual_wield_penalty = 10; bool parry_haste = 12; bool suppress_dodge = 16; // Sunwell Radiance bool can_crush = 17; // Whether this enemy can land Crushing Blows. Defaults on for level 63 targets. bool bleed_immune = 21; // Whether bleeds fail to land on this enemy. SpellSchool spell_school = 13; // Allows elemental attacks. // Index in Raid.tanks indicating the player tanking this mob at the // start of each pull. // -1 or invalid index indicates not being tanked. int32 tank_index = 6; // Used in tank swap AIs. int32 second_tank_index = 100; // Used in dynamic target AIs. bool disabled_at_start = 101; // Custom Target AI parameters repeated TargetInput target_inputs = 18; } message Encounter { // Proto version at the time these encounter settings were saved. If you // make any changes to this proto that will break saved browser data or // old sim links, then make sure to increment the current_version_number // option within the ProtoVersion message at the top of this file. int32 api_version = 9; double duration = 1; // Variation in the duration double duration_variation = 2; // The ratio of the encounter duration, between 0 and 1, for which the targets // will be in execute range (<= 20%), e.g. for Execute and Hammer of Wrath. double execute_proportion_20 = 3; // Same as execute_proportion_20 but for 35%, e.g. for Quietus and Decimation. double execute_proportion_35 = 4; reserved 7, 8, 10; reserved "execute_proportion_25", "execute_proportion_45", "execute_proportion_90"; // If type != Simple or Custom, then this may be empty. repeated Target targets = 6; // Every kind of area the fight is in; a zone can count as several. Empty is none. repeated AreaType area_types = 11; // The zone the area set came from, for the UI only; 0 once edited by hand. int32 zone_id = 12; } message PresetTarget { string path = 1; Target target = 2; } message PresetEncounter { string path = 1; repeated PresetTarget targets = 2; } message ItemRandomSuffix { int32 id = 1; string name = 2; repeated double stats = 3; repeated double pseudo_stats = 4; // Indexed by PseudoStat; flat, not scaled by the item's random property points. bool reduced_caster_dps = 5; // A weapon with the suffix deals the reduced_caster_weapon_damage of its scaling options. } message ItemSpec { int32 id = 1; int32 random_suffix = 2; int32 enchant = 3; reserved 4, 5; reserved "gems", "meta_gem_disabled"; } message EquipmentSpec { repeated ItemSpec items = 1; } enum ConsumableType { ConsumableTypeUnknown = 0; ConsumableTypePotion = 1; ConsumableTypeFlask = 2; ConsumableTypeFood = 3; ConsumableTypeScroll = 4; ConsumableTypeExplosive = 5; // A sharpening stone, weightstone, oil or shield coating: its spell casts the temporary enchant Effect 54. ConsumableTypeImbue = 6; ConsumableTypeOther = 7; ConsumableTypeHerb = 8; ConsumableTypeBandage = 9; ConsumableTypeDevice = 10; // An Elixir-subclass item that shares no potion, conjured, food or drink category. ConsumableTypeElixir = 11; // A healthstone, mana gem, rune or tea: its on-use shares conjured category 1153. ConsumableTypeConjured = 12; // A poison, firestone, spellstone or Scroll of Imbue: its spell casts the imbue Effect 360, which a // weapon carries beside an Effect 54 stone or oil. ConsumableTypeWeaponImbue = 13; } // What a potion does, which picks the APL placeholder it fills. A potion can be of several classes. enum PotionClass { PotionClassUnknown = 0; PotionClassResource = 1; // Restores mana, rage or energy, or buffs only mana regen. PotionClassDefensive = 2; // Heals, absorbs, or buffs armor, avoidance, health or a resistance. PotionClassOffensive = 3; // Buffs anything else, such as spell power or attack power, or deals damage. } // Extra enum for describing which items are eligible for an enchant, when // ItemType alone is not enough. enum EnchantType { EnchantTypeNormal = 0; EnchantTypeTwoHand = 1; EnchantTypeShield = 2; EnchantTypeKit = 3; EnchantTypeStaff = 4; EnchantTypeOffHand = 5; } // Whether an enchant's effect is temporary, and what it does when it fires. A temporary effect // (a proc) cannot be valued by EP, so the optimizer leaves a slot that can take one the sim // implements to the sim (a Survival proc only for a tank, unless an enchant preset lists it). enum EnchantProcKind { EnchantProcKindNone = 0; EnchantProcKindCombat = 1; // Any proc that is not survival only: damage, a stat buff, a debuff, a resource restore. EnchantProcKindSurvival = 2; // Every effect of the proc absorbs, heals or adds armor. } message UnitReference { enum Type { Unknown = 0; Player = 1; Target = 2; Pet = 3; Self = 4; CurrentTarget = 5; AllPlayers = 6; AllTargets = 7; PreviousTarget = 8; NextTarget = 9; } // The type of unit being referenced. Type type = 2; // Index of the player/target/pet/etc depending on value of type. int32 index = 3; // Reference to the owner, only used iff this is a pet. UnitReference owner = 4; } // ID for actions that aren't spells or items. enum OtherAction { OtherActionNone = 0; OtherActionWait = 1; OtherActionManaRegen = 2; OtherActionEnergyRegen = 5; OtherActionFocusRegen = 6; OtherActionManaGain = 10; // For threat generated from mana gains. OtherActionRageGain = 11; // For threat generated from rage gains. OtherActionAttack = 3; // A white hit, can be main hand or off hand. OtherActionShoot = 4; // Default shoot action using a wand/bow/gun. OtherActionPet = 7; // Represents a grouping of all pet actions. Only used by the UI. OtherActionRefund = 8; // Refund of a resource like Energy or Rage, when the ability didn't land. OtherActionDamageTaken = 9; // Indicates damage taken; used for rage gen. OtherActionHealingModel = 12; // Indicates healing received from healing model. reserved 17; reserved "OtherActionPotion"; OtherActionMove = 20; // Used by movement to be able to show it in timeline OtherActionPrepull = 21; // Indicated prepull specific action OtherActionEncounterStart = 22; // Indicated resources gained or lost at the start of an encounter OtherActionItemSwap = 23; // Used by APL to show current swap set // Used by APL to refer to the potion the consumes pick for each PotionClass. OtherActionResourcePotion = 24; OtherActionDefensivePotion = 25; OtherActionOffensivePotion = 26; } message ActionID { // Identifies this action. oneof raw_id { int32 spell_id = 1; int32 item_id = 2; OtherAction other_id = 3; } // Distinguishes between different versions of the same action. // Currently the only use for this is Shaman Lightning Overload. int32 tag = 4; // Various ranks of spells int32 rank = 5; } // Custom options for a particular cooldown. message Cooldown { // Identifies the cooldown to which these settings will apply. ActionID id = 1; // Fixed times at which to use this cooldown. Each value corresponds to a usage, // e.g. first value is the first usage, second value is the second usage. // Any usages after the specified timings will occur as soon as possible, subject // to the ShouldActivate() condition. repeated double timings = 2; } message Cooldowns { repeated Cooldown cooldowns = 1; // % HP threshold, below which defensive cooldowns can be used. double hp_percent_for_defensives = 2; } message HealingModel { // Healing per second to apply. double hps = 1; // How often healing is applied. double cadence_seconds = 2; // Variation in the cadence. double cadence_variation = 4; // Fraction of each heal to model as an absorb shield. double absorb_frac = 5; // TMI burst window bin size int32 burst_window = 3; // % Inspiration buff uptime double inspiration_uptime = 6; } message CustomRotation { repeated CustomSpell spells = 1; } message CustomSpell { // This should usually be a spec-specific enum value. int32 spell = 1; // Desired cast rate for this spell. Not used by most custom rotations, this is // primarily for healers. double casts_per_minute = 2; } message ItemSwap { repeated ItemSpec items = 1; UnitStats prepull_bonus_stats = 2; } message Duration { double ms = 1; } enum RotationType { UnknownType = 0; SingleTarget = 1; Aoe = 3; Custom = 2; } message UUID { string value = 1; } // Values are expected to be in increasing order of severity enum LogLevel { Information = 0; Warning = 1; Error = 2; Undefined = -1; }