mr:body_armor_spell
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| mr:body_armor_spell [2026/04/12 00:41] – Fix wiki page accuracy issues and add missing armor upgrades documentation Qwen Assistant | mr:body_armor_spell [2026/04/12 00:44] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Body Armor Spell - Code References ====== | ||
| + | |||
| + | This page contains raw code references and configuration excerpts for the Body Armor spell entity. | ||
| + | |||
| + | ==== Entity Kind ==== | ||
| + | * **getEntityKind() value:** BodyArmor | ||
| + | |||
| + | ==== Java Implementation ==== | ||
| + | * **Implementation: | ||
| + | * **Usage:** Referenced in [[https:// | ||
| + | |||
| + | ==== JSON Configuration ==== | ||
| + | **Hero initialization: | ||
| + | <code json> | ||
| + | { | ||
| + | " | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | **Note:** No dedicated spell configuration file found in spellsDesc/ directory | ||
| + | |||
| + | ==== Lua Implementation ==== | ||
| + | * **Spell script:** [[https:// | ||
| + | - Defines spell properties: magicAffinity = " | ||
| + | - Cast function applies BodyArmor buff for duration: 15+10*caster: | ||
| + | - Sets buff level to caster' | ||
| + | - Triggers " | ||
| + | * **Buff script:** [[https:// | ||
| + | - drBonus function: armor bonus = (buff.target: | ||
| + | - speedMultiplier function: returns 0.85 (15% speed reduction) | ||
| + | - Buff detaches on act (single-use trigger) | ||
| + | |||
| + | ==== String Resources ==== | ||
| + | * **English: | ||
| + | <code xml> | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | </ | ||
| + | |||
| + | * **Russian: | ||
| + | <code xml> | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | </ | ||
| + | |||
| + | ==== Related Entities ==== | ||
| + | * **Buff:** BodyArmorBuff - The buff applied when spell is cast | ||
| + | * **Implementation Note:** Spell and buff share the same entity kind name | ||
mr/body_armor_spell.txt · Last modified: by 127.0.0.1
