v2.4.0: standardized values (gold and energy) for brews/elixirs/spells

This commit is contained in:
Evan Debenham
2024-02-20 13:59:14 -05:00
committed by Evan Debenham
parent ca13a1d026
commit e2372805bf
24 changed files with 90 additions and 91 deletions

View File

@@ -57,13 +57,7 @@ public class BlizzardBrew extends Brew {
GameScene.add( Blob.seed( cell, centerVolume, Blizzard.class ) );
}
@Override
public int value() {
//prices of ingredients
return quantity * (30 + 40);
}
public static class Recipe extends com.shatteredpixel.shatteredpixeldungeon.items.Recipe.SimpleRecipe {
{

View File

@@ -54,4 +54,14 @@ public abstract class Brew extends Potion {
return true;
}
@Override
public int value() {
return quantity * 60;
}
@Override
public int energyVal() {
return quantity * 12;
}
}

View File

@@ -62,12 +62,6 @@ public class CausticBrew extends Brew {
}
}
@Override
public int value() {
//prices of ingredients
return quantity * (30 + 30);
}
public static class Recipe extends com.shatteredpixel.shatteredpixeldungeon.items.Recipe.SimpleRecipe {
{

View File

@@ -59,12 +59,6 @@ public class InfernalBrew extends Brew {
GameScene.add( Blob.seed( cell, centerVolume, Inferno.class ) );
}
@Override
public int value() {
//prices of ingredients
return quantity * (30 + 40);
}
public static class Recipe extends com.shatteredpixel.shatteredpixeldungeon.items.Recipe.SimpleRecipe {
{

View File

@@ -54,12 +54,6 @@ public class ShockingBrew extends Brew {
}
}
@Override
public int value() {
//prices of ingredients
return quantity * (40 + 40);
}
public static class Recipe extends com.shatteredpixel.shatteredpixeldungeon.items.Recipe.SimpleRecipe {
{

View File

@@ -32,4 +32,14 @@ public abstract class Elixir extends Potion {
public boolean isKnown() {
return true;
}
@Override
public int value() {
return quantity * 60;
}
@Override
public int energyVal() {
return quantity * 12;
}
}

View File

@@ -52,12 +52,6 @@ public class ElixirOfAquaticRejuvenation extends Elixir {
}
}
@Override
public int value() {
//prices of ingredients
return quantity * (30 + 30);
}
public static class AquaHealing extends Buff {
{

View File

@@ -39,12 +39,6 @@ public class ElixirOfArcaneArmor extends Elixir {
Buff.affect(hero, ArcaneArmor.class).set(5 + hero.lvl/2, 80);
}
@Override
public int value() {
//prices of ingredients
return quantity * (60 + 30);
}
public static class Recipe extends com.shatteredpixel.shatteredpixeldungeon.items.Recipe.SimpleRecipe {
{

View File

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

View File

@@ -67,12 +67,6 @@ public class ElixirOfHoneyedHealing extends Elixir {
}
}
@Override
public int value() {
//prices of ingredients
return quantity * (30 + 5);
}
public static class Recipe extends com.shatteredpixel.shatteredpixeldungeon.items.Recipe.SimpleRecipe {
{

View File

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

View File

@@ -66,12 +66,6 @@ public class ElixirOfMight extends Elixir {
return Messages.get(this, "desc", HTBoost.boost(Dungeon.hero.HT));
}
@Override
public int value() {
//prices of ingredients
return quantity * (50 + 40);
}
public static class Recipe extends com.shatteredpixel.shatteredpixeldungeon.items.Recipe.SimpleRecipe {
{

View File

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

View File

@@ -56,11 +56,16 @@ public class Alchemize extends Spell {
@Override
public int value() {
//prices of ingredients, divided by output quantity, rounds down
return (int)(40 * (quantity/8f));
//cheap, as ingredients are cheap
return (int)(20 * (quantity/8f));
}
@Override
public int energyVal() {
//also cheap, same reason
return (int)(4 * (quantity/8f));
}
//TODO this can't be simple anymore =S
public static class Recipe extends com.shatteredpixel.shatteredpixeldungeon.items.Recipe {
@Override

View File

@@ -49,8 +49,12 @@ public class AquaBlast extends TargetedSpell {
@Override
public int value() {
//prices of ingredients, divided by output quantity, rounds down
return (int)((60 + 40) * (quantity/8f));
return (int)(60 * (quantity/8f));
}
@Override
public int energyVal() {
return (int)(12 * (quantity/8f));
}
public static class Recipe extends com.shatteredpixel.shatteredpixeldungeon.items.Recipe.SimpleRecipe {

View File

@@ -212,8 +212,12 @@ public class BeaconOfReturning extends Spell {
@Override
public int value() {
//prices of ingredients, divided by output quantity, rounds down
return (int)((50 + 40) * (quantity/5f));
return (int)(60 * (quantity/5f));
}
@Override
public int energyVal() {
return (int)(12 * (quantity/5f));
}
public static class Recipe extends com.shatteredpixel.shatteredpixeldungeon.items.Recipe.SimpleRecipe {

View File

@@ -95,8 +95,12 @@ public class CurseInfusion extends InventorySpell {
@Override
public int value() {
//prices of ingredients, divided by output quantity, rounds down
return (int)((30 + 50) * (quantity/3f));
return (int)(60 * (quantity/4f));
}
@Override
public int energyVal() {
return (int)(12 * (quantity/4f));
}
public static class Recipe extends com.shatteredpixel.shatteredpixeldungeon.items.Recipe.SimpleRecipe {

View File

@@ -82,8 +82,12 @@ public class FeatherFall extends Spell {
@Override
public int value() {
//prices of ingredients, divided by output quantity, rounds down
return (int)((30 + 40) * (quantity/2f));
return (int)(60 * (quantity/2f));
}
@Override
public int energyVal() {
return (int)(12 * (quantity/2f));
}
public static class Recipe extends com.shatteredpixel.shatteredpixeldungeon.items.Recipe.SimpleRecipe {

View File

@@ -73,8 +73,12 @@ public class MagicalInfusion extends InventorySpell {
@Override
public int value() {
//prices of ingredients
return (50 + 40) * quantity;
return 60 * quantity;
}
@Override
public int energyVal() {
return 12 * quantity;
}
public static class Recipe extends com.shatteredpixel.shatteredpixeldungeon.items.Recipe.SimpleRecipe {

View File

@@ -65,8 +65,12 @@ public class PhaseShift extends TargetedSpell {
@Override
public int value() {
//prices of ingredients, divided by output quantity, rounds down
return (int)((30 + 40) * (quantity/8f));
return (int)(60 * (quantity/8f));
}
@Override
public int energyVal() {
return (int)(12 * (quantity/8f));
}
public static class Recipe extends com.shatteredpixel.shatteredpixeldungeon.items.Recipe.SimpleRecipe {

View File

@@ -115,8 +115,12 @@ public class ReclaimTrap extends TargetedSpell {
@Override
public int value() {
//prices of ingredients, divided by output quantity, rounds down
return (int)((40 + 50) * (quantity/4f));
return (int)(60 * (quantity/4f));
}
@Override
public int energyVal() {
return (int)(12 * (quantity/4f));
}
private static final String STORED_TRAP = "stored_trap";

View File

@@ -92,8 +92,12 @@ public class Recycle extends InventorySpell {
@Override
public int value() {
//prices of ingredients, divided by output quantity, rounds down
return (int)((50 + 40) * (quantity/12f));
return (int)(60 * (quantity/12f));
}
@Override
public int energyVal() {
return (int)(12 * (quantity/12f));
}
public static class Recipe extends com.shatteredpixel.shatteredpixeldungeon.items.Recipe.SimpleRecipe {

View File

@@ -116,8 +116,12 @@ public class TelekineticGrab extends TargetedSpell {
@Override
public int value() {
//prices of ingredients, divided by output quantity, rounds down
return (int)((10 + 40) * (quantity/6f));
return (int)(60 * (quantity/6f));
}
@Override
public int energyVal() {
return (int)(12 * (quantity/6f));
}
public static class Recipe extends com.shatteredpixel.shatteredpixeldungeon.items.Recipe.SimpleRecipe {

View File

@@ -65,10 +65,14 @@ public class WildEnergy extends TargetedSpell {
@Override
public int value() {
//prices of ingredients, divided by output quantity, rounds down
return (int)((50 + 50) * (quantity/5f));
return (int)(60 * (quantity/5f));
}
@Override
public int energyVal() {
return (int)(12 * (quantity/5f));
}
public static class Recipe extends com.shatteredpixel.shatteredpixeldungeon.items.Recipe.SimpleRecipe {
{