Shaman Armor Item - Code References
Java Classes
Class Implementation Details
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/helmet)
Cover Hair: true (helmet covers hero's hair)
Restriction: Can only be equipped by heroes with SHAMAN subclass
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
<string name="ElfArmor_Name">[Name]</string>
<string name="ElfArmor_NotElf">[Warning message when non-Shaman tries to equip]</string>
Lua Scripts
This entity is implemented in Java, no Lua script exists.
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