Template:BonusDef: Difference between revisions

From Heroes of Might and Magic: Olden Era Official Wiki
obelisk-bot: uploading initial Cargo templates
obelisk-bot: Pushing translation table rework
 
Line 1: Line 1:
<noinclude>
<noinclude>
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 <code>parent_type</code> + <code>parent_id</code> discriminator columns.
A unified Cargo table for bonus effects across multiple parent entity types. Hero specializations, hero sub-classes, artifacts, item-set tiers, and faction laws all share one Bonus table with <code>parent_type</code> + <code>parent_id</code> discriminator columns.


The bot emits each row inline on the parent entity's wiki page. There are no individual <code>Data:Bonus/…</code> pages.
The bot emits each row inline on the parent entity's wiki page. There are no individual <code>Data:Bonus/…</code> pages.

Latest revision as of 20:47, 14 May 2026

A unified Cargo table for bonus effects across multiple parent entity types. 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_type identifies the parent: hero_specialization, hero_sub_class, artifact, item_set_tier, law_level.
  • type is the effect category (~13 distinct values; heroStat, unitStat, heroBattleAbility most common).
  • parameters is 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.