v2.2.0: stacked equipped rings now describe their combined effect
This commit is contained in:
@@ -878,31 +878,37 @@ items.rings.ring.not_cursed=This ring is free of malevolent magic.
|
||||
items.rings.ringofaccuracy.name=ring of accuracy
|
||||
items.rings.ringofaccuracy.stats=When worn, this ring will increase your accuracy by _%s%%._
|
||||
items.rings.ringofaccuracy.typical_stats=When worn, this ring will typically increase your accuracy by _%s%%._
|
||||
items.rings.ringofaccuracy.combined_stats=Your equipped rings are combining their power, increasing your accuracy by _%s%%_ in total.
|
||||
items.rings.ringofaccuracy.desc=This ring increases your focus, making it easier for your attacks to find their mark. A cursed ring will instead make it harder for your attacks to connect.
|
||||
|
||||
items.rings.ringofarcana.name=ring of arcana
|
||||
items.rings.ringofarcana.stats=When worn, this ring will increase the power of enchantments and glyphs by _%s%%._
|
||||
items.rings.ringofarcana.typical_stats=When worn, this ring will typically increase the power of enchantments and glyphs by _%s%%._
|
||||
items.rings.ringofarcana.combined_stats=Your equipped rings are combining their power, increasing the power of enchantments and glyphs by _%s%%_ in total.
|
||||
items.rings.ringofarcana.desc=This ring enhances magical enchantments on weapons and glyphs on armor, including curses! It first increases activation chance, and then increases the strength of the effect once activation chance is 100%. A cursed ring will instead weaken enchantments, glyphs, and curses.
|
||||
|
||||
items.rings.ringofelements.name=ring of elements
|
||||
items.rings.ringofelements.stats=When worn, this ring will provide _%s%%_ elemental resistance.
|
||||
items.rings.ringofelements.typical_stats=When worn, this ring will typically provide _%s%%_ elemental resistance.
|
||||
items.rings.ringofelements.combined_stats=Your equipped rings are combining their power, providing _%s%%_ elemental resistance in total.
|
||||
items.rings.ringofelements.desc=This ring provides resistance to most elemental and magical effects, decreasing damage and debuff duration. Naturally a cursed ring will instead worsen these effects.
|
||||
|
||||
items.rings.ringofenergy.name=ring of energy
|
||||
items.rings.ringofenergy.stats=When worn, this ring will increase wand, artifact, and heroic armor charge speed by _%s%%._
|
||||
items.rings.ringofenergy.typical_stats=When worn, this ring will typically increase wand, artifact, and heroic armor charge speed by _%s%%._
|
||||
items.rings.ringofenergy.combined_stats=Your equipped rings are combining their power, increasing charge speed by _%s%%_ in total.
|
||||
items.rings.ringofenergy.desc=Your magical equipment will recharge more quickly in the arcane field that radiates from this ring. A cursed ring will instead slow recharge.
|
||||
|
||||
items.rings.ringofevasion.name=ring of evasion
|
||||
items.rings.ringofevasion.stats=When worn, this ring will increase your evasion by _%s%%._
|
||||
items.rings.ringofevasion.typical_stats=When worn, this ring will typically increase your evasion by _%s%%._
|
||||
items.rings.ringofevasion.combined_stats=Your equipped rings are combining their power, increasing your evasion by _%s%%_ in total.
|
||||
items.rings.ringofevasion.desc=This ring quickens the wearer's reactions, making it harder to land blows on them. A cursed ring will instead make the user easier to strike.
|
||||
|
||||
items.rings.ringofforce.name=ring of force
|
||||
items.rings.ringofforce.stats=When unarmed, at your current strength, this ring will deal _%1$d-%2$d damage._ With a weapon equipped, this ring will increase damage by _%3$d._
|
||||
items.rings.ringofforce.typical_stats=When unarmed, at your current strength, typically this ring will deal _%1$d-%2$d damage._ With a weapon equipped, typically this ring will increase damage by _%3$d._
|
||||
items.rings.ringofforce.combined_stats=Your equipped rings are combining their power, dealing a total of _%1$d-%2$d damage_ without a weapon, or _+%3$d damage_ with one.
|
||||
items.rings.ringofforce.ability_name=brawler's stance
|
||||
items.rings.ringofforce.ability_desc=The Duelist can adopt a _brawler's stance_ with this ring. While in this stance the Duelist's regular attacks will use this ring even with a weapon equipped. The ring will also inherit the weapon's enchantment and augmentation. Each regular attack in this stance consumes 1/4 of a weapon charge.
|
||||
items.rings.ringofforce.desc=This ring enhances the force of the wearer's melee blows. This extra power is fairly weak when wielding weapons, but an unarmed attack will be made much stronger. A cursed ring will instead weaken the wearer's blows.
|
||||
@@ -912,31 +918,37 @@ items.rings.ringofforce$brawlersstance.desc=While in this stance the Duelist's r
|
||||
items.rings.ringoffuror.name=ring of furor
|
||||
items.rings.ringoffuror.stats=When worn, this ring will increase the speed of your attacks by _%s%%._
|
||||
items.rings.ringoffuror.typical_stats=When worn, this ring will typically increase the speed of your attacks by _%s%%._
|
||||
items.rings.ringoffuror.combined_stats=Your equipped rings are combining their power, increasing the speed of your attacks by _%s%%_ in total.
|
||||
items.rings.ringoffuror.desc=This ring grants the wearer an inner fury, allowing them to attack more rapidly. A cursed ring will instead slow the wearer's speed of attack.
|
||||
|
||||
items.rings.ringofhaste.name=ring of haste
|
||||
items.rings.ringofhaste.stats=When worn, this ring will increase your movement speed by _%s%%._
|
||||
items.rings.ringofhaste.typical_stats=When worn, this ring will typically increase your movement speed by _%s%%._
|
||||
items.rings.ringofhaste.combined_stats=Your equipped rings are combining their power, increasing your movement speed by _%s%%_ in total.
|
||||
items.rings.ringofhaste.desc=This ring reduces the stress of movement on the wearer, allowing them to run at superhuman speeds. A cursed ring will instead weigh the wearer down.
|
||||
|
||||
items.rings.ringofmight.name=ring of might
|
||||
items.rings.ringofmight.stats=When worn, this ring will increase your strength by _%1$d_ and your max HP by _%2$s%%._
|
||||
items.rings.ringofmight.typical_stats=When worn, this ring will typically increase your strength by _%1$d_ and your max HP by _%2$s%%._
|
||||
items.rings.ringofmight.combined_stats=Your equipped rings are combining their power, boosting your strength by _%1$d_ and max HP by _%2$s%%_ in total.
|
||||
items.rings.ringofmight.desc=This ring enhances the physical traits of the wearer, granting them greater physical strength and constitution. A cursed ring will weaken the wearer.
|
||||
|
||||
items.rings.ringofsharpshooting.name=ring of sharpshooting
|
||||
items.rings.ringofsharpshooting.stats=When worn, this ring will boost the damage of your thrown weapons as if their level was increased by _%1$d_, and will increase their durability by _%2$s%%._
|
||||
items.rings.ringofsharpshooting.typical_stats=When worn, this ring will typically boost the damage of your thrown weapons as if their level was increased by _%1$d_ and will increase their durability by _%2$s%%._
|
||||
items.rings.ringofsharpshooting.combined_stats=Your equipped rings are combining their power, boosting effective thrown weapon level by _%1$d_ and increasing their durability by _%2$s%%_ in total.
|
||||
items.rings.ringofsharpshooting.desc=This ring enhances the wearer's precision and aim, which will make all projectile weapons more damaging and durable. A cursed ring will have the opposite effect.
|
||||
|
||||
items.rings.ringoftenacity.name=ring of tenacity
|
||||
items.rings.ringoftenacity.stats=When worn, this ring will reduce the damage you take by up to _%s%%._
|
||||
items.rings.ringoftenacity.typical_stats=When worn, this ring will typically reduce the damage you take by up to _%s%%._
|
||||
items.rings.ringoftenacity.combined_stats=Your equipped rings are combining their power, reducing the damage you take by up to _%s%%_ in total.
|
||||
items.rings.ringoftenacity.desc=When worn, this ring will allow the wearer to resist normally mortal strikes. The more injured the user is, the more resistant they will be to damage. A cursed ring will instead make it easier for enemies to execute the wearer.
|
||||
|
||||
items.rings.ringofwealth.name=ring of wealth
|
||||
items.rings.ringofwealth.stats=When worn, this ring will increase your luck by _%s%%._
|
||||
items.rings.ringofwealth.typical_stats=When worn, this ring will typically increase your luck by _%s%%._
|
||||
items.rings.ringofwealth.combined_stats=Your equipped rings are combining their power, increasing your luck by _%s%%_ in total.
|
||||
items.rings.ringofwealth.desc=This ring acts like a magnet for treasure, increasing the likelihood that enemies and containers will be carrying valuable items. A cursed ring will instead reduce your chance of receiving loot.
|
||||
|
||||
|
||||
|
||||
@@ -21,6 +21,7 @@
|
||||
|
||||
package com.shatteredpixel.shatteredpixeldungeon.items.rings;
|
||||
|
||||
import com.shatteredpixel.shatteredpixeldungeon.Dungeon;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.actors.Char;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.messages.Messages;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.sprites.ItemSpriteSheet;
|
||||
@@ -33,7 +34,13 @@ public class RingOfAccuracy extends Ring {
|
||||
|
||||
public String statsInfo() {
|
||||
if (isIdentified()){
|
||||
return Messages.get(this, "stats", Messages.decimalFormat("#.##", 100f * (Math.pow(1.3f, soloBuffedBonus()) - 1f)));
|
||||
String info = Messages.get(this, "stats",
|
||||
Messages.decimalFormat("#.##", 100f * (Math.pow(1.3f, soloBuffedBonus()) - 1f)));
|
||||
if (isEquipped(Dungeon.hero) && soloBuffedBonus() != getBuffedBonus(Dungeon.hero, Accuracy.class)){
|
||||
info += "\n\n" + Messages.get(this, "combined_stats",
|
||||
Messages.decimalFormat("#.##", 100f * (Math.pow(1.3f, getBuffedBonus(Dungeon.hero, Accuracy.class)) - 1f)));
|
||||
}
|
||||
return info;
|
||||
} else {
|
||||
return Messages.get(this, "typical_stats", Messages.decimalFormat("#.##", 30f));
|
||||
}
|
||||
|
||||
@@ -21,6 +21,7 @@
|
||||
|
||||
package com.shatteredpixel.shatteredpixeldungeon.items.rings;
|
||||
|
||||
import com.shatteredpixel.shatteredpixeldungeon.Dungeon;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.actors.Char;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.messages.Messages;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.sprites.ItemSpriteSheet;
|
||||
@@ -33,7 +34,13 @@ public class RingOfArcana extends Ring {
|
||||
|
||||
public String statsInfo() {
|
||||
if (isIdentified()){
|
||||
return Messages.get(this, "stats", Messages.decimalFormat("#.##", 100f * (Math.pow(1.175f, soloBuffedBonus()) - 1f)));
|
||||
String info = Messages.get(this, "stats",
|
||||
Messages.decimalFormat("#.##", 100f * (Math.pow(1.175f, soloBuffedBonus()) - 1f)));
|
||||
if (isEquipped(Dungeon.hero) && soloBuffedBonus() != getBuffedBonus(Dungeon.hero, Arcana.class)){
|
||||
info += "\n\n" + Messages.get(this, "combined_stats",
|
||||
Messages.decimalFormat("#.##", 100f * (Math.pow(1.175f, getBuffedBonus(Dungeon.hero, Arcana.class)) - 1f)));
|
||||
}
|
||||
return info;
|
||||
} else {
|
||||
return Messages.get(this, "typical_stats", Messages.decimalFormat("#.##", 17.5f));
|
||||
}
|
||||
|
||||
@@ -21,6 +21,7 @@
|
||||
|
||||
package com.shatteredpixel.shatteredpixeldungeon.items.rings;
|
||||
|
||||
import com.shatteredpixel.shatteredpixeldungeon.Dungeon;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.actors.Char;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.actors.blobs.Electricity;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.actors.blobs.ToxicGas;
|
||||
@@ -45,7 +46,13 @@ public class RingOfElements extends Ring {
|
||||
|
||||
public String statsInfo() {
|
||||
if (isIdentified()){
|
||||
return Messages.get(this, "stats", Messages.decimalFormat("#.##", 100f * (1f - Math.pow(0.825f, soloBuffedBonus()))));
|
||||
String info = Messages.get(this, "stats",
|
||||
Messages.decimalFormat("#.##", 100f * (1f - Math.pow(0.825f, soloBuffedBonus()))));
|
||||
if (isEquipped(Dungeon.hero) && soloBuffedBonus() != getBuffedBonus(Dungeon.hero, Resistance.class)){
|
||||
info += "\n\n" + Messages.get(this, "combined_stats",
|
||||
Messages.decimalFormat("#.##", 100f * (1f - Math.pow(0.825f, getBuffedBonus(Dungeon.hero, Resistance.class)))));
|
||||
}
|
||||
return info;
|
||||
} else {
|
||||
return Messages.get(this, "typical_stats", Messages.decimalFormat("#.##", 17.5f));
|
||||
}
|
||||
|
||||
@@ -21,6 +21,7 @@
|
||||
|
||||
package com.shatteredpixel.shatteredpixeldungeon.items.rings;
|
||||
|
||||
import com.shatteredpixel.shatteredpixeldungeon.Dungeon;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.actors.Char;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.actors.hero.Hero;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.actors.hero.HeroClass;
|
||||
@@ -36,8 +37,13 @@ public class RingOfEnergy extends Ring {
|
||||
|
||||
public String statsInfo() {
|
||||
if (isIdentified()){
|
||||
return Messages.get(this, "stats",
|
||||
String info = Messages.get(this, "stats",
|
||||
Messages.decimalFormat("#.##", 100f * (Math.pow(1.15f, soloBuffedBonus()) - 1f)));
|
||||
if (isEquipped(Dungeon.hero) && soloBuffedBonus() != getBuffedBonus(Dungeon.hero, Energy.class)){
|
||||
info += "\n\n" + Messages.get(this, "combined_stats",
|
||||
Messages.decimalFormat("#.##", 100f * (Math.pow(1.15f, getBuffedBonus(Dungeon.hero, Energy.class)) - 1f)));
|
||||
}
|
||||
return info;
|
||||
} else {
|
||||
return Messages.get(this, "typical_stats",
|
||||
Messages.decimalFormat("#.##", 15f));
|
||||
|
||||
@@ -21,6 +21,7 @@
|
||||
|
||||
package com.shatteredpixel.shatteredpixeldungeon.items.rings;
|
||||
|
||||
import com.shatteredpixel.shatteredpixeldungeon.Dungeon;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.actors.Char;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.messages.Messages;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.sprites.ItemSpriteSheet;
|
||||
@@ -33,7 +34,13 @@ public class RingOfEvasion extends Ring {
|
||||
|
||||
public String statsInfo() {
|
||||
if (isIdentified()){
|
||||
return Messages.get(this, "stats", Messages.decimalFormat("#.##", 100f * (Math.pow(1.125f, soloBuffedBonus()) - 1f)));
|
||||
String info = Messages.get(this, "stats",
|
||||
Messages.decimalFormat("#.##", 100f * (Math.pow(1.125f, soloBuffedBonus()) - 1f)));
|
||||
if (isEquipped(Dungeon.hero) && soloBuffedBonus() != getBuffedBonus(Dungeon.hero, Evasion.class)){
|
||||
info += "\n\n" + Messages.get(this, "combined_stats",
|
||||
Messages.decimalFormat("#.##", 100f * (Math.pow(1.125f, getBuffedBonus(Dungeon.hero, Evasion.class)) - 1f)));
|
||||
}
|
||||
return info;
|
||||
} else {
|
||||
return Messages.get(this, "typical_stats", Messages.decimalFormat("#.##", 12.5f));
|
||||
}
|
||||
|
||||
@@ -114,7 +114,12 @@ public class RingOfForce extends Ring {
|
||||
float tier = tier(Dungeon.hero.STR());
|
||||
if (isIdentified()) {
|
||||
int level = soloBuffedBonus();
|
||||
return Messages.get(this, "stats", min(level, tier), max(level, tier), level);
|
||||
String info = Messages.get(this, "stats", min(level, tier), max(level, tier), level);
|
||||
if (isEquipped(Dungeon.hero) && soloBuffedBonus() != getBuffedBonus(Dungeon.hero, Force.class)){
|
||||
level = getBuffedBonus(Dungeon.hero, Force.class);
|
||||
info += "\n\n" + Messages.get(this, "combined_stats", min(level, tier), max(level, tier), level);
|
||||
}
|
||||
return info;
|
||||
} else {
|
||||
return Messages.get(this, "typical_stats", min(1, tier), max(1, tier), 1);
|
||||
}
|
||||
|
||||
@@ -21,6 +21,7 @@
|
||||
|
||||
package com.shatteredpixel.shatteredpixeldungeon.items.rings;
|
||||
|
||||
import com.shatteredpixel.shatteredpixeldungeon.Dungeon;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.actors.Char;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.messages.Messages;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.sprites.ItemSpriteSheet;
|
||||
@@ -33,7 +34,13 @@ public class RingOfFuror extends Ring {
|
||||
|
||||
public String statsInfo() {
|
||||
if (isIdentified()){
|
||||
return Messages.get(this, "stats", Messages.decimalFormat("#.##", 100f * (Math.pow(1.0905f, soloBuffedBonus()) - 1f)));
|
||||
String info = Messages.get(this, "stats",
|
||||
Messages.decimalFormat("#.##", 100f * (Math.pow(1.0905f, soloBuffedBonus()) - 1f)));
|
||||
if (isEquipped(Dungeon.hero) && soloBuffedBonus() != getBuffedBonus(Dungeon.hero, Furor.class)){
|
||||
info += "\n\n" + Messages.get(this, "combined_stats",
|
||||
Messages.decimalFormat("#.##", 100f * (Math.pow(1.0905f, getBuffedBonus(Dungeon.hero, Furor.class)) - 1f)));
|
||||
}
|
||||
return info;
|
||||
} else {
|
||||
return Messages.get(this, "typical_stats", Messages.decimalFormat("#.##", 9.05f));
|
||||
}
|
||||
|
||||
@@ -21,6 +21,7 @@
|
||||
|
||||
package com.shatteredpixel.shatteredpixeldungeon.items.rings;
|
||||
|
||||
import com.shatteredpixel.shatteredpixeldungeon.Dungeon;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.actors.Char;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.messages.Messages;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.sprites.ItemSpriteSheet;
|
||||
@@ -33,7 +34,13 @@ public class RingOfHaste extends Ring {
|
||||
|
||||
public String statsInfo() {
|
||||
if (isIdentified()){
|
||||
return Messages.get(this, "stats", Messages.decimalFormat("#.##", 100f * (Math.pow(1.2f, soloBuffedBonus()) - 1f)));
|
||||
String info = Messages.get(this, "stats",
|
||||
Messages.decimalFormat("#.##", 100f * (Math.pow(1.2f, soloBuffedBonus()) - 1f)));
|
||||
if (isEquipped(Dungeon.hero) && soloBuffedBonus() != getBuffedBonus(Dungeon.hero, Haste.class)){
|
||||
info += "\n\n" + Messages.get(this, "combined_stats",
|
||||
Messages.decimalFormat("#.##", 100f * (Math.pow(1.2f, getBuffedBonus(Dungeon.hero, Haste.class)) - 1f)));
|
||||
}
|
||||
return info;
|
||||
} else {
|
||||
return Messages.get(this, "typical_stats", Messages.decimalFormat("#.##", 20f));
|
||||
}
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
package com.shatteredpixel.shatteredpixeldungeon.items.rings;
|
||||
|
||||
|
||||
import com.shatteredpixel.shatteredpixeldungeon.Dungeon;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.actors.Char;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.actors.hero.Hero;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.items.Item;
|
||||
@@ -75,7 +76,13 @@ public class RingOfMight extends Ring {
|
||||
|
||||
public String statsInfo() {
|
||||
if (isIdentified()){
|
||||
return Messages.get(this, "stats", soloBonus(), Messages.decimalFormat("#.##", 100f * (Math.pow(1.035, soloBuffedBonus()) - 1f)));
|
||||
String info = Messages.get(this, "stats",
|
||||
soloBonus(), Messages.decimalFormat("#.##", 100f * (Math.pow(1.035, soloBuffedBonus()) - 1f)));
|
||||
if (isEquipped(Dungeon.hero) && soloBuffedBonus() != getBuffedBonus(Dungeon.hero, Might.class)){
|
||||
info += "\n\n" + Messages.get(this, "combined_stats",
|
||||
getBonus(Dungeon.hero, Might.class), Messages.decimalFormat("#.##", 100f * (Math.pow(1.035, getBuffedBonus(Dungeon.hero, Might.class)) - 1f)));
|
||||
}
|
||||
return info;
|
||||
} else {
|
||||
return Messages.get(this, "typical_stats", 1, Messages.decimalFormat("#.##", 3.5f));
|
||||
}
|
||||
|
||||
@@ -21,6 +21,7 @@
|
||||
|
||||
package com.shatteredpixel.shatteredpixeldungeon.items.rings;
|
||||
|
||||
import com.shatteredpixel.shatteredpixeldungeon.Dungeon;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.actors.Char;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.messages.Messages;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.sprites.ItemSpriteSheet;
|
||||
@@ -33,7 +34,13 @@ public class RingOfSharpshooting extends Ring {
|
||||
|
||||
public String statsInfo() {
|
||||
if (isIdentified()){
|
||||
return Messages.get(this, "stats", soloBuffedBonus(), Messages.decimalFormat("#.##", 100f * (Math.pow(1.2, soloBonus()) - 1f)));
|
||||
String info = Messages.get(this, "stats",
|
||||
soloBuffedBonus(), Messages.decimalFormat("#.##", 100f * (Math.pow(1.2, soloBonus()) - 1f)));
|
||||
if (isEquipped(Dungeon.hero) && soloBuffedBonus() != getBuffedBonus(Dungeon.hero, Aim.class)){
|
||||
info += "\n\n" + Messages.get(this, "combined_stats",
|
||||
getBuffedBonus(Dungeon.hero, Aim.class), Messages.decimalFormat("#.##", 100f * (Math.pow(1.2, getBonus(Dungeon.hero, Aim.class)) - 1f)));
|
||||
}
|
||||
return info;
|
||||
} else {
|
||||
return Messages.get(this, "typical_stats", 1, Messages.decimalFormat("#.##", 20f));
|
||||
}
|
||||
|
||||
@@ -21,6 +21,7 @@
|
||||
|
||||
package com.shatteredpixel.shatteredpixeldungeon.items.rings;
|
||||
|
||||
import com.shatteredpixel.shatteredpixeldungeon.Dungeon;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.actors.Char;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.messages.Messages;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.sprites.ItemSpriteSheet;
|
||||
@@ -33,7 +34,13 @@ public class RingOfTenacity extends Ring {
|
||||
|
||||
public String statsInfo() {
|
||||
if (isIdentified()){
|
||||
return Messages.get(this, "stats", Messages.decimalFormat("#.##", 100f * (1f - Math.pow(0.85f, soloBuffedBonus()))));
|
||||
String info = Messages.get(this, "stats",
|
||||
Messages.decimalFormat("#.##", 100f * (1f - Math.pow(0.85f, soloBuffedBonus()))));
|
||||
if (isEquipped(Dungeon.hero) && soloBuffedBonus() != getBuffedBonus(Dungeon.hero, Tenacity.class)){
|
||||
info += "\n\n" + Messages.get(this, "combined_stats",
|
||||
Messages.decimalFormat("#.##", 100f * (1f - Math.pow(0.85f, getBuffedBonus(Dungeon.hero, Tenacity.class)))));
|
||||
}
|
||||
return info;
|
||||
} else {
|
||||
return Messages.get(this, "typical_stats", Messages.decimalFormat("#.##", 15f));
|
||||
}
|
||||
|
||||
@@ -60,7 +60,13 @@ public class RingOfWealth extends Ring {
|
||||
|
||||
public String statsInfo() {
|
||||
if (isIdentified()){
|
||||
return Messages.get(this, "stats", Messages.decimalFormat("#.##", 100f * (Math.pow(1.20f, soloBuffedBonus()) - 1f)));
|
||||
String info = Messages.get(this, "stats",
|
||||
Messages.decimalFormat("#.##", 100f * (Math.pow(1.20f, soloBuffedBonus()) - 1f)));
|
||||
if (isEquipped(Dungeon.hero) && soloBuffedBonus() != getBuffedBonus(Dungeon.hero, Wealth.class)){
|
||||
info += "\n\n" + Messages.get(this, "combined_stats",
|
||||
Messages.decimalFormat("#.##", 100f * (Math.pow(1.20f, getBuffedBonus(Dungeon.hero, Wealth.class)) - 1f)));
|
||||
}
|
||||
return info;
|
||||
} else {
|
||||
return Messages.get(this, "typical_stats", Messages.decimalFormat("#.##", 20f));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user