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

View File

@@ -76,4 +76,10 @@ public class ArcaneBomb extends Bomb {
}
}
}
@Override
public int price() {
//prices of ingredients
return quantity * (20 + 50);
}
}

View File

@@ -55,4 +55,10 @@ public class Firebomb extends Bomb {
}
Sample.INSTANCE.play(Assets.SND_BURNING);
}
@Override
public int price() {
//prices of ingredients
return quantity * (20 + 30);
}
}

View File

@@ -63,4 +63,10 @@ public class Flashbang extends Bomb {
}
@Override
public int price() {
//prices of ingredients
return quantity * (20 + 40);
}
}

View File

@@ -45,4 +45,10 @@ public class FrostBomb extends Bomb {
}
}
}
@Override
public int price() {
//prices of ingredients
return quantity * (20 + 30);
}
}

View File

@@ -68,4 +68,10 @@ public class HolyBomb extends Bomb {
}
Sample.INSTANCE.play( Assets.SND_READ );
}
@Override
public int price() {
//prices of ingredients
return quantity * (20 + 30);
}
}

View File

@@ -102,4 +102,10 @@ public class Noisemaker extends Bomb {
super.restoreFromBundle(bundle);
}
}
@Override
public int price() {
//prices of ingredients
return quantity * (20 + 40);
}
}

View File

@@ -102,4 +102,10 @@ public class RegrowthBomb extends Bomb {
plantCandidates.remove(plantPos);
}
}
@Override
public int price() {
//prices of ingredients
return quantity * (20 + 30);
}
}

View File

@@ -49,4 +49,10 @@ public class ShockBomb extends Bomb {
}
Sample.INSTANCE.play(Assets.SND_LIGHTNING);
}
@Override
public int price() {
//prices of ingredients
return quantity * (20 + 30);
}
}

View File

@@ -67,4 +67,9 @@ public class ShrapnelBomb extends Bomb {
}
}
@Override
public int price() {
//prices of ingredients
return quantity * (20 + 100);
}
}

View File

@@ -69,4 +69,10 @@ public class WoollyBomb extends Bomb {
}
@Override
public int price() {
//prices of ingredients
return quantity * (20 + 30);
}
}

View File

@@ -45,7 +45,7 @@ public class Feast extends Food {
@Override
public int price() {
return 30 * quantity;
return 40 * quantity;
}
public static class Recipe extends com.shatteredpixel.shatteredpixeldungeon.items.Recipe {

View File

@@ -40,4 +40,9 @@ public class PotionOfHaste extends Potion {
GLog.w( Messages.get(this, "energetic") );
Buff.prolong( hero, Haste.class, Haste.DURATION);
}
@Override
public int price() {
return isKnown() ? 40 * quantity : super.price();
}
}

View File

@@ -61,6 +61,6 @@ public class PotionOfLevitation extends Potion {
@Override
public int price() {
return isKnown() ? 30 * quantity : super.price();
return isKnown() ? 40 * quantity : super.price();
}
}

View File

@@ -49,6 +49,6 @@ public class PotionOfMindVision extends Potion {
@Override
public int price() {
return isKnown() ? 40 * quantity : super.price();
return isKnown() ? 30 * quantity : super.price();
}
}

View File

@@ -49,6 +49,12 @@ public class BlizzardBrew extends Brew {
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 {
{

View File

@@ -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 {
{

View File

@@ -55,6 +55,12 @@ public class FrigidBrew extends Brew {
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 {
{

View File

@@ -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 {
{

View File

@@ -50,6 +50,12 @@ public class InfernalBrew extends Brew {
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 {
{

View File

@@ -54,6 +54,12 @@ public class ShockingBrew extends Brew {
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 {
{

View File

@@ -48,6 +48,12 @@ public class WickedBrew extends Brew {
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 {
{

View File

@@ -46,6 +46,12 @@ public class ElixirOfAquaticRejuvenation extends Elixir {
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 {
{

View File

@@ -50,6 +50,12 @@ public class ElixirOfDragonsBlood extends Elixir {
return 0xFFFF002A;
}
@Override
public int price() {
//prices of ingredients
return quantity * (30 + 40);
}
public static class Recipe extends com.shatteredpixel.shatteredpixeldungeon.items.Recipe.SimpleRecipe {
{

View File

@@ -47,6 +47,12 @@ public class ElixirOfIcyTouch extends Elixir {
return 0xFF18C3E6;
}
@Override
public int price() {
//prices of ingredients
return quantity * (30 + 40);
}
public static class Recipe extends com.shatteredpixel.shatteredpixeldungeon.items.Recipe.SimpleRecipe {
{

View File

@@ -51,7 +51,8 @@ public class ElixirOfMight extends Elixir {
@Override
public int price() {
return 100 * quantity;
//prices of ingredients
return quantity * (50 + 30);
}
public static class Recipe extends com.shatteredpixel.shatteredpixeldungeon.items.Recipe.SimpleRecipe {

View File

@@ -40,6 +40,12 @@ public class ElixirOfRestoration extends Elixir {
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 {
{

View File

@@ -47,6 +47,12 @@ public class ElixirOfToxicEssence extends Elixir {
return 0xFF00B34A;
}
@Override
public int price() {
//prices of ingredients
return quantity * (30 + 40);
}
public static class Recipe extends com.shatteredpixel.shatteredpixeldungeon.items.Recipe.SimpleRecipe {
{

View File

@@ -42,6 +42,12 @@ public class ElixirOfVitality extends Elixir {
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 {
{

View File

@@ -89,6 +89,6 @@ public class ScrollOfRage extends Scroll {
@Override
public int price() {
return isKnown() ? 30 * quantity : super.price();
return isKnown() ? 40 * quantity : super.price();
}
}

View File

@@ -68,6 +68,6 @@ public class ScrollOfRecharging extends Scroll {
@Override
public int price() {
return isKnown() ? 40 * quantity : super.price();
return isKnown() ? 30 * quantity : super.price();
}
}

View File

@@ -93,6 +93,6 @@ public class ScrollOfRetribution extends Scroll {
@Override
public int price() {
return isKnown() ? 50 * quantity : super.price();
return isKnown() ? 40 * quantity : super.price();
}
}

View File

@@ -90,6 +90,6 @@ public class ScrollOfTerror extends Scroll {
@Override
public int price() {
return isKnown() ? 30 * quantity : super.price();
return isKnown() ? 40 * quantity : super.price();
}
}

View File

@@ -250,5 +250,8 @@ public class ScrollOfTransmutation extends InventoryScroll {
//does nothing, this shouldn't happen
}
@Override
public int price() {
return isKnown() ? 50 * quantity : super.price();
}
}

View File

@@ -58,6 +58,12 @@ public class Alchemize extends Spell implements AlchemyScene.AlchemyProvider {
//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 {
{

View File

@@ -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 {
{

View File

@@ -175,6 +175,12 @@ public class BeaconOfReturning extends Spell {
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 {
{

View File

@@ -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 {
{

View File

@@ -55,6 +55,12 @@ public class FeatherFall extends Spell {
//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 {
{

View File

@@ -59,7 +59,8 @@ public class MagicalInfusion extends InventorySpell {
@Override
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 {

View File

@@ -63,6 +63,12 @@ public class MagicalPorter extends InventorySpell {
//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 {
{

View File

@@ -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 {
{

View File

@@ -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 {
{

View File

@@ -69,6 +69,12 @@ public class Recycle extends InventorySpell {
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 {
{