public Item identify() { levelKnown = true; cursedKnown = true; if (Dungeon.hero != null && Dungeon.hero.isAlive()) { Catalog.setSeen(getClass()); } return this; }
public Item identify() { levelKnown = true; cursedKnown = true; if (Dungeon.hero != null && Dungeon.hero.isAlive()) { Catalog.setSeen(getClass()); } return this; }
public void setKnown() { if (!anonymous) { if (!isKnown()) { handler.know(this); } if (Dungeon.hero.isAlive()) { Catalog.setSeen(getClass()); } } }
public void setKnown() { if (!anonymous) { if (!isKnown()) { handler.know(this); } if (Dungeon.hero.isAlive()) { Catalog.setSeen(getClass()); } } }
public void setKnown() { if (!anonymous) { if (!isKnown()) { handler.know(this); updateQuickslot(); } if (Dungeon.hero.isAlive()) { Catalog.setSeen(getClass()); } } }
public void setKnown() { if (!anonymous) { if (!isKnown()) { handler.know(this); updateQuickslot(); } if (Dungeon.hero.isAlive()) { Catalog.setSeen(getClass()); } } }
public void setKnown() { if (!anonymous) { if (!isKnown()) { handler.know(this); updateQuickslot(); Potion p = Dungeon.hero.belongings.getItem(getClass()); if (p != null) p.setAction(); if (ExoticPotion.regToExo.get(getClass()) != null) { p = Dungeon.hero.belongings.getItem(ExoticPotion.regToExo.get(getClass())); if (p != null) p.setAction(); } } if (Dungeon.hero.isAlive()) { Catalog.setSeen(getClass()); } } }
public void setKnown() { if (!anonymous) { if (!isKnown()) { handler.know(this); updateQuickslot(); Potion p = Dungeon.hero.belongings.getItem(getClass()); if (p != null) p.setAction(); if (ExoticPotion.regToExo.get(getClass()) != null) { p = Dungeon.hero.belongings.getItem(ExoticPotion.regToExo.get(getClass())); if (p != null) p.setAction(); } } if (Dungeon.hero.isAlive()) { Catalog.setSeen(getClass()); } } }
@Override protected Item affectItem( Item item, int pos ) { if (item instanceof MagesStaff) { item = changeStaff( (MagesStaff)item ); } else if (item instanceof MeleeWeapon) { item = changeWeapon( (MeleeWeapon)item ); } else if (item instanceof Scroll) { item = changeScroll( (Scroll)item ); } else if (item instanceof Potion) { item = changePotion( (Potion)item ); } else if (item instanceof Ring) { item = changeRing( (Ring)item ); } else if (item instanceof Wand) { item = changeWand( (Wand)item ); } else if (item instanceof Plant.Seed) { item = changeSeed( (Plant.Seed)item ); } else if (item instanceof Artifact) { item = changeArtifact( (Artifact)item ); } else { item = null; } //incase a never-seen item pops out if (item != null&& item.isIdentified()){ Catalog.setSeen(item.getClass()); } return item; }
@Override protected Item affectItem( Item item, int pos ) { if (item instanceof MagesStaff) { item = changeStaff( (MagesStaff)item ); } else if (item instanceof MeleeWeapon) { item = changeWeapon( (MeleeWeapon)item ); } else if (item instanceof Scroll) { item = changeScroll( (Scroll)item ); } else if (item instanceof Potion) { item = changePotion( (Potion)item ); } else if (item instanceof Ring) { item = changeRing( (Ring)item ); } else if (item instanceof Wand) { item = changeWand( (Wand)item ); } else if (item instanceof Plant.Seed) { item = changeSeed( (Plant.Seed)item ); } else if (item instanceof Artifact) { item = changeArtifact( (Artifact)item ); } else { item = null; } //incase a never-seen item pops out if (item != null&& item.isIdentified()){ Catalog.setSeen(item.getClass()); } return item; }
Catalog.setSeen(result.getClass());
Catalog.setSeen(result.getClass());