mr:necromancer_robe_item
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| mr:necromancer_robe_item [2026/02/27 12:01] – Fix broken links and update mr: namespace page Qwen Assistant | mr:necromancer_robe_item [2026/02/27 12:04] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Necromancer Robe Item - Code References ====== | ||
| + | |||
| + | ===== Java Classes ===== | ||
| + | Java implementation found: | ||
| + | * RemixedDungeon/ | ||
| + | |||
| + | Full Java class content: | ||
| + | <code java> | ||
| + | package com.nyrds.pixeldungeon.items.common.armor; | ||
| + | |||
| + | import com.nyrds.pixeldungeon.mechanics.NamedEntityKind; | ||
| + | import com.nyrds.pixeldungeon.ml.R; | ||
| + | import com.nyrds.platform.util.StringsManager; | ||
| + | import com.watabou.pixeldungeon.actors.Char; | ||
| + | import com.watabou.pixeldungeon.actors.hero.HeroClass; | ||
| + | import com.watabou.pixeldungeon.items.armor.Armor; | ||
| + | import com.watabou.pixeldungeon.utils.GLog; | ||
| + | |||
| + | import org.jetbrains.annotations.NotNull; | ||
| + | |||
| + | public class NecromancerRobe extends Armor { | ||
| + | |||
| + | public String desc() { | ||
| + | return info2; | ||
| + | } | ||
| + | |||
| + | public NecromancerRobe() { | ||
| + | super(1); | ||
| + | image = 23; | ||
| + | } | ||
| + | |||
| + | @Override | ||
| + | public boolean doEquip(@NotNull Char hero) { | ||
| + | if (hero.getHeroClass() == HeroClass.NECROMANCER) { | ||
| + | return super.doEquip(hero); | ||
| + | } else { | ||
| + | GLog.w(StringsManager.getVar(R.string.NecromancerArmor_NotNecromancer)); | ||
| + | return false; | ||
| + | } | ||
| + | } | ||
| + | |||
| + | @Override | ||
| + | public void charDied(Char victim, NamedEntityKind cause) { | ||
| + | getOwner().accumulateSkillPoints(1); | ||
| + | } | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | Key properties from Java code: | ||
| + | * **Base class**: Armor (extends Armor with tier 1) | ||
| + | * **Armor tier**: 1 (super(1) in constructor) | ||
| + | * **Image index**: 23 | ||
| + | * **Class restriction**: | ||
| + | * **Special ability**: Accumulates 1 skill point when a character dies | ||
| + | * **Description**: | ||
| + | |||
| + | ===== JSON Configuration ===== | ||
| + | Entity is referenced in JSON configuration files: | ||
| + | * RemixedDungeon/ | ||
| + | * RemixedDungeon/ | ||
| + | * RemixedDungeon/ | ||
| + | |||
| + | JSON usage example (initHeroes.json): | ||
| + | <code json> | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | } | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | ===== String Resources ===== | ||
| + | English string resources (values/ | ||
| + | <code xml> | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | </ | ||
| + | |||
| + | Russian string resources (values-ru/ | ||
| + | <code xml> | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | </ | ||
| + | |||
| + | Other available localizations: | ||
| + | * German (values-de/ | ||
| + | * Spanish (values-es/ | ||
| + | * Greek (values-el/ | ||
| + | * And other supported languages | ||
| + | |||
| + | ===== Lua Scripts ===== | ||
| + | This entity is implemented in Java, no Lua script exists | ||
| + | |||
| + | ===== Game Mechanics ===== | ||
| + | * **Equipment restriction**: | ||
| + | * **Soul accumulation**: | ||
| + | * **Starting item**: Provided as starting equipment for Necromancer class | ||
| + | * **Armor tier**: Tier 1 (lowest armor tier) | ||
| + | * **Visual**: Uses image index 23 from armor sprite sheet | ||
| + | |||
| + | ===== Related Code References ===== | ||
| + | * Base Armor class: RemixedDungeon/ | ||
| + | * Hero class check: RemixedDungeon/ | ||
| + | * Item factory registration: | ||
| + | * NamedEntityKind interface: RemixedDungeon/ | ||
| + | |||
| + | {{tag> rpd items armor necromancer class_specific tier1}} | ||
mr/necromancer_robe_item.txt · Last modified: by 127.0.0.1
