V0.2.0a: Made Artifacts sellable, buffed ring sale price (as they are stronger now)

This commit is contained in:
Evan Debenham 2014-09-16 20:32:10 -04:00
parent 3c88994561
commit 0e5b4604b6
2 changed files with 14 additions and 3 deletions

View File

@ -188,6 +188,17 @@ public class Artifact extends KindofMisc {
partialCharge = bundle.getFloat( PARTIALCHARGE ); partialCharge = bundle.getFloat( PARTIALCHARGE );
} }
@Override
public int price() {
int price = 200;
if (level > 0)
price += 30*level;
if (cursed && cursedKnown) {
price /= 2;
}
if (price < 1) {
price = 1;
}
return price;
}
} }

View File

@ -263,7 +263,7 @@ public class Ring extends KindofMisc {
@Override @Override
public int price() { public int price() {
int price = 80; int price = 120;
if (cursed && cursedKnown) { if (cursed && cursedKnown) {
price /= 2; price /= 2;
} }