v0.6.1b: further adjustments to sad ghost error checking
This commit is contained in:
+4
-1
@@ -21,6 +21,7 @@
|
|||||||
|
|
||||||
package com.shatteredpixel.shatteredpixeldungeon.windows;
|
package com.shatteredpixel.shatteredpixeldungeon.windows;
|
||||||
|
|
||||||
|
import com.shatteredpixel.shatteredpixeldungeon.Challenges;
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.Dungeon;
|
import com.shatteredpixel.shatteredpixeldungeon.Dungeon;
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.actors.mobs.npcs.Ghost;
|
import com.shatteredpixel.shatteredpixeldungeon.actors.mobs.npcs.Ghost;
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.items.Item;
|
import com.shatteredpixel.shatteredpixeldungeon.items.Item;
|
||||||
@@ -81,7 +82,7 @@ public class WndSadGhost extends Window {
|
|||||||
btnWeapon.setRect( 0, message.top() + message.height() + GAP, WIDTH, BTN_HEIGHT );
|
btnWeapon.setRect( 0, message.top() + message.height() + GAP, WIDTH, BTN_HEIGHT );
|
||||||
add( btnWeapon );
|
add( btnWeapon );
|
||||||
|
|
||||||
if (Ghost.Quest.armor != null) {
|
if (!Dungeon.isChallenged( Challenges.NO_ARMOR )) {
|
||||||
RedButton btnArmor = new RedButton( Messages.get(this, "armor") ) {
|
RedButton btnArmor = new RedButton( Messages.get(this, "armor") ) {
|
||||||
@Override
|
@Override
|
||||||
protected void onClick() {
|
protected void onClick() {
|
||||||
@@ -101,6 +102,8 @@ public class WndSadGhost extends Window {
|
|||||||
|
|
||||||
hide();
|
hide();
|
||||||
|
|
||||||
|
if (reward == null) return;
|
||||||
|
|
||||||
reward.identify();
|
reward.identify();
|
||||||
if (reward.doPickUp( Dungeon.hero )) {
|
if (reward.doPickUp( Dungeon.hero )) {
|
||||||
GLog.i( Messages.get(Dungeon.hero, "you_now_have", reward.name()) );
|
GLog.i( Messages.get(Dungeon.hero, "you_now_have", reward.name()) );
|
||||||
|
|||||||
Reference in New Issue
Block a user