v0.4.1: big pass on item shop values

This commit is contained in:
Evan Debenham 2016-07-10 21:33:51 -04:00 committed by Evan Debenham
parent 2166d13c62
commit 375b3acdae
33 changed files with 46 additions and 55 deletions

View File

@ -102,7 +102,7 @@ public class Weightstone extends Item {
@Override
public int price() {
return 40 * quantity;
return 50 * quantity;
}
private final WndBag.Listener itemSelector = new WndBag.Listener() {

View File

@ -366,19 +366,15 @@ public class Armor extends EquipableItem {
@Override
public int price() {
int price = 10 * (1 << (tier - 1));
if (hasCurseGlyph()) {
int price = 20 * (1 << (tier - 1));
if (hasGoodGlyph()) {
price *= 1.5;
}
if (cursedKnown && (cursed || hasCurseGlyph())) {
price /= 2;
}
if (levelKnown) {
if (level() > 0) {
price *= (level() + 1);
} else if (level() < 0) {
price /= (1 - level());
}
if (levelKnown && level() > 0) {
price *= (level() + 1);
}
if (price < 1) {
price = 1;

View File

@ -181,7 +181,7 @@ public class Artifact extends KindofMisc {
public int price() {
int price = 100;
if (level() > 0)
price += 50*((level()*10)/levelCap);
price += 20*visiblyUpgraded();
if (cursed && cursedKnown) {
price /= 2;
}

View File

@ -376,7 +376,7 @@ public class TimekeepersHourglass extends Artifact {
@Override
public int price() {
return 20;
return 10;
}
}

View File

@ -39,7 +39,7 @@ public class PotionBandolier extends Bag {
@Override
public int price() {
return 50;
return 40;
}
}

View File

@ -39,7 +39,7 @@ public class ScrollHolder extends Bag {
@Override
public int price() {
return 50;
return 40;
}
}

View File

@ -39,7 +39,7 @@ public class SeedPouch extends Bag {
@Override
public int price() {
return 50;
return 30;
}
}

View File

@ -33,7 +33,7 @@ public class ChargrilledMeat extends Food {
@Override
public int price() {
return 5 * quantity;
return 8 * quantity;
}
public static Food cook( MysteryMeat ingredient ) {

View File

@ -33,6 +33,6 @@ public class OverpricedRation extends Food {
@Override
public int price() {
return 20 * quantity;
return 10 * quantity;
}
}

View File

@ -313,6 +313,6 @@ public class Potion extends Item {
@Override
public int price() {
return 20 * quantity;
return 30 * quantity;
}
}

View File

@ -38,6 +38,6 @@ public class PotionOfExperience extends Potion {
@Override
public int price() {
return isKnown() ? 80 * quantity : super.price();
return isKnown() ? 50 * quantity : super.price();
}
}

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -47,6 +47,6 @@ public class PotionOfStrength extends Potion {
@Override
public int price() {
return isKnown() ? 100 * quantity : super.price();
return isKnown() ? 50 * quantity : super.price();
}
}

View File

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

View File

@ -41,9 +41,4 @@ public class DarkGold extends Item {
public boolean isIdentified() {
return true;
}
@Override
public int price() {
return quantity;
}
}

View File

@ -41,9 +41,4 @@ public class DwarfToken extends Item {
public boolean isIdentified() {
return true;
}
@Override
public int price() {
return quantity * 100;
}
}

View File

@ -42,9 +42,4 @@ public class RatSkull extends Item {
public boolean isIdentified() {
return true;
}
@Override
public int price() {
return 100;
}
}

View File

@ -212,6 +212,6 @@ public abstract class Scroll extends Item {
@Override
public int price() {
return 15 * quantity;
return 30 * quantity;
}
}

View File

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

View File

@ -87,7 +87,7 @@ public class ScrollOfMagicMapping extends Scroll {
@Override
public int price() {
return isKnown() ? 25 * quantity : super.price();
return isKnown() ? 40 * quantity : super.price();
}
public static void discover( int cell ) {

View File

@ -21,7 +21,6 @@
package com.shatteredpixel.shatteredpixeldungeon.items.scrolls;
import com.shatteredpixel.shatteredpixeldungeon.Badges;
import com.shatteredpixel.shatteredpixeldungeon.Dungeon;
import com.shatteredpixel.shatteredpixeldungeon.effects.Enchanting;
import com.shatteredpixel.shatteredpixeldungeon.effects.Speck;
import com.shatteredpixel.shatteredpixeldungeon.items.Item;
@ -56,4 +55,8 @@ public class ScrollOfMagicalInfusion extends InventoryScroll {
Enchanting.show(curUser, item);
}
@Override
public int price() {
return isKnown() ? 100 * quantity : super.price();
}
}

View File

@ -74,4 +74,8 @@ public class ScrollOfMirrorImage extends Scroll {
readAnimation();
}
@Override
public int price() {
return isKnown() ? 30 * quantity : super.price();
}
}

View File

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

View File

@ -70,4 +70,8 @@ public class ScrollOfRage extends Scroll {
readAnimation();
}
@Override
public int price() {
return isKnown() ? 30 * quantity : super.price();
}
}

View File

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

View File

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

View File

@ -127,4 +127,8 @@ public class ScrollOfUpgrade extends InventoryScroll {
hero.sprite.emitter().start( ShadowParticle.UP, 0.05f, 10 );
}
@Override
public int price() {
return isKnown() ? 50 * quantity : super.price();
}
}

View File

@ -24,7 +24,6 @@ import com.shatteredpixel.shatteredpixeldungeon.Dungeon;
import com.shatteredpixel.shatteredpixeldungeon.items.Item;
import com.shatteredpixel.shatteredpixeldungeon.items.weapon.Weapon;
import com.shatteredpixel.shatteredpixeldungeon.messages.Messages;
import com.watabou.utils.Random;
public class MeleeWeapon extends Weapon {
@ -112,12 +111,8 @@ public class MeleeWeapon extends Weapon {
if (cursedKnown && (cursed || hasCurseEnchant())) {
price /= 2;
}
if (levelKnown) {
if (level() > 0) {
price *= (level() + 1);
} else if (level() < 0) {
price /= (1 - level());
}
if (levelKnown && level() > 0) {
price *= (level() + 1);
}
if (price < 1) {
price = 1;