v0.7.0: consistency pass on alchemy item prices

This commit is contained in:
Evan Debenham
2018-10-11 04:06:47 -04:00
parent bdee43bbf2
commit 0aa38b4470
43 changed files with 211 additions and 10 deletions
@@ -76,4 +76,10 @@ public class ArcaneBomb extends Bomb {
} }
} }
} }
@Override
public int price() {
//prices of ingredients
return quantity * (20 + 50);
}
} }
@@ -55,4 +55,10 @@ public class Firebomb extends Bomb {
} }
Sample.INSTANCE.play(Assets.SND_BURNING); Sample.INSTANCE.play(Assets.SND_BURNING);
} }
@Override
public int price() {
//prices of ingredients
return quantity * (20 + 30);
}
} }
@@ -63,4 +63,10 @@ public class Flashbang extends Bomb {
} }
@Override
public int price() {
//prices of ingredients
return quantity * (20 + 40);
}
} }
@@ -45,4 +45,10 @@ public class FrostBomb extends Bomb {
} }
} }
} }
@Override
public int price() {
//prices of ingredients
return quantity * (20 + 30);
}
} }
@@ -68,4 +68,10 @@ public class HolyBomb extends Bomb {
} }
Sample.INSTANCE.play( Assets.SND_READ ); Sample.INSTANCE.play( Assets.SND_READ );
} }
@Override
public int price() {
//prices of ingredients
return quantity * (20 + 30);
}
} }
@@ -102,4 +102,10 @@ public class Noisemaker extends Bomb {
super.restoreFromBundle(bundle); super.restoreFromBundle(bundle);
} }
} }
@Override
public int price() {
//prices of ingredients
return quantity * (20 + 40);
}
} }
@@ -102,4 +102,10 @@ public class RegrowthBomb extends Bomb {
plantCandidates.remove(plantPos); plantCandidates.remove(plantPos);
} }
} }
@Override
public int price() {
//prices of ingredients
return quantity * (20 + 30);
}
} }
@@ -49,4 +49,10 @@ public class ShockBomb extends Bomb {
} }
Sample.INSTANCE.play(Assets.SND_LIGHTNING); Sample.INSTANCE.play(Assets.SND_LIGHTNING);
} }
@Override
public int price() {
//prices of ingredients
return quantity * (20 + 30);
}
} }
@@ -67,4 +67,9 @@ public class ShrapnelBomb extends Bomb {
} }
} }
@Override
public int price() {
//prices of ingredients
return quantity * (20 + 100);
}
} }
@@ -69,4 +69,10 @@ public class WoollyBomb extends Bomb {
} }
@Override
public int price() {
//prices of ingredients
return quantity * (20 + 30);
}
} }
@@ -45,7 +45,7 @@ public class Feast extends Food {
@Override @Override
public int price() { public int price() {
return 30 * quantity; return 40 * quantity;
} }
public static class Recipe extends com.shatteredpixel.shatteredpixeldungeon.items.Recipe { public static class Recipe extends com.shatteredpixel.shatteredpixeldungeon.items.Recipe {
@@ -40,4 +40,9 @@ public class PotionOfHaste extends Potion {
GLog.w( Messages.get(this, "energetic") ); GLog.w( Messages.get(this, "energetic") );
Buff.prolong( hero, Haste.class, Haste.DURATION); Buff.prolong( hero, Haste.class, Haste.DURATION);
} }
@Override
public int price() {
return isKnown() ? 40 * quantity : super.price();
}
} }
@@ -61,6 +61,6 @@ public class PotionOfLevitation extends Potion {
@Override @Override
public int price() { public int price() {
return isKnown() ? 30 * quantity : super.price(); return isKnown() ? 40 * quantity : super.price();
} }
} }
@@ -49,6 +49,6 @@ public class PotionOfMindVision extends Potion {
@Override @Override
public int price() { public int price() {
return isKnown() ? 40 * quantity : super.price(); return isKnown() ? 30 * quantity : super.price();
} }
} }
@@ -49,6 +49,12 @@ public class BlizzardBrew extends Brew {
GameScene.add( Blob.seed( cell, 1000, Blizzard.class ) ); GameScene.add( Blob.seed( cell, 1000, Blizzard.class ) );
} }
@Override
public int price() {
//prices of ingredients
return quantity * (50 + 30);
}
public static class Recipe extends com.shatteredpixel.shatteredpixeldungeon.items.Recipe.SimpleRecipe { public static class Recipe extends com.shatteredpixel.shatteredpixeldungeon.items.Recipe.SimpleRecipe {
{ {
@@ -56,6 +56,12 @@ public class CausticBrew extends Brew {
} }
} }
@Override
public int price() {
//prices of ingredients
return quantity * (30 + 50);
}
public static class Recipe extends com.shatteredpixel.shatteredpixeldungeon.items.Recipe.SimpleRecipe { public static class Recipe extends com.shatteredpixel.shatteredpixeldungeon.items.Recipe.SimpleRecipe {
{ {
@@ -55,6 +55,12 @@ public class FrigidBrew extends Brew {
GameScene.add( Blob.seed( cell, 1000, StormCloud.class ) ); GameScene.add( Blob.seed( cell, 1000, StormCloud.class ) );
} }
@Override
public int price() {
//prices of ingredients
return quantity * (30 + 60);
}
public static class Recipe extends com.shatteredpixel.shatteredpixeldungeon.items.Recipe.SimpleRecipe { public static class Recipe extends com.shatteredpixel.shatteredpixeldungeon.items.Recipe.SimpleRecipe {
{ {
@@ -69,6 +69,12 @@ public class FrostfireBrew extends Brew {
} }
} }
@Override
public int price() {
//prices of ingredients
return quantity * (50 + 30);
}
public static class Recipe extends com.shatteredpixel.shatteredpixeldungeon.items.Recipe.SimpleRecipe { public static class Recipe extends com.shatteredpixel.shatteredpixeldungeon.items.Recipe.SimpleRecipe {
{ {
@@ -50,6 +50,12 @@ public class InfernalBrew extends Brew {
GameScene.add( Blob.seed( cell, 1000, Inferno.class ) ); GameScene.add( Blob.seed( cell, 1000, Inferno.class ) );
} }
@Override
public int price() {
//prices of ingredients
return quantity * (50 + 30);
}
public static class Recipe extends com.shatteredpixel.shatteredpixeldungeon.items.Recipe.SimpleRecipe { public static class Recipe extends com.shatteredpixel.shatteredpixeldungeon.items.Recipe.SimpleRecipe {
{ {
@@ -54,6 +54,12 @@ public class ShockingBrew extends Brew {
Sample.INSTANCE.play(Assets.SND_LIGHTNING); Sample.INSTANCE.play(Assets.SND_LIGHTNING);
} }
@Override
public int price() {
//prices of ingredients
return quantity * (40 + 60);
}
public static class Recipe extends com.shatteredpixel.shatteredpixeldungeon.items.Recipe.SimpleRecipe { public static class Recipe extends com.shatteredpixel.shatteredpixeldungeon.items.Recipe.SimpleRecipe {
{ {
@@ -48,6 +48,12 @@ public class WickedBrew extends Brew {
GameScene.add( Blob.seed( cell, 1000, ParalyticGas.class ) ); GameScene.add( Blob.seed( cell, 1000, ParalyticGas.class ) );
} }
@Override
public int price() {
//prices of ingredients
return quantity * (30 + 40);
}
public static class Recipe extends com.shatteredpixel.shatteredpixeldungeon.items.Recipe.SimpleRecipe { public static class Recipe extends com.shatteredpixel.shatteredpixeldungeon.items.Recipe.SimpleRecipe {
{ {
@@ -46,6 +46,12 @@ public class ElixirOfAquaticRejuvenation extends Elixir {
Buff.affect(hero, AquaHealing.class).set(hero.HT * 3); Buff.affect(hero, AquaHealing.class).set(hero.HT * 3);
} }
@Override
public int price() {
//prices of ingredients
return quantity * (30 + 50);
}
public static class AquaHealing extends Buff { public static class AquaHealing extends Buff {
{ {
@@ -50,6 +50,12 @@ public class ElixirOfDragonsBlood extends Elixir {
return 0xFFFF002A; return 0xFFFF002A;
} }
@Override
public int price() {
//prices of ingredients
return quantity * (30 + 40);
}
public static class Recipe extends com.shatteredpixel.shatteredpixeldungeon.items.Recipe.SimpleRecipe { public static class Recipe extends com.shatteredpixel.shatteredpixeldungeon.items.Recipe.SimpleRecipe {
{ {
@@ -47,6 +47,12 @@ public class ElixirOfIcyTouch extends Elixir {
return 0xFF18C3E6; return 0xFF18C3E6;
} }
@Override
public int price() {
//prices of ingredients
return quantity * (30 + 40);
}
public static class Recipe extends com.shatteredpixel.shatteredpixeldungeon.items.Recipe.SimpleRecipe { public static class Recipe extends com.shatteredpixel.shatteredpixeldungeon.items.Recipe.SimpleRecipe {
{ {
@@ -51,7 +51,8 @@ public class ElixirOfMight extends Elixir {
@Override @Override
public int price() { public int price() {
return 100 * quantity; //prices of ingredients
return quantity * (50 + 30);
} }
public static class Recipe extends com.shatteredpixel.shatteredpixeldungeon.items.Recipe.SimpleRecipe { public static class Recipe extends com.shatteredpixel.shatteredpixeldungeon.items.Recipe.SimpleRecipe {
@@ -40,6 +40,12 @@ public class ElixirOfRestoration extends Elixir {
PotionOfCleansing.cleanse(hero); PotionOfCleansing.cleanse(hero);
} }
@Override
public int price() {
//prices of ingredients
return quantity * (30 + 60);
}
public static class Recipe extends com.shatteredpixel.shatteredpixeldungeon.items.Recipe.SimpleRecipe { public static class Recipe extends com.shatteredpixel.shatteredpixeldungeon.items.Recipe.SimpleRecipe {
{ {
@@ -47,6 +47,12 @@ public class ElixirOfToxicEssence extends Elixir {
return 0xFF00B34A; return 0xFF00B34A;
} }
@Override
public int price() {
//prices of ingredients
return quantity * (30 + 40);
}
public static class Recipe extends com.shatteredpixel.shatteredpixeldungeon.items.Recipe.SimpleRecipe { public static class Recipe extends com.shatteredpixel.shatteredpixeldungeon.items.Recipe.SimpleRecipe {
{ {
@@ -42,6 +42,12 @@ public class ElixirOfVitality extends Elixir {
Buff.affect(hero, Barrier.class).set((int)(0.6f*hero.HT + 10)); Buff.affect(hero, Barrier.class).set((int)(0.6f*hero.HT + 10));
} }
@Override
public int price() {
//prices of ingredients
return quantity * (30 + 50);
}
public static class Recipe extends com.shatteredpixel.shatteredpixeldungeon.items.Recipe.SimpleRecipe { public static class Recipe extends com.shatteredpixel.shatteredpixeldungeon.items.Recipe.SimpleRecipe {
{ {
@@ -89,6 +89,6 @@ public class ScrollOfRage extends Scroll {
@Override @Override
public int price() { public int price() {
return isKnown() ? 30 * quantity : super.price(); return isKnown() ? 40 * quantity : super.price();
} }
} }
@@ -68,6 +68,6 @@ public class ScrollOfRecharging extends Scroll {
@Override @Override
public int price() { public int price() {
return isKnown() ? 40 * quantity : super.price(); return isKnown() ? 30 * quantity : super.price();
} }
} }
@@ -93,6 +93,6 @@ public class ScrollOfRetribution extends Scroll {
@Override @Override
public int price() { public int price() {
return isKnown() ? 50 * quantity : super.price(); return isKnown() ? 40 * quantity : super.price();
} }
} }
@@ -90,6 +90,6 @@ public class ScrollOfTerror extends Scroll {
@Override @Override
public int price() { public int price() {
return isKnown() ? 30 * quantity : super.price(); return isKnown() ? 40 * quantity : super.price();
} }
} }
@@ -250,5 +250,8 @@ public class ScrollOfTransmutation extends InventoryScroll {
//does nothing, this shouldn't happen //does nothing, this shouldn't happen
} }
@Override
public int price() {
return isKnown() ? 50 * quantity : super.price();
}
} }
@@ -58,6 +58,12 @@ public class Alchemize extends Spell implements AlchemyScene.AlchemyProvider {
//do nothing //do nothing
} }
@Override
public int price() {
//prices of ingredients, divided by output quantity
return Math.round(quantity * ((30 + 30) / 4f));
}
public static class Recipe extends com.shatteredpixel.shatteredpixeldungeon.items.Recipe.SimpleRecipe { public static class Recipe extends com.shatteredpixel.shatteredpixeldungeon.items.Recipe.SimpleRecipe {
{ {
@@ -71,6 +71,12 @@ public class AquaBlast extends TargetedSpell {
} }
} }
@Override
public int price() {
//prices of ingredients, divided by output quantity
return Math.round(quantity * ((30 + 60) / 8f));
}
public static class Recipe extends com.shatteredpixel.shatteredpixeldungeon.items.Recipe.SimpleRecipe { public static class Recipe extends com.shatteredpixel.shatteredpixeldungeon.items.Recipe.SimpleRecipe {
{ {
@@ -175,6 +175,12 @@ public class BeaconOfReturning extends Spell {
returnPos = bundle.getInt( POS ); returnPos = bundle.getInt( POS );
} }
@Override
public int price() {
//prices of ingredients, divided by output quantity
return Math.round(quantity * ((50 + 40) / 3f));
}
public static class Recipe extends com.shatteredpixel.shatteredpixeldungeon.items.Recipe.SimpleRecipe { public static class Recipe extends com.shatteredpixel.shatteredpixeldungeon.items.Recipe.SimpleRecipe {
{ {
@@ -62,6 +62,12 @@ public class CurseInfusion extends InventorySpell {
} }
} }
@Override
public int price() {
//prices of ingredients, divided by output quantity
return Math.round(quantity * ((30 + 100) / 4f));
}
public static class Recipe extends com.shatteredpixel.shatteredpixeldungeon.items.Recipe.SimpleRecipe { public static class Recipe extends com.shatteredpixel.shatteredpixeldungeon.items.Recipe.SimpleRecipe {
{ {
@@ -55,6 +55,12 @@ public class FeatherFall extends Spell {
//does nothing, just waits to be triggered by chasm falling //does nothing, just waits to be triggered by chasm falling
} }
@Override
public int price() {
//prices of ingredients, divided by output quantity
return Math.round(quantity * ((40 + 30) / 2f));
}
public static class Recipe extends com.shatteredpixel.shatteredpixeldungeon.items.Recipe.SimpleRecipe { public static class Recipe extends com.shatteredpixel.shatteredpixeldungeon.items.Recipe.SimpleRecipe {
{ {
@@ -59,7 +59,8 @@ public class MagicalInfusion extends InventorySpell {
@Override @Override
public int price() { public int price() {
return 100 * quantity; //prices of ingredients, divided by output quantity
return Math.round(quantity * ((50 + 30) / 1f));
} }
public static class Recipe extends com.shatteredpixel.shatteredpixeldungeon.items.Recipe.SimpleRecipe { public static class Recipe extends com.shatteredpixel.shatteredpixeldungeon.items.Recipe.SimpleRecipe {
@@ -63,6 +63,12 @@ public class MagicalPorter extends InventorySpell {
//TODO vfx //TODO vfx
} }
@Override
public int price() {
//prices of ingredients, divided by output quantity
return Math.round(quantity * ((30 + 5) / 8f));
}
public static class Recipe extends com.shatteredpixel.shatteredpixeldungeon.items.Recipe.SimpleRecipe { public static class Recipe extends com.shatteredpixel.shatteredpixeldungeon.items.Recipe.SimpleRecipe {
{ {
@@ -76,6 +76,12 @@ public class PhaseShift extends TargetedSpell {
} }
} }
@Override
public int price() {
//prices of ingredients, divided by output quantity
return Math.round(quantity * ((30 + 40) / 6f));
}
public static class Recipe extends com.shatteredpixel.shatteredpixeldungeon.items.Recipe.SimpleRecipe { public static class Recipe extends com.shatteredpixel.shatteredpixeldungeon.items.Recipe.SimpleRecipe {
{ {
@@ -56,6 +56,12 @@ public class ReclaimTrap extends TargetedSpell {
} }
} }
@Override
public int price() {
//prices of ingredients, divided by output quantity
return Math.round(quantity * ((30 + 100) / 3f));
}
public static class Recipe extends com.shatteredpixel.shatteredpixeldungeon.items.Recipe.SimpleRecipe { public static class Recipe extends com.shatteredpixel.shatteredpixeldungeon.items.Recipe.SimpleRecipe {
{ {
@@ -69,6 +69,12 @@ public class Recycle extends InventorySpell {
item instanceof Runestone; item instanceof Runestone;
} }
@Override
public int price() {
//prices of ingredients, divided by output quantity
return Math.round(quantity * ((50 + 50) / 6f));
}
public static class Recipe extends com.shatteredpixel.shatteredpixeldungeon.items.Recipe.SimpleRecipe { public static class Recipe extends com.shatteredpixel.shatteredpixeldungeon.items.Recipe.SimpleRecipe {
{ {