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; } } }
This entity is implemented in Java, no JSON configuration exists.
<!-- From values/strings_all.xml - AssasinArmor reuses RogueArmor strings --> <string name="RogueArmor_Name">rogue garb</string> <string name="RogueArmor_NotRogue">Only rogues can use this armor!</string> <string name="RogueArmor_Desc">Wearing this dark garb, a rogue can perform a trick called \"smoke bomb\" (though no real explosives are used): he blinds enemies who can see him and jumps aside.</string> <string name="RogueArmor_ACSpecial">SMOKE BOMB</string> <!-- Related subclass strings --> <string name="HeroSubClass_NameAssa">assassin</string> <string name="HeroSubClass_DescAssa">When performing a surprise attack, the _Assassin_ inflicts additional damage to his target.</string>
This entity is implemented in Java, no Lua script exists.