mr:shaman_subclass
Differences
This shows you the differences between two versions of the page.
| mr:shaman_subclass [2026/09/06 06:29] – Fix red links: add mr:shaman_subclass, mr:wnd_priest, and pt:rpd:prison_level pages Wiki Maintenance | mr:shaman_subclass [2026/09/06 06:33] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Shaman Subclass - Code References ====== | ||
| + | {{ rpd: | ||
| + | |||
| + | ==== Entity Information ==== | ||
| + | * **Entity Kind:** ShamanSubclass | ||
| + | * **Type:** subclass | ||
| + | * **Namespace: | ||
| + | * **Hero Class:** ELF | ||
| + | * **Armor Class:** ShamanArmor | ||
| + | |||
| + | ==== Java Classes ==== | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | |||
| + | ==== Code Implementation ==== | ||
| + | <code java> | ||
| + | // File: RemixedDungeon/ | ||
| + | public enum HeroSubClass implements CharModifier { | ||
| + | // ... | ||
| + | SHAMAN(R.string.HeroSubClass_NameShaman, | ||
| + | // ... | ||
| + | | ||
| + | @Override | ||
| + | public int attackProc(Char attacker, Char defender, int damage) { | ||
| + | if (this == SHAMAN && attacker.getHero() != null) { | ||
| + | Item weapon = attacker.getBelongings().weapon; | ||
| + | if (weapon instanceof Wand && ((Wand) weapon).affectTarget()) { | ||
| + | if (Random.Int(4) == 0) { // 25% chance | ||
| + | ((Wand) weapon).zapCell(defender.getPos(), | ||
| + | return damage; // Don't consume charge | ||
| + | } | ||
| + | } | ||
| + | } | ||
| + | return super.attackProc(attacker, | ||
| + | } | ||
| + | | ||
| + | @Override | ||
| + | public int dewBonus() { | ||
| + | if (this == SHAMAN) return 1; | ||
| + | return super.dewBonus(); | ||
| + | } | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | ==== Statistics ==== | ||
| + | * **Wand Zap Chance:** 25% (Random.Int(4) == 0) | ||
| + | * **Dew Bonus:** +1 | ||
| + | * **Armor Class:** ShamanArmor | ||
| + | * **Parent Class:** ELF | ||
| + | |||
| + | ==== Special Abilities ==== | ||
| + | * **Wand Melee:** Can use wands as melee weapons (implemented in Wand.java) | ||
| + | * **Wand Zap on Hit:** 25% chance to zap target with wand effect without consuming charge when attacking with wand equipped | ||
| + | * **Dew Bonus:** +1 dew for enhanced mana recovery | ||
| + | |||
| + | ==== String Resources ==== | ||
| + | * **Name**: R.string.HeroSubClass_NameShaman (" | ||
| + | * **Description**: | ||
| + | |||
| + | ==== String Resource Locations ==== | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | |||
| + | ==== Code References ==== | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | |||
| + | ==== Related mr Entities ==== | ||
| + | * [[mr: | ||
| + | * [[mr: | ||
| + | * [[mr: | ||
| + | |||
| + | ===== Unlocking ===== | ||
| + | The Shaman subclass can be unlocked by using a [[en: | ||
| + | |||
| + | {{tag> rpd subclasses machine_readable shaman elf wand melee}} | ||
mr/shaman_subclass.txt · Last modified: by 127.0.0.1
