Jump to content

Conversion: Difference between revisions

From OpenDominion
m 1 revision imported
ODWikiBot (talk | contribs)
Update conversion formula from Round 50 source
 
(3 intermediate revisions by one other user not shown)
Line 1: Line 1:
'''Conversion''' is an ability of some [[Undead]], [[Spirit]], and [[Lycanthrope]] units, whereby some enemy casualties are converted into your units when you successfully [[invade]] a target.
'''Conversion''' is an invasion mechanic that lets specific units or spells convert enemy peasants or units on successful invasions.


== Formula ==
== Standard Unit Conversion ==


The standard formula for conversion is:
Standard unit conversion is based on the units sent and the target's defensive power. Oversending beyond the units needed to break the target does not increase standard conversions.


<code>min(Converting Units * 6%, Defensive Casualties * 1.65) * Land Ratio</code>
<code>UnitsCounted = min(UnitsSent, ceil(TargetDP / (UnitOP * OffensiveModifier)))</code>


With Parasitic Hunger cast, the formula is changed to:
<code>Conversions = floor(UnitsCounted * ConversionRate * ConversionMultiplier * RangeModifier)</code>


<code>min(Converting Units * 9%, Defensive Casualties * 1.65) * Land Ratio</code>
At 75% range and above, RangeModifier is 1. Below 75% range, RangeModifier is:


Land Ratio is <code>Defender Size / Attacker Size</code>.
<code>1.25 * LandRatio^2</code>


Since it is limited by the number of [[casualties]] suffered by the defender, attacking immortal units will not yield any conversions.
LandRatio is capped at 1. Conversion-rate spells and perks can modify ConversionMultiplier. Some spells and unit perks use special conversion or upgrade paths rather than this standard unit-conversion formula.
 
When multiple standard conversion unit types are sent, target DP is reduced after each unit type is counted, so later conversion types only count against remaining target DP.
 
== See Also ==
* [[Invading]]
* [[Military]]

Latest revision as of 22:11, 1 July 2026

Conversion is an invasion mechanic that lets specific units or spells convert enemy peasants or units on successful invasions.

Standard Unit Conversion[edit]

Standard unit conversion is based on the units sent and the target's defensive power. Oversending beyond the units needed to break the target does not increase standard conversions.

UnitsCounted = min(UnitsSent, ceil(TargetDP / (UnitOP * OffensiveModifier)))

Conversions = floor(UnitsCounted * ConversionRate * ConversionMultiplier * RangeModifier)

At 75% range and above, RangeModifier is 1. Below 75% range, RangeModifier is:

1.25 * LandRatio^2

LandRatio is capped at 1. Conversion-rate spells and perks can modify ConversionMultiplier. Some spells and unit perks use special conversion or upgrade paths rather than this standard unit-conversion formula.

When multiple standard conversion unit types are sent, target DP is reduced after each unit type is counted, so later conversion types only count against remaining target DP.

See Also[edit]