From 5e299396924eda264259351398e3c29724dd19d9 Mon Sep 17 00:00:00 2001
From: MobiusDev <8391001+MobiusDevelopment@users.noreply.github.com>
Date: Sat, 18 Nov 2017 00:23:25 +0000
Subject: [PATCH] Removed NpcViewMod cast chance to long.
---
.../game/data/scripts/handlers/bypasshandlers/NpcViewMod.java | 2 +-
.../game/data/scripts/handlers/bypasshandlers/NpcViewMod.java | 2 +-
.../game/data/scripts/handlers/bypasshandlers/NpcViewMod.java | 2 +-
.../game/data/scripts/handlers/bypasshandlers/NpcViewMod.java | 2 +-
.../game/data/scripts/handlers/bypasshandlers/NpcViewMod.java | 2 +-
.../game/data/scripts/handlers/bypasshandlers/NpcViewMod.java | 2 +-
6 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/handlers/bypasshandlers/NpcViewMod.java b/L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/handlers/bypasshandlers/NpcViewMod.java
index ff46e2dcd5..27bbae841c 100644
--- a/L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/handlers/bypasshandlers/NpcViewMod.java
+++ b/L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/handlers/bypasshandlers/NpcViewMod.java
@@ -537,7 +537,7 @@ public class NpcViewMod implements IBypassHandler
sb.append("
Chance: | ");
sb.append("");
- sb.append(chanceFormat.format(Math.min((long) dropItem.getChance() * rateChance, 100)));
+ sb.append(chanceFormat.format(Math.min(dropItem.getChance() * rateChance, 100)));
sb.append("% |
| |
");
if ((sb.length() + rightSb.length() + leftSb.length()) < 16000) // limit of 32766?
diff --git a/L2J_Mobius_2.5_Underground/dist/game/data/scripts/handlers/bypasshandlers/NpcViewMod.java b/L2J_Mobius_2.5_Underground/dist/game/data/scripts/handlers/bypasshandlers/NpcViewMod.java
index ff46e2dcd5..27bbae841c 100644
--- a/L2J_Mobius_2.5_Underground/dist/game/data/scripts/handlers/bypasshandlers/NpcViewMod.java
+++ b/L2J_Mobius_2.5_Underground/dist/game/data/scripts/handlers/bypasshandlers/NpcViewMod.java
@@ -537,7 +537,7 @@ public class NpcViewMod implements IBypassHandler
sb.append("Chance: | ");
sb.append("");
- sb.append(chanceFormat.format(Math.min((long) dropItem.getChance() * rateChance, 100)));
+ sb.append(chanceFormat.format(Math.min(dropItem.getChance() * rateChance, 100)));
sb.append("% |
| |
");
if ((sb.length() + rightSb.length() + leftSb.length()) < 16000) // limit of 32766?
diff --git a/L2J_Mobius_3.0_Helios/dist/game/data/scripts/handlers/bypasshandlers/NpcViewMod.java b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/handlers/bypasshandlers/NpcViewMod.java
index ff46e2dcd5..27bbae841c 100644
--- a/L2J_Mobius_3.0_Helios/dist/game/data/scripts/handlers/bypasshandlers/NpcViewMod.java
+++ b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/handlers/bypasshandlers/NpcViewMod.java
@@ -537,7 +537,7 @@ public class NpcViewMod implements IBypassHandler
sb.append("Chance: | ");
sb.append("");
- sb.append(chanceFormat.format(Math.min((long) dropItem.getChance() * rateChance, 100)));
+ sb.append(chanceFormat.format(Math.min(dropItem.getChance() * rateChance, 100)));
sb.append("% |
| |
");
if ((sb.length() + rightSb.length() + leftSb.length()) < 16000) // limit of 32766?
diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/handlers/bypasshandlers/NpcViewMod.java b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/handlers/bypasshandlers/NpcViewMod.java
index ff46e2dcd5..27bbae841c 100644
--- a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/handlers/bypasshandlers/NpcViewMod.java
+++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/handlers/bypasshandlers/NpcViewMod.java
@@ -537,7 +537,7 @@ public class NpcViewMod implements IBypassHandler
sb.append("Chance: | ");
sb.append("");
- sb.append(chanceFormat.format(Math.min((long) dropItem.getChance() * rateChance, 100)));
+ sb.append(chanceFormat.format(Math.min(dropItem.getChance() * rateChance, 100)));
sb.append("% |
| |
");
if ((sb.length() + rightSb.length() + leftSb.length()) < 16000) // limit of 32766?
diff --git a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/handlers/bypasshandlers/NpcViewMod.java b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/handlers/bypasshandlers/NpcViewMod.java
index 90532aeefa..3fc8a6c1d8 100644
--- a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/handlers/bypasshandlers/NpcViewMod.java
+++ b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/handlers/bypasshandlers/NpcViewMod.java
@@ -403,7 +403,7 @@ public class NpcViewMod implements IBypassHandler
sb.append("Chance: | ");
sb.append("");
- sb.append(chanceFormat.format(Math.min((long) dropItem.getChance() * rateChance, 100)));
+ sb.append(chanceFormat.format(Math.min(dropItem.getChance() * rateChance, 100)));
sb.append("% |
| |
");
if ((sb.length() + rightSb.length() + leftSb.length()) < 16000) // limit of 32766?
diff --git a/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/scripts/handlers/bypasshandlers/NpcViewMod.java b/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/scripts/handlers/bypasshandlers/NpcViewMod.java
index ff46e2dcd5..27bbae841c 100644
--- a/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/scripts/handlers/bypasshandlers/NpcViewMod.java
+++ b/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/scripts/handlers/bypasshandlers/NpcViewMod.java
@@ -537,7 +537,7 @@ public class NpcViewMod implements IBypassHandler
sb.append("Chance: | ");
sb.append("");
- sb.append(chanceFormat.format(Math.min((long) dropItem.getChance() * rateChance, 100)));
+ sb.append(chanceFormat.format(Math.min(dropItem.getChance() * rateChance, 100)));
sb.append("% |
| |
");
if ((sb.length() + rightSb.length() + leftSb.length()) < 16000) // limit of 32766?