current charge localized
This commit is contained in:
1 parent
299852f32d
commit
2c53673fae
2 files changed
+3
-5
No files matched your search
@@ -170,7 +170,7 @@ namespace CalamityMod.Items
|
||||
{
|
||||
// Convert current charge ratio into a percentage.
|
||||
float displayedPercent = ChargeRatio * 100f;
|
||||
TooltipLine line = new TooltipLine(Mod, "CalamityCharge", $"Current Charge: {displayedPercent:N1}%");
|
||||
TooltipLine line = new TooltipLine(Mod, "CalamityMod:Charge", CalamityUtils.GetText("Misc.Charge").Format(displayedPercent.ToString("N1")));
|
||||
tooltips.Insert(++lastTooltipIndex, line);
|
||||
}
|
||||
|
||||
@@ -407,10 +407,6 @@ namespace CalamityMod.Items
|
||||
#endregion
|
||||
|
||||
#region Vanilla Item Tooltip Modification
|
||||
|
||||
// Turns a number into a string of increased mining speed.
|
||||
public static string MiningSpeedString(int percent) => $"\n{percent}% increased mining speed";
|
||||
|
||||
private static void ModifyVanillaTooltips(Item item, IList<TooltipLine> tooltips)
|
||||
{
|
||||
#region Modular Tooltip Editing Code
|
||||
|
||||
@@ -75,3 +75,5 @@ Polaris4: You let Polaris cuddle your arm
|
||||
Polaris5: You pet Polaris
|
||||
// Point Blank
|
||||
PointBlank: Does extra damage to enemies shot at point-blank range
|
||||
// Charge
|
||||
Charge: Current Charge: {0}%
|
||||
Reference in new issue
Block a user