mr:elf_affinity
Differences
This shows you the differences between two versions of the page.
| mr:elf_affinity [2025/12/27 17:25] – Add machine-readable data page for elf_affinity mike | mr:elf_affinity [2025/12/27 17:29] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Elf Affinity - Code References ====== | ||
| + | ===== Entity Kind ===== | ||
| + | elf_affinity | ||
| + | |||
| + | ===== Java Classes ===== | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | |||
| + | ===== JSON Configuration ===== | ||
| + | * [[https:// | ||
| + | |||
| + | ===== String Resources ===== | ||
| + | (No specific string resources for " | ||
| + | |||
| + | ===== Lua Scripts ===== | ||
| + | * Various spell scripts in RemixedDungeon/ | ||
| + | |||
| + | ===== Code Implementation ===== | ||
| + | In HeroClass.java: | ||
| + | * private String magicAffinity = Utils.EMPTY_STRING; | ||
| + | * getMagicAffinity() and setMagicAffinity() methods (auto-generated via annotations) | ||
| + | * When initializing hero class stats, magic affinity is set from JSON: hero.getHeroClass().setMagicAffinity(classDesc.optString(" | ||
| + | |||
| + | In SpellHelper.java: | ||
| + | * affinityToIcon map includes: affinityToIcon.put(" | ||
| + | * iconIdByAffinity() method returns icon ID based on hero's magic affinity | ||
| + | |||
| + | ===== Affinity System Mechanics ===== | ||
| + | * Magic affinities determine which spells are displayed with appropriate icons in spell selection | ||
| + | * Each hero class can have a default magic affinity | ||
| + | * Spell classes define their magic affinity which determines which hero classes they' | ||
| + | * The spell system checks hero.getHeroClass().getMagicAffinity() to determine which spells to show | ||
mr/elf_affinity.txt · Last modified: by 127.0.0.1
