v0.4.1: a couple more price changes

This commit is contained in:
Evan Debenham 2016-07-10 22:28:51 -04:00 committed by Evan Debenham
parent 375b3acdae
commit efa9c3bb73
4 changed files with 14 additions and 2 deletions

View File

@ -366,7 +366,9 @@ public class Armor extends EquipableItem {
@Override @Override
public int price() { public int price() {
int price = 20 * (1 << (tier - 1)); if (seal != null) return 0;
int price = 20 * tier;
if (hasGoodGlyph()) { if (hasGoodGlyph()) {
price *= 1.5; price *= 1.5;
} }

View File

@ -162,6 +162,11 @@ public class CloakOfShadows extends Artifact {
} }
} }
@Override
public int price() {
return 0;
}
public class cloakRecharge extends ArtifactBuff{ public class cloakRecharge extends ArtifactBuff{
@Override @Override
public boolean act() { public boolean act() {

View File

@ -281,6 +281,11 @@ public class MagesStaff extends MeleeWeapon {
} }
} }
@Override
public int price() {
return 0;
}
private final WndBag.Listener itemSelector = new WndBag.Listener() { private final WndBag.Listener itemSelector = new WndBag.Listener() {
@Override @Override
public void onSelect( final Item item ) { public void onSelect( final Item item ) {

View File

@ -104,7 +104,7 @@ public class MeleeWeapon extends Weapon {
@Override @Override
public int price() { public int price() {
int price = 20 * (1 << (tier - 1)); int price = 20 * tier;
if (hasGoodEnchant()) { if (hasGoodEnchant()) {
price *= 1.5; price *= 1.5;
} }