mr:assasin_armor_item
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| mr:assasin_armor_item [2026/08/31 17:45] – Wiki maintenance: Fix broken links and fill stub mr page Wiki Maintenance | mr:assasin_armor_item [2026/08/31 17:46] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Assasin Armor Item - Code References ====== | ||
| + | |||
| + | {{ rpd: | ||
| + | |||
| + | ===== Java Classes ===== | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | |||
| + | ===== Class Implementation Details ===== | ||
| + | <code java> | ||
| + | package com.watabou.pixeldungeon.items.armor; | ||
| + | |||
| + | import com.nyrds.pixeldungeon.ml.R; | ||
| + | import com.nyrds.platform.util.StringsManager; | ||
| + | import com.watabou.pixeldungeon.actors.Char; | ||
| + | import com.watabou.pixeldungeon.actors.hero.HeroSubClass; | ||
| + | import com.watabou.pixeldungeon.utils.GLog; | ||
| + | |||
| + | import org.jetbrains.annotations.NotNull; | ||
| + | |||
| + | public class AssasinArmor extends RogueArmor { | ||
| + | |||
| + | { | ||
| + | name = StringsManager.getVar(R.string.RogueArmor_Name); | ||
| + | image = 10; | ||
| + | } | ||
| + | |||
| + | @Override | ||
| + | public boolean doEquip(@NotNull Char hero ) { | ||
| + | if (hero.getSubClass() == HeroSubClass.ASSASSIN) { | ||
| + | return super.doEquip( hero ); | ||
| + | } else { | ||
| + | GLog.w(StringsManager.getVar(R.string.RogueArmor_NotRogue)); | ||
| + | return false; | ||
| + | } | ||
| + | } | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | ===== Key Properties ===== | ||
| + | * **Image ID**: 10 (sprite index in armor atlas) | ||
| + | * **Name Source**: R.string.RogueArmor_Name (shared with parent RogueArmor) | ||
| + | * **Warning Message**: R.string.RogueArmor_NotRogue (shown when non-Assassin tries to equip) | ||
| + | * **Equipment Check**: doEquip() method validates HeroSubClass.ASSASSIN before equipping | ||
| + | * **Restriction**: | ||
| + | * **Inherits From**: RogueArmor → ClassArmor → Armor (gets smoke bomb special ability) | ||
| + | * **Special Ability Source**: Inherited " | ||
| + | |||
| + | ===== JSON Configuration ===== | ||
| + | This entity is implemented in Java, no JSON configuration exists. | ||
| + | |||
| + | ===== String Resources ===== | ||
| + | <code xml> | ||
| + | <!-- From values/ | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | <!-- Related subclass strings --> | ||
| + | <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 (ClassArmor.upgrade) | ||
| + | * Equipment restriction enforced in doEquip() method | ||
| + | * Inherits smoke bomb special ability from RogueArmor | ||
| + | * Part of the Rogue class mastery system | ||
| + | * Only equippable by heroes with HeroSubClass.ASSASSIN | ||
| + | |||
| + | {{tag> rpd items armor mr}} | ||
mr/assasin_armor_item.txt · Last modified: by 127.0.0.1
