Documentation
¶
Overview ¶
Package overrides holds the numbers the spelldata store carries that the game files do not state. Each row names the spell, the field, the value and where the value comes from, and the generator refuses to run when the game files start stating one themselves.
A leaf package on purpose: tools/database imports it, it imports nothing back, and the folder it shares with the SQL overrides is read for *.sql alone.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var AreaBonuses = []AreaBonus{ { SpellID: 1249113, Groups: []int32{9203}, Multiplier: 2, DurationMultiplier: 1, Reason: "Molten Fury: 'This effect is doubled in Volcanic areas'; no companion row, and 9203 is the Blackrock group no spell requires", Source: "tooltip", }, { SpellID: 1249110, Groups: []int32{9164}, Multiplier: 2, DurationMultiplier: 1, Reason: "Chthonic Power: 'This effect is doubled in Snowy areas'; no companion row", Source: "tooltip", }, { SpellID: 1287571, Groups: []int32{9161}, Multiplier: 2, DurationMultiplier: 2, Reason: "Monkey Business: 'Effect and duration are doubled in Forest and Grassland areas'; no companion row", Source: "tooltip", }, { SpellID: 1291105, Groups: []int32{9326}, Multiplier: 2, DurationMultiplier: 1, Reason: "Stabilized: 'This effect is doubled in Strongholds and Cities'; no companion row", Source: "tooltip", }, { SpellID: 1293820, Groups: []int32{9326}, Multiplier: 2, DurationMultiplier: 1, Reason: "Toy Soldier: 'This effect is doubled in Strongholds and Cities'; no companion row", Source: "tooltip", }, { SpellID: 1321558, Groups: []int32{9163, 9202}, Multiplier: 2, DurationMultiplier: 1, Reason: "Siphon the Grave (Rotmender's Raiment 4pc): 'Restores twice as much Mana in Haunted and Wasteland areas'; no companion row", Source: "tooltip", }, { SpellID: 15604, Groups: []int32{9165}, Multiplier: 2, DurationMultiplier: 1, Reason: "Second Wind: 'This effect is doubled in Mountainous areas'; no companion row", Source: "tooltip", }, { SpellID: 24865, Groups: []int32{9163, 9202}, Multiplier: 2, DurationMultiplier: 1, Reason: "Sanctified Orb: 'This effect is doubled in Wasteland and Haunted areas'; no companion row", Source: "tooltip", }, { SpellID: 1287842, Groups: []int32{9326}, Multiplier: 2, DurationMultiplier: 1, Reason: "Bastion of Tyranny (Mark of Tyranny): 'This effect is doubled in Strongholds and Cities'; no companion row", Source: "tooltip", }, }
var EnchantProcs = []EnchantProc{ { EnchantID: 803, SpellID: 13897, Kind: RatePPM, Value: 6, Reason: "Fiery Weapon: 13897 states no proc chance, and the tooltip says 'often'", Source: "EV-0130", }, { EnchantID: 1900, SpellID: 20007, Kind: RatePPM, Value: 1, Reason: "Crusader: 20007 states no proc chance, and 458112's 100 is the sentinel beside 'often'; measured on the enchanted hands' landed melee hits", Source: "EV-0135", }, { EnchantID: 1898, SpellID: 20004, Kind: RatePPM, Value: 4, Reason: "Lifestealing: 20004 states no proc chance, and the tooltip says 'often'; fitted over all hits of " + "one paladin, the seal hits rolling as the sim's do; a log fit not yet validated (EV-0228)", Source: "observed", }, { EnchantID: 8217, SpellID: 1248806, Kind: RateChance, Value: 0.08, Reason: "Revelation: 1248806's 100 is the sentinel; the tooltip says the chance is diminished as the " + "wearer's critical strike chance increases, and states no number; the rate is the owner's round " + "figure from logs (EV-0129)", Source: "observed", }, }
var ExtraSpells = []Extra{
{SpellID: 16979, Reason: "Bear form Feral Charge", Source: "game files"},
{SpellID: 414924, Reason: "Cat form Feral Charge", Source: "game files"},
{SpellID: 21178, Reason: "Bear Form (Passive2), the bear forms' threat; neither form's row names it", Source: "Spell 21178"},
{SpellID: 1328829, Reason: "Poised, the druid's Feral Combat passive; its subtext reads Passive, not Rank N, and its buff 1328827 follows through the $1328827s1 token", Source: "Spell 1328829"},
{SpellID: 414647, Reason: "Lacerate's weapon hit, which every rank casts by script; no row links it to the ranks", Source: "EV-0033"},
{SpellID: 1293697, Reason: "Demonic Brand's Shadow damage when a demon consumes the brand; nothing links it to the talent", Source: "Spell 1293697 description"},
{SpellID: 1293698, Reason: "Demonic Brand's Fire damage when a demon consumes the brand; nothing links it to the talent", Source: "Spell 1293698 description"},
{SpellID: 1328570, Reason: "Holy Binding's self heal; nothing links it to the talent", Source: "Spell 1328570"},
{SpellID: 1249755, Reason: "Summoning Disorientation, a 6 sec stun; no skill line row reaches it and no summon row triggers it", Source: "Spell 1249755"},
{SpellID: 1328825, Reason: "Poised, the rogue passive; its subtext reads Passive, so no ladder names it", Source: "Spell 1328825"},
{SpellID: 1248808, Reason: "Revelation, the mage buff of enchant 8217", Source: "owner decision"},
{SpellID: 1323377, Reason: "Revelation, the priest buff of enchant 8217", Source: "owner decision"},
{SpellID: 1323392, Reason: "Revelation, the warlock buff of enchant 8217", Source: "owner decision"},
{SpellID: 1323400, Reason: "Revelation, the druid buff of enchant 8217", Source: "owner decision"},
{SpellID: 1323410, Reason: "Revelation, the hunter buff of enchant 8217", Source: "owner decision"},
{SpellID: 1323418, Reason: "Revelation, the shaman buff of enchant 8217", Source: "owner decision"},
{SpellID: 1323419, Reason: "Revelation, the paladin buff of enchant 8217", Source: "owner decision"},
{SpellID: 5019, Reason: "Shoot, the wand autorepeat of the mage, priest and warlock", Source: "owner decision"},
{SpellID: 20871, Reason: "Rockbiter Weapon Proc, the threat of the shaman's Rockbiter Weapon", Source: "owner decision"},
{SpellID: 439440, Reason: "Windfury Weapon's extra attack, which the combat log reports each Windfury Weapon hit under; the rank's 16361 casts it by script, and no row links it to the imbue", Source: "EV-0012"},
{SpellID: 9591, Reason: "Acid Spit, cast by the Emerald Dragon Whelp (creature 8776) that Dragon's Call 13049 summons; a creature's spells are on the server, so no row links it", Source: "EV-0021"},
{SpellID: 16596, Reason: "Flames of Shahram, cast by Shahram (creature 10718) that Blackblade of Shahram 16602 summons", Source: "EV-0125"},
{SpellID: 16597, Reason: "Curse of Shahram, cast by Shahram (creature 10718) that Blackblade of Shahram 16602 summons", Source: "EV-0125"},
{SpellID: 16598, Reason: "Will of Shahram, cast by Shahram (creature 10718) that Blackblade of Shahram 16602 summons", Source: "EV-0125"},
{SpellID: 16599, Reason: "Blessing of Shahram, cast by Shahram (creature 10718) that Blackblade of Shahram 16602 summons", Source: "EV-0125"},
{SpellID: 16600, Reason: "Might of Shahram, cast by Shahram (creature 10718) that Blackblade of Shahram 16602 summons", Source: "EV-0125"},
{SpellID: 16601, Reason: "Fist of Shahram, cast by Shahram (creature 10718) that Blackblade of Shahram 16602 summons", Source: "EV-0125"},
{SpellID: 1311703, Reason: "Seal of Command's Echo for Unsealed Wrath; the talent's tooltip names only Echo of Fury", Source: "Spell 1311703"},
{SpellID: 1311704, Reason: "Seal of Righteousness's Echo for Unsealed Wrath; the talent's tooltip names only Echo of Fury", Source: "Spell 1311704"},
{SpellID: 1311705, Reason: "Seal of Justice's Echo for Unsealed Wrath; the talent's tooltip names only Echo of Fury", Source: "Spell 1311705"},
{SpellID: 1328198, Reason: "Seal of Light's Echo for Unsealed Wrath; the talent's tooltip names only Echo of Fury", Source: "Spell 1328198"},
{SpellID: 1328206, Reason: "Seal of Wisdom's Echo for Unsealed Wrath; the talent's tooltip names only Echo of Fury", Source: "Spell 1328206"},
{SpellID: 1259812, Reason: "Eureka!, the rogue row of the gnome racial", Source: "owner decision", SpellDataGroup: "racials"},
{SpellID: 1259813, Reason: "Eureka!, the warrior row of the gnome racial", Source: "owner decision", SpellDataGroup: "racials"},
{SpellID: 1259817, Reason: "Eureka!, the mage row of the gnome racial", Source: "owner decision", SpellDataGroup: "racials"},
{SpellID: 1259821, Reason: "Eureka!, the warlock row of the gnome racial", Source: "owner decision", SpellDataGroup: "racials"},
{SpellID: 1259823, Reason: "Eureka!, the priest row of the gnome racial", Source: "owner decision", SpellDataGroup: "racials"},
}
The spells the generator adds to the store's roots by hand.
var GearProcRates = []GearProcRate{ { Gear: GearItem, ID: 11684, Reason: "Ironfoe: 3%, or the column's 6% against Orcs (NewTargetScaledChanceManager)", Source: "EV-0119", }, { Gear: GearItem, ID: 13243, Reason: "Argent Defender: 0.5 ppm on the attacker's swing interval, or twice that when an Undead strikes (NewAttackerSwingPPMManager)", Source: "EV-0126", }, { Gear: GearItem, ID: 11302, Reason: "Uther's Strength: half 8397's 4% column, or all of it in Wasteland and Haunted areas", Source: "tooltip", }, { Gear: GearItem, ID: 19287, Reason: "Darkmoon Card: Heroism: the entry's 2 ppm, or twice that in Strongholds and Cities", Source: "vanilla-carryover", }, { Gear: GearItem, ID: 260205, Reason: "Highborne Research Tablet: 2.95 ppm on weapon hits on their weapon's speed and on spell hits on their cast time, 1.5 s at least; Thunder Clap never rolls it", Source: "EV-0131", }, { Gear: GearItem, ID: 280032, Reason: "Bolt's Charged Eyeball: the row's 15%, and one shock in four lands on the wearer, the owner's ruling", Source: "EV-0202", }, { Gear: GearSetBonus, ID: 1, Pieces: 4, Kind: RateChance, Rate: 0.072, Reason: "The Gladiator 4-piece: 7.2% per landed melee hit, from one wearer (EV-0166); 1301123 states none", Source: "observed", }, { Gear: GearSetBonus, ID: 123, Pieces: 3, Kind: RateChance, Rate: 0.107, Reason: "Bloodmail Regalia 3-piece: 10.7% per landed white swing or Windfury hit, from shaman wearers only (EV-0167); 1299740 states none", Source: "observed", }, { Gear: GearSetBonus, ID: 122, Pieces: 3, Kind: RateChance, Rate: 0.139, Reason: "Necropile Raiment 3-piece: 13.9% per landed harmful spell (EV-0168); 1299737 states none", Source: "observed", }, }
var HandTriggers = []HandTrigger{
{
Spell: 20230,
Triggers: 20240,
Reason: "Retaliation's dummy aura (aura 4) casts the counterattack 20240: same name, class set and " +
"icon, weapon damage with no base, a cost of 1 in SpellPower that is a tenth of a rage",
Source: "game-files-rows",
},
{
Spell: 1311074,
Triggers: 1311077,
Reason: "Sanctified Judgement's talent aura (two dummies) casts the mana refund 1311077: same name and icon, " +
"a mana energize whose tooltip reads Judging restores a portion of the Judged Seal's Mana cost",
Source: "game-files-rows",
},
{
Spell: 1310905,
Triggers: 1280353,
Replaces: 20924,
Reason: "Consecrated Ground's talent aura (a dummy) rides the mark Consecration's ground puts on the first 4 enemies " +
"inside it, 1280353: same name and class set, the bonus damage's dummy with its 0.042 coefficient and a " +
"Holy damage from caster mod whose points the server sets from the talent; the tooltip names the " +
"Consecration rank 20924 instead",
Source: "EV-0015",
},
{
Spell: 1323967,
Triggers: 1323969,
Reason: "Gore Drinker's talent aura (two dummies) applies the buff its tooltip describes: same name, class " +
"set and icon, 3 charges heard on melee attacks, and its aura 231 casts the heal 1323968",
Source: "game-files-rows",
},
{
Spell: 24574,
Triggers: 24575,
Reason: "Zandalarian Hero Badge's on-use Brittle Armor applies the stacking buff its tooltip describes: " +
"same name, 200 armor (A_MOD_ARMOR_NO_MODS) and 3 defense a stack, the 2000 and 30 of ten stacks, and " +
"the script effect 24590 of its proc takes a stack off per hit taken",
Source: "game-files-rows",
},
{
Spell: 16389,
Triggers: 16368,
Reason: "Flametongue Totem Proc is a dummy holding the base points, and the hit logs as 16368 " +
"Flametongue Attack: fire school damage with the magic defense type and no bonus coefficient",
Source: "EV-0013",
},
{
Spell: 408341,
Triggers: 408423,
Replaces: 8349,
Reason: "Fire Nova Rank 1 hits for 408423, the level 12 Fire Nova Rank 1 row, not the 8349 its tooltip reads",
Source: "EV-0014",
},
{
Spell: 408342,
Triggers: 408424,
Replaces: 8502,
Reason: "Fire Nova Rank 2 hits for 408424, the level 22 Fire Nova Rank 2 row, not the 8502 its tooltip reads",
Source: "EV-0014",
},
{
Spell: 408343,
Triggers: 408426,
Replaces: 8503,
Reason: "Fire Nova Rank 3 hits for 408426, the level 32 Fire Nova Rank 3 row, as ranks 1 and 2 hit for theirs",
Source: "EV-0014",
},
{
Spell: 408344,
Triggers: 408427,
Replaces: 11306,
Reason: "Fire Nova Rank 4 hits for 408427, the level 42 Fire Nova Rank 4 row, as ranks 1 and 2 hit for theirs",
Source: "EV-0014",
},
{
Spell: 408345,
Triggers: 408428,
Replaces: 11307,
Reason: "Fire Nova Rank 5 hits for 408428, the level 52 Fire Nova Rank 5 row, as ranks 1 and 2 hit for theirs",
Source: "EV-0014",
},
{
Spell: 1252526,
Triggers: 1252543,
Reason: "Caustic Smog Potion's cloud: 1252526's E_CREATE_AREATRIGGER (area trigger 39425) lasts 12 sec and " +
"puts 1252543 on the enemies inside it; the tooltip reads $1252543s1 Nature damage every $1252543t1 sec, " +
"and the potion's 1252525 names 1252543 among its tooltip references",
Source: "tooltip",
},
{
Spell: 1300435,
Triggers: 1300438,
Reason: "Moonshadow Stave's dummy aura casts Shadow 1300437 or Arcane 1300438 on each proc; the tooltip names only " +
"1300437 and reads Arcane or Shadow damage, and both hit for the item's procs",
Source: "EV-0115",
},
{
Spell: 1328544,
Triggers: 456544,
Reason: "Shieldsworn's talent aura (a cooldown modifier) makes Holy Strike strike with the shield, and the hit " +
"that deals the active Holy Shield's damage is 456544: Holy Shield's name, Holy school, class set and mask, " +
"a school damage with no base points and the 0.08 coefficient, spell level 30",
Source: "EV-0161",
},
{
Spell: 18652,
Triggers: 18653,
Reason: "Siphon Health's drain (one periodic damage) heals its caster through 18653 with every tick: same name " +
"and school, a heal on the caster with no base points, which the server sets from the drain's",
Source: "EV-0179",
},
}
The trigger edges the generator adds by hand to the store.
var NotGuardianSummons = map[int32]string{
12766: "Cloud of Chained Essence: an area trigger whose damage is its periodic aura 1300240, not a creature's",
17567: "Blood Parrot: a companion with no attack",
1294258: "Ward of Zum'rah: its zombie adds below 1 DPS, which the cane's own gear notice says (EV-0124)",
1306267: "Traveler's Mark: a sign that carries a message",
}
Item summons that are not guardians, by the spell whose E_SUMMON names the creature, each with why. The game files hold no SummonProperties table to tell a companion, a sign or an area effect from a creature that fights, so these stay out of item_guardians_auto_gen.go by hand. A totem, which summons into a totem slot, stays out with no entry.
var Spells = []Override{}/* 126 elements not displayed */
The procs whose rate the game files keep outside the spell data and that belong to the spell rather than to one weapon: a chance-on-hit weapon's rate is its own and lives in WeaponProcs. The ProcChance column reads the 100 or 101 sentinel, which the store would otherwise take for "fires on every hit", or the spell has no proc row at all.
var VersusBonuses = []VersusBonus{ { SpellID: 1293674, EffectIndex: 0, MobTypes: []proto.MobType{proto.MobType_MobTypeUndead}, Reason: "Enraging Light (Chain of the Scarlet Crusade 4pc): 'Deals $s1 times as much damage to Undead'", Source: "tooltip", }, { SpellID: 12731, EffectIndex: 1, Families: []proto.CreatureFamily{proto.CreatureFamily_CreatureFamilyEarthElemental}, Reason: "Strength of Stone: 'Deals $s2 times as much damage to Earth Elementals, Golems, and Titan-forged'", Source: "tooltip", }, { SpellID: 1302279, EffectIndex: 1, Families: []proto.CreatureFamily{proto.CreatureFamily_CreatureFamilyEarthElemental}, Reason: "Stoneshatter: 'Deals $s2 times as much damage to Earth Elementals, Golems, and Titan-forged'", Source: "tooltip", }, { SpellID: 1294794, EffectIndex: 0, Families: []proto.CreatureFamily{proto.CreatureFamily_CreatureFamilyEarthElemental}, Reason: "Fist of Stone: 'Restores $s1 times as much if attacking an Earth Elemental, Golem, or Titan-forged enemy'", Source: "tooltip", }, { SpellID: 1293568, EffectIndex: 1, Families: []proto.CreatureFamily{proto.CreatureFamily_CreatureFamilyPlant}, Reason: "Grass Killer: 'Deals $s2 times as much damage to Plants'", Source: "tooltip", }, { SpellID: 12257, EffectIndex: 1, Families: []proto.CreatureFamily{proto.CreatureFamily_CreatureFamilyPlant}, Reason: "Breath of Fire: 'Deals $s2 times as much damage to Plants'", Source: "tooltip", }, { SpellID: 17283, EffectIndex: 1, Families: []proto.CreatureFamily{proto.CreatureFamily_CreatureFamilyPlant}, Reason: "Smokey's Lighter: 'Deals $s2 times as much damage to Plants'", Source: "tooltip", }, { SpellID: 1295270, EffectIndex: 1, Families: []proto.CreatureFamily{proto.CreatureFamily_CreatureFamilyPlant}, Reason: "Prototype Pathcarver: 'Deals $s2 times as much damage to Plants'", Source: "tooltip", }, { SpellID: 1300782, EffectIndex: 1, Families: []proto.CreatureFamily{proto.CreatureFamily_CreatureFamilyPlant}, Reason: "Kindling Stave: 'Deals $s2 times as much damage to Plants'", Source: "tooltip", }, { SpellID: 1302344, EffectIndex: 1, Families: []proto.CreatureFamily{proto.CreatureFamily_CreatureFamilyPlant}, Reason: "Hedgecutter: 'Deals $s2 times as much damage to Plants'", Source: "tooltip", }, { SpellID: 1302166, EffectIndex: 1, Families: []proto.CreatureFamily{proto.CreatureFamily_CreatureFamilyAquatic}, Reason: "Waveslicer: 'Deals $s2 times as much damage to Aquatic enemies'", Source: "tooltip", }, { SpellID: 1293518, EffectIndex: 1, Families: []proto.CreatureFamily{proto.CreatureFamily_CreatureFamilyPlant}, Reason: "Grass Killer (Brush Cutter, Deadhead Blade): 'Deals $s2 times as much damage to Plants'", Source: "tooltip", }, { SpellID: 1299869, EffectIndex: 1, MobTypes: []proto.MobType{proto.MobType_MobTypeUndead}, Reason: "Corpse Eater (Eater of the Dead): 'Deals $s2 times as much damage to Undead'", Source: "tooltip", }, { SpellID: 1293787, EffectIndex: 1, MobTypes: []proto.MobType{proto.MobType_MobTypeUndead}, Families: []proto.CreatureFamily{proto.CreatureFamily_CreatureFamilySwine}, Reason: "Holy Cleaver (X'caliboar): 'Deals $s2 times as much damage to Undead and Swine'", Source: "tooltip", }, { SpellID: 1295039, EffectIndex: 2, MobTypes: []proto.MobType{proto.MobType_MobTypeBeast}, Families: []proto.CreatureFamily{proto.CreatureFamily_CreatureFamilySerpentine}, Reason: "Serpentbane: 'Inflicts $s3 times as much damage to Beast and Serpentine targets'", Source: "tooltip", }, { SpellID: 1318159, EffectIndex: 0, Families: []proto.CreatureFamily{proto.CreatureFamily_CreatureFamilyNaga, proto.CreatureFamily_CreatureFamilySatyr}, Reason: "Ancient Power: 'Deals $s1 times as much damage to Naga and Satyrs'", Source: "tooltip", }, { SpellID: 1311505, EffectIndex: 1, Families: []proto.CreatureFamily{proto.CreatureFamily_CreatureFamilyDinosaur}, Reason: "Grounded Electroshocks: 'Deals $s2 times as much damage to Dinosaurs'", Source: "tooltip", }, { SpellID: 14118, EffectIndex: 1, MobTypes: []proto.MobType{proto.MobType_MobTypeDragonkin}, Reason: "Rend: 'Deals $s2 times as much damage to Dragonkin'", Source: "tooltip", }, { SpellID: 1299631, EffectIndex: 1, MobTypes: []proto.MobType{proto.MobType_MobTypeUndead}, Reason: "Smite: 'Deals $s2 times as much damage to Undead'", Source: "tooltip", }, { SpellID: 16414, EffectIndex: 1, MobTypes: []proto.MobType{proto.MobType_MobTypeUndead}, Reason: "Drain Life: 'Deals $s2 times as much damage to Undead'", Source: "tooltip", }, { SpellID: 1325229, Multiplier: 3, MobTypes: []proto.MobType{proto.MobType_MobTypeUndead}, Reason: "Gloves of Holy Might: 'Damage is tripled against Undead'; neither 1325229 nor 1330855 states the 3", Source: "tooltip", }, { SpellID: 27656, EffectIndex: 1, Families: []proto.CreatureFamily{proto.CreatureFamily_CreatureFamilyOrc}, Reason: "Flame Lash: 'Deals 3 times as much damage to Orcs'", Source: "tooltip", }, { SpellID: 1295744, EffectIndex: 1, Families: []proto.CreatureFamily{proto.CreatureFamily_CreatureFamilyAquatic}, Reason: "Rot: 'Deals $s2 times as much damage to Aquatic enemies'", Source: "tooltip", }, { SpellID: 3742, EffectIndex: 1, Families: []proto.CreatureFamily{proto.CreatureFamily_CreatureFamilyAquatic}, Reason: "Gahz'rilla Fang: 'Deals $s2 times as much damage to Aquatic enemies'", Source: "tooltip", }, { SpellID: 23686, EffectIndex: 1, Families: []proto.CreatureFamily{proto.CreatureFamily_CreatureFamilyAquatic}, Reason: "Darkmoon Card: Maelstrom: 'Deals $s2 times as much damage to Aquatic enemies'", Source: "tooltip", }, { SpellID: 1294430, EffectIndex: 4, Families: []proto.CreatureFamily{proto.CreatureFamily_CreatureFamilyTroll}, Reason: "Rage of Sul'thraze: 'This additional Shadow damage deals $s5 times as much damage to Trolls'; Shadow Lash 1294431 deals it", Source: "tooltip", }, { SpellID: 1294339, EffectIndex: 1, Families: []proto.CreatureFamily{proto.CreatureFamily_CreatureFamilyTroll}, Reason: "Farraki Enforcement: 'Trolls take $s2 times as much damage and stun duration'", Source: "tooltip", }, { SpellID: 1300783, EffectIndex: 1, Families: []proto.CreatureFamily{proto.CreatureFamily_CreatureFamilyTroll, proto.CreatureFamily_CreatureFamilyOrc}, Reason: "Slaughter: 'Trolls and Orcs take $s2 times as much damage'", Source: "tooltip", }, { SpellID: 1317432, EffectIndex: 1, Families: []proto.CreatureFamily{proto.CreatureFamily_CreatureFamilyEarthElemental, proto.CreatureFamily_CreatureFamilyFireElemental, proto.CreatureFamily_CreatureFamilyMountainGiant}, Reason: "Forging Strike: 'Deals $s2 times as much damage to Earth Elementals, Fire Elementals, and Mountain Giants'", Source: "tooltip", }, { SpellID: 15600, EffectIndex: 1, Families: []proto.CreatureFamily{proto.CreatureFamily_CreatureFamilyDwarf}, Reason: "Hand of Justice: 'Attacks against Dwarves are $s2 times as likely to activate this effect'", Source: "tooltip", }, { SpellID: 1301046, EffectIndex: 1, Families: []proto.CreatureFamily{proto.CreatureFamily_CreatureFamilyOrc}, Reason: "Fury of Forgewright: 'Attacks against Orcs are $s2 times as likely to activate this effect'", Source: "tooltip", }, { SpellID: 17350, EffectIndex: 1, MobTypes: []proto.MobType{proto.MobType_MobTypeUndead}, Reason: "Argent Defender: 'Undead that strike you are $s2 times as likely to activate this effect'", Source: "tooltip", }, { SpellID: 1300240, EffectIndex: 1, Families: []proto.CreatureFamily{proto.CreatureFamily_CreatureFamilyTroll}, Reason: "Cloud of Chained Essence (Chained Essence of Eranikus): 'Deals $1300240s2 times as much damage to Trolls'", Source: "tooltip", }, { SpellID: 1318944, Multiplier: 2, Families: []proto.CreatureFamily{proto.CreatureFamily_CreatureFamilyOrc, proto.CreatureFamily_CreatureFamilyOgre}, Reason: "Blackhand's Breadth: 'This effect is doubled against Orcs and Ogres' on its crit chance; neither 1318944 nor 1318945 states the 2", Source: "tooltip", }, }
No CreatureFamily holds Golems or Titan-forged, which the tooltips of 12731, 1302279 and 1294794 name, so those rows count Earth Elementals alone.
var WeaponProcs = []WeaponProc{}/* 213 elements not displayed */
Each rate is a carry-over or an observed fit unless its Source is the docs/evidence id of a measurement on this server. A hotfix that adds back a weapon whose row was dropped needs the row restored from git history, or the database tests that name the item fail the Update Items run.
Functions ¶
func PPMFor ¶
The procs-per-minute rate stated for a spell, or zero where none is. The item database reads it for the same spells the store does: a container whose ProcChance column is the "rate lives elsewhere" sentinel has no rate anywhere else either.
func WeaponProcPPM ¶
The procs-per-minute rate stated for a weapon's chance-on-hit spell, or zero where none is.
Types ¶
type AreaBonus ¶
type AreaBonus struct {
SpellID int32
Groups []int32
Multiplier float64
DurationMultiplier float64
Reason string
Source string
}
Tooltip-only area bonuses ("doubled in X areas"). Groups are AreaGroup ids; any counts.
type EnchantProc ¶
type EnchantProc struct {
EnchantID int32
SpellID int32
Kind RateKind
Value float64
Reason string
Source string // "EV-<n>" (docs/evidence), "tbc-carryover", "vanilla-carryover", "observed", "estimate"
}
A permanent enchant's proc rate, which the game files keep outside the spell data: the slot's spell states no chance, or the 100 or 101 sentinel. The generator puts it onto the enchant's effect for the spell, where the sim reads it. Reason and Source weigh the same as an Override's.
func EnchantProcRate ¶
func EnchantProcRate(enchantID int32, spellID int32) *EnchantProc
The rate stated for an enchant's proc spell, or nil where none is.
type Extra ¶
type Extra struct {
SpellID int32
Reason string
Source string
SpellDataGroup string // "racials" puts the row in the racials spell data group of a partial update; empty follows its class family.
}
A spell the store carries although no class, item, enchant or set bonus reaches it. Reason and Source weigh the same as an Override's, and the generator refuses an entry without a reason.
type Field ¶
type Field uint8
Which field of the row the value belongs on. Every one of them names a rule the generator checks before it writes the value, so an override outlives its reason no longer than the next regeneration.
const ( // Procs per minute, onto Spell.RPPM. Fails when SpellAuraOptions.SpellProcsPerMinuteID stops // being zero on the row. PPM Field = iota + 1 // A flat threat bonus, onto Spell.FlatThreat. Fails when the spell gains an E_THREAT or // E_THREAT_ALL effect. FlatThreat // The attack-power coefficient of the direct effect, onto Effect.APCoef. Fails when the game files // state a BonusCoefficientFromAP there. APCoefDirect // The same for the ticking effect. APCoefPeriodic // The spell-power coefficient of the direct effect, onto Effect.SPCoef. Fails when the game files // state an EffectBonusCoefficient there. SPCoefDirect // A proc chance in percent, onto Spell.ProcChance. Fails when the tooltip states a chance of // its own through $h or $mN, because then the game files already say where the roll is. ProcChancePct // The aura's duration in milliseconds. Fails when the game files state a SpellDuration. DurationMs // The ProcHint bits the tooltip's wording did not yield, which Value carries as a bit set. It // replaces what the wording produced rather than adding to it. Hint // The stat mask of the A_MOD_TOTAL_STAT_PERCENTAGE effect, onto its second misc value, one bit // per stat index. Fails when the effect states either misc value itself, since 0 and 0 is // Strength by index. StatMask // The attack-power coefficient of the E_THREAT or E_THREAT_ALL effect, onto its Effect.APCoef. // Fails when the game files state a BonusCoefficientFromAP there. APCoefThreat // A flat threat bonus of Value times the spell's level, onto Spell.FlatThreat, for a rank that // carries a measured rank's share per spell level. Fails like FlatThreat, and beside a FlatThreat // override on the same spell. ThreatPerSpellLevel // The ICD between two procs in milliseconds, onto Spell.ICDMs. Fails when the game // files state a SpellAuraOptions.ProcCategoryRecovery. ICDMs // The first word of the proc effect's class mask, onto its Effect.ClassFlags, for a mask the game // files state under a bit no spell of the family is filed under. Fails when the effect states // the same word itself. ProcClassMask )
type GearProcRate ¶
type GearProcRate struct {
Gear GearKind
ID int32 // The item id, the enchant effect id or the set id.
Pieces int32 // The set bonus's piece count; 0 on an item or an enchant.
Kind RateKind // 0 where the gear states no single rate.
Rate float64 // Procs per minute, or a chance from 0 to 1.
Reason string
Source string // "EV-<n>" (docs/evidence), "tooltip", "tbc-carryover", "vanilla-carryover" or "observed"; empty only with no Kind.
}
The rate the gear tab shows for hand-written gear whose code rolls something its rows do not state: it scales the chance by target type, halves it by area, adds a flat chance, prices spell hits on their cast time or splits the procs. The generator reads the gear's rate from its proc rows, and a row here replaces it. With no Kind the gear states no single rate and shows none; with one it shows Rate, though gear listed unvalidated or missing its effect still shows none. Only the generator reads this table; the sim rolls what its code rolls. Reason and Source weigh the same as an Override's.
type HandTrigger ¶
type HandTrigger struct {
Spell int32
Triggers int32
Replaces int32 // A $<id> the tooltip names in place of Triggers, which the family's triggered ladder leaves out; 0 for none.
Reason string
Source string
}
A spell a server-side handler casts off another, which no effect edge, $<id> token or skill-line row names. Reason and Source weigh the same as an Override's, and the generator refuses an entry without a reason.
type Override ¶
type Override struct {
SpellID int32
Field Field
Value float64
Reason string
Source string // "EV-<n>" (docs/evidence), "tbc-carryover", "vanilla-carryover", "observed", "tooltip", "owner decision", "estimate"
}
One hand-supplied value. Reason and Source are not documentation: they are what the next reader has to weigh the number against, so the generator refuses a row without a reason.
type VersusBonus ¶
type VersusBonus struct {
SpellID int32
EffectIndex uint8 // The effect whose base points are the factor: the tooltip's $s<index+1>.
Multiplier float64 // A factor no effect states; 0 reads EffectIndex's base points.
MobTypes []proto.MobType
Families []proto.CreatureFamily
Reason string
Source string
}
A factor a spell deals, restores, procs or adds against some targets, which only its tooltip names ("Deals $s2 times as much damage to Plants", "Attacks against Dwarves are $s2 times as likely to activate this effect"). A target of any of the mob types or families counts.
type WeaponProc ¶
type WeaponProc struct {
ItemID int32
SpellID int32
PPM float64
Reason string
Source string // "EV-<n>" (docs/evidence), "tbc-carryover", "vanilla-carryover" or "observed"
}
A chance-on-hit item's procs per minute, which the game files keep outside the spell data: the spell's ProcChance column reads the 100 or 101 sentinel, or the spell has no proc row at all. The rate is the weapon's rather than the spell's, since two weapons can share a trigger spell at different rates, so it goes onto the item effect. Reason and Source weigh the same as an Override's; the database tests refuse a row without them, or one naming no effect of its item.