v0.9.4: fixed minor errors in WndResurrect
This commit is contained in:
parent
6b37305ddb
commit
5109e17f14
|
@ -145,6 +145,7 @@ windows.wndranking$statstab.ankhs=Ankhs Used
|
|||
|
||||
windows.wndresurrect.title=Resurrection
|
||||
windows.wndresurrect.message=As you perish you can feel your ankh guiding your spirit back toward this world. It's giving you another chance to conquer the dungeon!\n\nYou can bring two of your items with you, but the rest will be left where you perished. Which items will you choose?
|
||||
windows.wndresurrect.prompt=Select an item
|
||||
windows.wndresurrect.confirm=Preserve these items
|
||||
|
||||
windows.wndsadghost.rat_title=DEFEATED FETID RAT
|
||||
|
|
|
@ -21,11 +21,13 @@
|
|||
|
||||
package com.shatteredpixel.shatteredpixeldungeon.windows;
|
||||
|
||||
import com.shatteredpixel.shatteredpixeldungeon.Badges;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.Dungeon;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.Statistics;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.items.Ankh;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.items.EquipableItem;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.items.Item;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.items.bags.Bag;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.items.weapon.missiles.MissileWeapon;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.messages.Messages;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.scenes.GameScene;
|
||||
|
@ -123,13 +125,13 @@ public class WndResurrect extends Window {
|
|||
|
||||
@Override
|
||||
public String textPrompt() {
|
||||
return "TODO";
|
||||
return Messages.get(WndResurrect.class, "prompt");
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean itemSelectable(Item item) {
|
||||
//cannot select ankhs or equippable items that aren't equipped
|
||||
return !(item instanceof Ankh) &&
|
||||
//cannot select ankhs, bags or equippable items that aren't equipped
|
||||
return !(item instanceof Ankh) && !(item instanceof Bag) &&
|
||||
(!(item instanceof EquipableItem) || item.isEquipped(Dungeon.hero) || item instanceof MissileWeapon);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user