V0.2.0a: Made Artifacts sellable, buffed ring sale price (as they are stronger now)
This commit is contained in:
parent
3c88994561
commit
0e5b4604b6
|
@ -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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user