Table of Contents

Necromancer Robe Item - Code References

Necromancer Robe

Java Classes

Java implementation found:

Full Java class content:

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:

JSON Configuration

Entity is referenced in JSON configuration files:

JSON usage example (initHeroes.json):

"NECROMANCER": {
  "armor": {
    "kind": "NecromancerRobe",
    "identified": true
  }
}

String Resources

English string resources (values/strings_all.xml):

<string name="NecromancerRobe_Name">necromancer robe</string>
<string name="NecromancerRobe_Info">This robe will allow the Necromancer to summon a Deathling at a cost of 5 souls. The Deathling is an undead minion that grows stronger alongside their master.</string>
<string name="NecromancerRobe_Info2">This robe is imbued with dark magic and will allow the Necromancer to consume souls of fallen monsters.</string>
<string name="NecromancerRobe_PetLimitReached">Necromancy: summon limit reached (Current max: %d)!</string>

Russian string resources (values-ru/strings_all.xml):

<string name="NecromancerRobe_Name">мантия некроманта</string>
<string name="NecromancerRobe_Info">Эта мантия позволяет некроманту призвать Смертника за 5 душ. Смертник - это нежить-миньон, который становится сильнее вместе со своим хозяином.</string>
<string name="NecromancerRobe_Info2">Эта мантия наполнена темной магией и позволит некроманту поглощать души павших монстров.</string>

Other available localizations:

Lua Scripts

This entity is implemented in Java, no Lua script exists

Game Mechanics