From bb106e84ef364d674462e1e318963ae67fc6f16a Mon Sep 17 00:00:00 2001 From: WayofTime Date: Fri, 12 Feb 2016 06:27:44 -0500 Subject: [PATCH] Fixed tranquility check on seer sigil. --- .../java/WayofTime/bloodmagic/item/sigil/ItemSigilSeer.java | 3 ++- src/main/resources/assets/bloodmagic/lang/en_US.lang | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/WayofTime/bloodmagic/item/sigil/ItemSigilSeer.java b/src/main/java/WayofTime/bloodmagic/item/sigil/ItemSigilSeer.java index 6be0242f..8bde2790 100644 --- a/src/main/java/WayofTime/bloodmagic/item/sigil/ItemSigilSeer.java +++ b/src/main/java/WayofTime/bloodmagic/item/sigil/ItemSigilSeer.java @@ -68,8 +68,9 @@ public class ItemSigilSeer extends ItemSigilBase implements IAltarReader } else if (tile != null && tile instanceof TileIncenseAltar) { TileIncenseAltar altar = (TileIncenseAltar) tile; + altar.recheckConstruction(); double tranquility = altar.tranquility; - ChatUtil.sendNoSpam(player, TextHelper.localize(tooltipBase + "currentTranquility", ((int) (100 * tranquility)) / 100d), TextHelper.localize(tooltipBase + "currentBonus", (int) (100 * altar.incenseAddition))); + ChatUtil.sendNoSpam(player, TextHelper.localize(tooltipBase + "currentTranquility", (int) ((100D * (int) (100 * tranquility)) / 100d)), TextHelper.localize(tooltipBase + "currentBonus", (int) (100 * altar.incenseAddition))); } else { int currentEssence = NetworkHelper.getSoulNetwork(getOwnerUUID(stack)).getCurrentEssence(); diff --git a/src/main/resources/assets/bloodmagic/lang/en_US.lang b/src/main/resources/assets/bloodmagic/lang/en_US.lang index 52153ccf..5d56f69d 100644 --- a/src/main/resources/assets/bloodmagic/lang/en_US.lang +++ b/src/main/resources/assets/bloodmagic/lang/en_US.lang @@ -227,7 +227,7 @@ tooltip.BloodMagic.sigil.seer.currentAltarTier=Current Tier: %d tooltip.BloodMagic.sigil.seer.currentEssence=Current Essence: %,d LP tooltip.BloodMagic.sigil.seer.currentAltarCapacity=Current Capacity: %,d LP tooltip.BloodMagic.sigil.seer.currentCharge=Current Charge: %,d -tooltip.BloodMagic.sigil.seer.currentTranquility=Current Tranquility: %,f +tooltip.BloodMagic.sigil.seer.currentTranquility=Current Tranquility: %,d tooltip.BloodMagic.sigil.seer.currentBonus=Current Bonus: +%,d%% tooltip.BloodMagic.sigil.phantomBridge.desc=&oWalking on thin air... tooltip.BloodMagic.sigil.whirlwind.desc=&oBest not to wear a skirt