v0.7.1: corrected inconsistencies with ring description logic
This commit is contained in:
parent
0ea97b0149
commit
5157b83394
|
@ -155,10 +155,10 @@ public class Ring extends KindofMisc {
|
|||
}
|
||||
|
||||
@Override
|
||||
public String desc() {
|
||||
|
||||
public String info(){
|
||||
|
||||
String desc = isKnown() ? super.desc() : Messages.get(this, "unknown_desc");
|
||||
|
||||
|
||||
if (cursed && isEquipped( Dungeon.hero )) {
|
||||
desc += "\n\n" + Messages.get(Ring.class, "cursed_worn");
|
||||
|
||||
|
@ -169,10 +169,18 @@ public class Ring extends KindofMisc {
|
|||
desc += "\n\n" + Messages.get(Ring.class, "not_cursed");
|
||||
|
||||
}
|
||||
|
||||
|
||||
if (isKnown()) {
|
||||
desc += "\n\n" + statsInfo();
|
||||
}
|
||||
|
||||
return desc;
|
||||
}
|
||||
|
||||
protected String statsInfo(){
|
||||
return "";
|
||||
}
|
||||
|
||||
@Override
|
||||
public Item upgrade() {
|
||||
super.upgrade();
|
||||
|
|
|
@ -28,16 +28,12 @@ import java.text.DecimalFormat;
|
|||
|
||||
public class RingOfAccuracy extends Ring {
|
||||
|
||||
public String info() {
|
||||
String desc = desc();
|
||||
if (isKnown()){
|
||||
if (isIdentified()){
|
||||
desc += "\n\n" + Messages.get(this, "stats", new DecimalFormat("#.##").format(100f * (Math.pow(1.3f, soloBonus()) - 1f)));
|
||||
} else {
|
||||
desc += "\n\n" + Messages.get(this, "typical_stats", new DecimalFormat("#.##").format(30f));
|
||||
}
|
||||
public String statsInfo() {
|
||||
if (isIdentified()){
|
||||
return Messages.get(this, "stats", new DecimalFormat("#.##").format(100f * (Math.pow(1.3f, soloBonus()) - 1f)));
|
||||
} else {
|
||||
return Messages.get(this, "typical_stats", new DecimalFormat("#.##").format(30f));
|
||||
}
|
||||
return desc;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -46,16 +46,12 @@ import java.util.HashSet;
|
|||
|
||||
public class RingOfElements extends Ring {
|
||||
|
||||
public String info() {
|
||||
String desc = desc();
|
||||
if (isKnown()){
|
||||
if (isIdentified()){
|
||||
desc += "\n\n" + Messages.get(this, "stats", new DecimalFormat("#.##").format(100f * (1f - Math.pow(0.875f, soloBonus()))));
|
||||
} else {
|
||||
desc += "\n\n" + Messages.get(this, "typical_stats", new DecimalFormat("#.##").format(12.5f));
|
||||
}
|
||||
public String statsInfo() {
|
||||
if (isIdentified()){
|
||||
return Messages.get(this, "stats", new DecimalFormat("#.##").format(100f * (1f - Math.pow(0.875f, soloBonus()))));
|
||||
} else {
|
||||
return Messages.get(this, "typical_stats", new DecimalFormat("#.##").format(12.5f));
|
||||
}
|
||||
return desc;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -28,16 +28,12 @@ import java.text.DecimalFormat;
|
|||
|
||||
public class RingOfEnergy extends Ring {
|
||||
|
||||
public String info() {
|
||||
String desc = desc();
|
||||
if (isKnown()){
|
||||
if (isIdentified()){
|
||||
desc += "\n\n" + Messages.get(this, "stats", new DecimalFormat("#.##").format(100f * (Math.pow(1.2f, soloBonus()) - 1f)));
|
||||
} else {
|
||||
desc += "\n\n" + Messages.get(this, "typical_stats", new DecimalFormat("#.##").format(20f));
|
||||
}
|
||||
public String statsInfo() {
|
||||
if (isIdentified()){
|
||||
return Messages.get(this, "stats", new DecimalFormat("#.##").format(100f * (Math.pow(1.2f, soloBonus()) - 1f)));
|
||||
} else {
|
||||
return Messages.get(this, "typical_stats", new DecimalFormat("#.##").format(20f));
|
||||
}
|
||||
return desc;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -28,16 +28,12 @@ import java.text.DecimalFormat;
|
|||
|
||||
public class RingOfEvasion extends Ring {
|
||||
|
||||
public String info() {
|
||||
String desc = desc();
|
||||
if (isKnown()){
|
||||
if (isIdentified()){
|
||||
desc += "\n\n" + Messages.get(this, "stats", new DecimalFormat("#.##").format(100f * (Math.pow(1.15f, soloBonus()) - 1f)));
|
||||
} else {
|
||||
desc += "\n\n" + Messages.get(this, "typical_stats", new DecimalFormat("#.##").format(15f));
|
||||
}
|
||||
public String statsInfo() {
|
||||
if (isIdentified()){
|
||||
return Messages.get(this, "stats", new DecimalFormat("#.##").format(100f * (Math.pow(1.15f, soloBonus()) - 1f)));
|
||||
} else {
|
||||
return Messages.get(this, "typical_stats", new DecimalFormat("#.##").format(15f));
|
||||
}
|
||||
return desc;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -78,17 +78,13 @@ public class RingOfForce extends Ring {
|
|||
}
|
||||
|
||||
@Override
|
||||
public String desc() {
|
||||
String desc = super.desc();
|
||||
if (isKnown()) {
|
||||
float tier = tier(Dungeon.hero.STR());
|
||||
if (isIdentified()) {
|
||||
desc += "\n\n" + Messages.get(this, "stats", min(soloBonus(), tier), max(soloBonus(), tier));
|
||||
} else {
|
||||
desc += "\n\n" + Messages.get(this, "typical_stats", min(1, tier), max(1, tier));
|
||||
}
|
||||
public String statsInfo() {
|
||||
float tier = tier(Dungeon.hero.STR());
|
||||
if (isIdentified()) {
|
||||
return Messages.get(this, "stats", min(soloBonus(), tier), max(soloBonus(), tier));
|
||||
} else {
|
||||
return Messages.get(this, "typical_stats", min(1, tier), max(1, tier));
|
||||
}
|
||||
return desc;
|
||||
}
|
||||
|
||||
public class Force extends RingBuff {
|
||||
|
|
|
@ -28,16 +28,12 @@ import java.text.DecimalFormat;
|
|||
|
||||
public class RingOfFuror extends Ring {
|
||||
|
||||
public String info() {
|
||||
String desc = desc();
|
||||
if (isKnown()){
|
||||
if (isIdentified()){
|
||||
desc += "\n\n" + Messages.get(this, "stats", new DecimalFormat("#.##").format(100f * (Math.pow(1.105f, soloBonus()) - 1f)));
|
||||
} else {
|
||||
desc += "\n\n" + Messages.get(this, "typical_stats", new DecimalFormat("#.##").format(10.5f));
|
||||
}
|
||||
public String statsInfo() {
|
||||
if (isIdentified()){
|
||||
return Messages.get(this, "stats", new DecimalFormat("#.##").format(100f * (Math.pow(1.105f, soloBonus()) - 1f)));
|
||||
} else {
|
||||
return Messages.get(this, "typical_stats", new DecimalFormat("#.##").format(10.5f));
|
||||
}
|
||||
return desc;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -28,16 +28,12 @@ import java.text.DecimalFormat;
|
|||
|
||||
public class RingOfHaste extends Ring {
|
||||
|
||||
public String info() {
|
||||
String desc = desc();
|
||||
if (isKnown()){
|
||||
if (isIdentified()){
|
||||
desc += "\n\n" + Messages.get(this, "stats", new DecimalFormat("#.##").format(100f * (Math.pow(1.2f, soloBonus()) - 1f)));
|
||||
} else {
|
||||
desc += "\n\n" + Messages.get(this, "typical_stats", new DecimalFormat("#.##").format(20f));
|
||||
}
|
||||
public String statsInfo() {
|
||||
if (isIdentified()){
|
||||
return Messages.get(this, "stats", new DecimalFormat("#.##").format(100f * (Math.pow(1.2f, soloBonus()) - 1f)));
|
||||
} else {
|
||||
return Messages.get(this, "typical_stats", new DecimalFormat("#.##").format(20f));
|
||||
}
|
||||
return desc;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -70,16 +70,12 @@ public class RingOfMight extends Ring {
|
|||
}
|
||||
}
|
||||
|
||||
public String info() {
|
||||
String desc = desc();
|
||||
if (isKnown()){
|
||||
if (isIdentified()){
|
||||
desc += "\n\n" + Messages.get(this, "stats", soloBonus(), new DecimalFormat("#.##").format(100f * (Math.pow(1.035, soloBonus()) - 1f)));
|
||||
} else {
|
||||
desc += "\n\n" + Messages.get(this, "typical_stats", 1, new DecimalFormat("#.##").format(3.5f));
|
||||
}
|
||||
public String statsInfo() {
|
||||
if (isIdentified()){
|
||||
return Messages.get(this, "stats", soloBonus(), new DecimalFormat("#.##").format(100f * (Math.pow(1.035, soloBonus()) - 1f)));
|
||||
} else {
|
||||
return Messages.get(this, "typical_stats", 1, new DecimalFormat("#.##").format(3.5f));
|
||||
}
|
||||
return desc;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -28,16 +28,12 @@ import java.text.DecimalFormat;
|
|||
|
||||
public class RingOfSharpshooting extends Ring {
|
||||
|
||||
public String info() {
|
||||
String desc = desc();
|
||||
if (isKnown()){
|
||||
if (isIdentified()){
|
||||
desc += "\n\n" + Messages.get(this, "stats", soloBonus(), new DecimalFormat("#.##").format(100f * (Math.pow(1.2, soloBonus()) - 1f)));
|
||||
} else {
|
||||
desc += "\n\n" + Messages.get(this, "typical_stats", 1, new DecimalFormat("#.##").format(20f));
|
||||
}
|
||||
public String statsInfo() {
|
||||
if (isIdentified()){
|
||||
return Messages.get(this, "stats", soloBonus(), new DecimalFormat("#.##").format(100f * (Math.pow(1.2, soloBonus()) - 1f)));
|
||||
} else {
|
||||
return Messages.get(this, "typical_stats", 1, new DecimalFormat("#.##").format(20f));
|
||||
}
|
||||
return desc;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -28,16 +28,12 @@ import java.text.DecimalFormat;
|
|||
|
||||
public class RingOfTenacity extends Ring {
|
||||
|
||||
public String info() {
|
||||
String desc = desc();
|
||||
if (isKnown()){
|
||||
if (isIdentified()){
|
||||
desc += "\n\n" + Messages.get(this, "stats", new DecimalFormat("#.##").format(100f * (1f - Math.pow(0.85f, soloBonus()))));
|
||||
} else {
|
||||
desc += "\n\n" + Messages.get(this, "typical_stats", new DecimalFormat("#.##").format(15f));
|
||||
}
|
||||
public String statsInfo() {
|
||||
if (isIdentified()){
|
||||
return Messages.get(this, "stats", new DecimalFormat("#.##").format(100f * (1f - Math.pow(0.85f, soloBonus()))));
|
||||
} else {
|
||||
return Messages.get(this, "typical_stats", new DecimalFormat("#.##").format(15f));
|
||||
}
|
||||
return desc;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -38,16 +38,12 @@ public class RingOfWealth extends Ring {
|
|||
|
||||
private float triesToDrop = 0;
|
||||
|
||||
public String info() {
|
||||
String desc = desc();
|
||||
if (isKnown()){
|
||||
if (isIdentified()){
|
||||
desc += "\n\n" + Messages.get(this, "stats", new DecimalFormat("#.##").format(100f * (Math.pow(1.15f, soloBonus()) - 1f)));
|
||||
} else {
|
||||
desc += "\n\n" + Messages.get(this, "typical_stats", new DecimalFormat("#.##").format(15f));
|
||||
}
|
||||
public String statsInfo() {
|
||||
if (isIdentified()){
|
||||
return Messages.get(this, "stats", new DecimalFormat("#.##").format(100f * (Math.pow(1.15f, soloBonus()) - 1f)));
|
||||
} else {
|
||||
return Messages.get(this, "typical_stats", new DecimalFormat("#.##").format(15f));
|
||||
}
|
||||
return desc;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in New Issue
Block a user