v0.7.0: fixed:

- spells being upgradeable
- errors when certain bombs explode early
- incorrect magical porter recipe
This commit is contained in:
Evan Debenham 2018-09-14 20:15:26 -04:00
parent a64a807fcd
commit 7793ec0c04
3 changed files with 9 additions and 3 deletions

View File

@ -247,8 +247,9 @@ public class Heap implements Bundlable {
} else if (item instanceof Bomb) { } else if (item instanceof Bomb) {
items.remove( item ); items.remove( item );
((Bomb) item).explode( pos ); ((Bomb) item).explode( pos );
burnt = true;
//stop processing the burning, it will be replaced by the explosion. //stop processing the burning, it will be replaced by the explosion.
return; break;
} }
} }

View File

@ -23,9 +23,9 @@ package com.shatteredpixel.shatteredpixeldungeon.items.spells;
import com.shatteredpixel.shatteredpixeldungeon.Dungeon; import com.shatteredpixel.shatteredpixeldungeon.Dungeon;
import com.shatteredpixel.shatteredpixeldungeon.actors.hero.Hero; import com.shatteredpixel.shatteredpixeldungeon.actors.hero.Hero;
import com.shatteredpixel.shatteredpixeldungeon.actors.mobs.npcs.MirrorImage;
import com.shatteredpixel.shatteredpixeldungeon.items.Item; import com.shatteredpixel.shatteredpixeldungeon.items.Item;
import com.shatteredpixel.shatteredpixeldungeon.items.MerchantsBeacon; import com.shatteredpixel.shatteredpixeldungeon.items.MerchantsBeacon;
import com.shatteredpixel.shatteredpixeldungeon.items.scrolls.ScrollOfMirrorImage;
import com.shatteredpixel.shatteredpixeldungeon.messages.Messages; import com.shatteredpixel.shatteredpixeldungeon.messages.Messages;
import com.shatteredpixel.shatteredpixeldungeon.sprites.ItemSpriteSheet; import com.shatteredpixel.shatteredpixeldungeon.sprites.ItemSpriteSheet;
import com.shatteredpixel.shatteredpixeldungeon.utils.GLog; import com.shatteredpixel.shatteredpixeldungeon.utils.GLog;
@ -65,7 +65,7 @@ public class MagicalPorter extends InventorySpell {
public static class Recipe extends com.shatteredpixel.shatteredpixeldungeon.items.Recipe.SimpleRecipe { public static class Recipe extends com.shatteredpixel.shatteredpixeldungeon.items.Recipe.SimpleRecipe {
{ {
inputs = new Class[]{MirrorImage.class, MerchantsBeacon.class}; inputs = new Class[]{ScrollOfMirrorImage.class, MerchantsBeacon.class};
inQuantity = new int[]{1, 1}; inQuantity = new int[]{1, 1};
cost = 2; cost = 2;

View File

@ -68,6 +68,11 @@ public abstract class Spell extends Item {
return true; return true;
} }
@Override
public boolean isUpgradable() {
return false;
}
protected abstract void onCast(Hero hero ); protected abstract void onCast(Hero hero );
} }