How to use
Release the scroll to spend DAMAGE_EXCHANGE_MANA_COST and add five stored conversions, up to DAMAGE_EXCHANGE_CAP.
Function
Converting incoming damage
When the caster next takes eligible damage, one stored conversion changes the incoming amount to DAMAGE_EXCHANGE_REDUCE_TO. It also restores DAMAGE_EXCHANGE_MANA_GAIN × floor(incoming damage seen by Damage Exchange) personal mana, capped by the caster's maximum mana.
Damage below 1 point restores no mana but still uses a conversion and is changed to the configured amount.
Charges
The GUI displays the number of stored conversions.
Setting DAMAGE_EXCHANGE_MANA_GAIN to 0 still reduces eligible damage and consumes a stored conversion, but awards no mana. The saved charge count is also one of the requirements for creating Replica.
Excluded damage
Damage from falling out of the world and the generic kill source bypasses Damage Exchange.
Configuration
| Setting | Default | Range | Effect |
|---|---|---|---|
DAMAGE_EXCHANGE_MANA_COSTmahoutsukai-server.tomlexchangedamage | 40 | 0–100000000 mana per cast | Mana cost of releasing a Damage Exchange scroll. |
DAMAGE_EXCHANGE_MANA_GAINmahoutsukai-server.tomlexchangedamage | 20 | 0–100000000 mana per whole incoming damage point | Mana restored for each whole point of the eligible hit's original incoming damage; zero still reduces damage and consumes a conversion but awards no mana. |
DAMAGE_EXCHANGE_REDUCE_TOmahoutsukai-server.tomlexchangedamage | 1 | 0–100000000 damage points | Replacement incoming damage amount when one stored Damage Exchange conversion activates. |
DAMAGE_EXCHANGE_CAPmahoutsukai-server.tomlexchangedamage | 5 | 0–1000000000 stored conversions | Maximum number of Damage Exchange conversions a player can store. |



