Template:BonusDef
From Heroes of Might and Magic: Olden Era Official Wiki
A unified Cargo table for bonus effects across multiple parent entity types. Per D-031: hero specializations, hero sub-classes, artifacts, item-set tiers, and faction laws all share one Bonus table with parent_type + parent_id discriminator columns.
The bot emits each row inline on the parent entity's wiki page. There are no individual Data:Bonus/… pages.
Schema
This template defines the table "Bonus". View table.
Field notes
- Primary key is
(parent_type, parent_id, ordinal). parent_typeidentifies the parent:hero_specialization,hero_sub_class,artifact,item_set_tier,law_level.typeis the effect category (~13 distinct values;heroStat,unitStat,heroBattleAbilitymost common).parametersis comma-joined, type-dependent.- Sparse fields vary by parent type.
action_area(law-bonus only) qualifies which side an effect applies to.fraction(law-bonus only) is a target-faction filter; column name preserves the source JSON's misspelling.


