mr:shaman_armor_item
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| mr:shaman_armor_item [2026/02/28 19:47] – Wiki maintenance: Fix image references, update mr: pages, complete fan page Qwen Assistant | mr:shaman_armor_item [2026/02/28 19:49] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Shaman Armor Item - Code References ====== | ||
| + | |||
| + | ===== Java Classes ===== | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | |||
| + | ===== Class Implementation Details ===== | ||
| + | <code java> | ||
| + | public class ShamanArmor extends ElfArmor { | ||
| + | public ShamanArmor() { | ||
| + | name = StringsManager.getVar(R.string.ElfArmor_Name); | ||
| + | image = 19; | ||
| + | hasHelmet = true; | ||
| + | coverHair = true; | ||
| + | } | ||
| + | | ||
| + | @Override | ||
| + | public boolean doEquip(@NotNull Char hero) { | ||
| + | if (hero.getSubClass() == HeroSubClass.SHAMAN) { | ||
| + | return super.doEquip(hero); | ||
| + | } else { | ||
| + | GLog.w(StringsManager.getVar(R.string.ElfArmor_NotElf)); | ||
| + | return false; | ||
| + | } | ||
| + | } | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | ===== Key Properties ===== | ||
| + | * **Image ID**: 19 (sprite index in armor atlas) | ||
| + | * **Has Helmet**: true (armor includes a hood/ | ||
| + | * **Cover Hair**: true (helmet covers hero's hair) | ||
| + | * **Restriction**: | ||
| + | * **Name Source**: R.string.ElfArmor_Name (shared with ElfArmor) | ||
| + | * **Warning Message**: R.string.ElfArmor_NotElf (shown when non-Shaman tries to equip) | ||
| + | |||
| + | ===== JSON Configuration ===== | ||
| + | This entity is implemented in Java, no JSON configuration exists. | ||
| + | |||
| + | ===== String Resources ===== | ||
| + | <code xml> | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | </ | ||
| + | |||
| + | ===== Lua Scripts ===== | ||
| + | This entity is implemented in Java, no Lua script exists. | ||
| + | |||
| + | ===== Related Entities ===== | ||
| + | * [[mr: | ||
| + | * [[mr: | ||
| + | * [[mr: | ||
| + | * [[mr: | ||
| + | |||
| + | ===== Usage in Code ===== | ||
| + | * Created via Armor Kit transformation on any armor piece | ||
| + | * Equipment restriction enforced in doEquip() method | ||
| + | * Inherits all properties from base armor (level, upgrades, enchantments) | ||
| + | * Part of the Elf class mastery system | ||
mr/shaman_armor_item.txt · Last modified: by 127.0.0.1
