Minor code cleanup.
Contributed by nasseka.
This commit is contained in:
@@ -1449,7 +1449,7 @@ public class Attackable extends Npc
|
|||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
{
|
{
|
||||||
mul = 1.;
|
mul = 1;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -119,8 +119,8 @@ public class PlayerStat extends PlayableStat
|
|||||||
|
|
||||||
final double baseExp = addToExp;
|
final double baseExp = addToExp;
|
||||||
final double baseSp = addToSp;
|
final double baseSp = addToSp;
|
||||||
double bonusExp = 1.;
|
double bonusExp = 1;
|
||||||
double bonusSp = 1.;
|
double bonusSp = 1;
|
||||||
if (useBonuses)
|
if (useBonuses)
|
||||||
{
|
{
|
||||||
if (player.isFishing())
|
if (player.isFishing())
|
||||||
|
@@ -1395,7 +1395,7 @@ public class Attackable extends Npc
|
|||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
{
|
{
|
||||||
mul = 1.;
|
mul = 1;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -120,8 +120,8 @@ public class PlayerStat extends PlayableStat
|
|||||||
|
|
||||||
final double baseExp = addToExp;
|
final double baseExp = addToExp;
|
||||||
final double baseSp = addToSp;
|
final double baseSp = addToSp;
|
||||||
double bonusExp = 1.;
|
double bonusExp = 1;
|
||||||
double bonusSp = 1.;
|
double bonusSp = 1;
|
||||||
if (useBonuses)
|
if (useBonuses)
|
||||||
{
|
{
|
||||||
if (player.isFishing())
|
if (player.isFishing())
|
||||||
|
@@ -1395,7 +1395,7 @@ public class Attackable extends Npc
|
|||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
{
|
{
|
||||||
mul = 1.;
|
mul = 1;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -120,8 +120,8 @@ public class PlayerStat extends PlayableStat
|
|||||||
|
|
||||||
final double baseExp = addToExp;
|
final double baseExp = addToExp;
|
||||||
final double baseSp = addToSp;
|
final double baseSp = addToSp;
|
||||||
double bonusExp = 1.;
|
double bonusExp = 1;
|
||||||
double bonusSp = 1.;
|
double bonusSp = 1;
|
||||||
if (useBonuses)
|
if (useBonuses)
|
||||||
{
|
{
|
||||||
if (player.isFishing())
|
if (player.isFishing())
|
||||||
|
@@ -1395,7 +1395,7 @@ public class Attackable extends Npc
|
|||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
{
|
{
|
||||||
mul = 1.;
|
mul = 1;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -120,8 +120,8 @@ public class PlayerStat extends PlayableStat
|
|||||||
|
|
||||||
final double baseExp = addToExp;
|
final double baseExp = addToExp;
|
||||||
final double baseSp = addToSp;
|
final double baseSp = addToSp;
|
||||||
double bonusExp = 1.;
|
double bonusExp = 1;
|
||||||
double bonusSp = 1.;
|
double bonusSp = 1;
|
||||||
if (useBonuses)
|
if (useBonuses)
|
||||||
{
|
{
|
||||||
if (player.isFishing())
|
if (player.isFishing())
|
||||||
|
@@ -1383,7 +1383,7 @@ public class Attackable extends Npc
|
|||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
{
|
{
|
||||||
mul = 1.;
|
mul = 1;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -117,8 +117,8 @@ public class PlayerStat extends PlayableStat
|
|||||||
|
|
||||||
final double baseExp = addToExp;
|
final double baseExp = addToExp;
|
||||||
final double baseSp = addToSp;
|
final double baseSp = addToSp;
|
||||||
double bonusExp = 1.;
|
double bonusExp = 1;
|
||||||
double bonusSp = 1.;
|
double bonusSp = 1;
|
||||||
if (useBonuses)
|
if (useBonuses)
|
||||||
{
|
{
|
||||||
if (player.isFishing())
|
if (player.isFishing())
|
||||||
|
@@ -1383,7 +1383,7 @@ public class Attackable extends Npc
|
|||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
{
|
{
|
||||||
mul = 1.;
|
mul = 1;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -117,8 +117,8 @@ public class PlayerStat extends PlayableStat
|
|||||||
|
|
||||||
final double baseExp = addToExp;
|
final double baseExp = addToExp;
|
||||||
final double baseSp = addToSp;
|
final double baseSp = addToSp;
|
||||||
double bonusExp = 1.;
|
double bonusExp = 1;
|
||||||
double bonusSp = 1.;
|
double bonusSp = 1;
|
||||||
if (useBonuses)
|
if (useBonuses)
|
||||||
{
|
{
|
||||||
if (player.isFishing())
|
if (player.isFishing())
|
||||||
|
@@ -1383,7 +1383,7 @@ public class Attackable extends Npc
|
|||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
{
|
{
|
||||||
mul = 1.;
|
mul = 1;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -117,8 +117,8 @@ public class PlayerStat extends PlayableStat
|
|||||||
|
|
||||||
final double baseExp = addToExp;
|
final double baseExp = addToExp;
|
||||||
final double baseSp = addToSp;
|
final double baseSp = addToSp;
|
||||||
double bonusExp = 1.;
|
double bonusExp = 1;
|
||||||
double bonusSp = 1.;
|
double bonusSp = 1;
|
||||||
if (useBonuses)
|
if (useBonuses)
|
||||||
{
|
{
|
||||||
if (player.isFishing())
|
if (player.isFishing())
|
||||||
|
@@ -1394,7 +1394,7 @@ public class Attackable extends Npc
|
|||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
{
|
{
|
||||||
mul = 1.;
|
mul = 1;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -117,8 +117,8 @@ public class PlayerStat extends PlayableStat
|
|||||||
|
|
||||||
final double baseExp = addToExp;
|
final double baseExp = addToExp;
|
||||||
final double baseSp = addToSp;
|
final double baseSp = addToSp;
|
||||||
double bonusExp = 1.;
|
double bonusExp = 1;
|
||||||
double bonusSp = 1.;
|
double bonusSp = 1;
|
||||||
if (useBonuses)
|
if (useBonuses)
|
||||||
{
|
{
|
||||||
if (player.isFishing())
|
if (player.isFishing())
|
||||||
|
@@ -1394,7 +1394,7 @@ public class Attackable extends Npc
|
|||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
{
|
{
|
||||||
mul = 1.;
|
mul = 1;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -118,8 +118,8 @@ public class PlayerStat extends PlayableStat
|
|||||||
|
|
||||||
final double baseExp = addToExp;
|
final double baseExp = addToExp;
|
||||||
final double baseSp = addToSp;
|
final double baseSp = addToSp;
|
||||||
double bonusExp = 1.;
|
double bonusExp = 1;
|
||||||
double bonusSp = 1.;
|
double bonusSp = 1;
|
||||||
if (useBonuses)
|
if (useBonuses)
|
||||||
{
|
{
|
||||||
if (player.isFishing())
|
if (player.isFishing())
|
||||||
|
@@ -1394,7 +1394,7 @@ public class Attackable extends Npc
|
|||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
{
|
{
|
||||||
mul = 1.;
|
mul = 1;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -118,8 +118,8 @@ public class PlayerStat extends PlayableStat
|
|||||||
|
|
||||||
final double baseExp = addToExp;
|
final double baseExp = addToExp;
|
||||||
final double baseSp = addToSp;
|
final double baseSp = addToSp;
|
||||||
double bonusExp = 1.;
|
double bonusExp = 1;
|
||||||
double bonusSp = 1.;
|
double bonusSp = 1;
|
||||||
if (useBonuses)
|
if (useBonuses)
|
||||||
{
|
{
|
||||||
if (player.isFishing())
|
if (player.isFishing())
|
||||||
|
@@ -1394,7 +1394,7 @@ public class Attackable extends Npc
|
|||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
{
|
{
|
||||||
mul = 1.;
|
mul = 1;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -118,8 +118,8 @@ public class PlayerStat extends PlayableStat
|
|||||||
|
|
||||||
final double baseExp = addToExp;
|
final double baseExp = addToExp;
|
||||||
final double baseSp = addToSp;
|
final double baseSp = addToSp;
|
||||||
double bonusExp = 1.;
|
double bonusExp = 1;
|
||||||
double bonusSp = 1.;
|
double bonusSp = 1;
|
||||||
if (useBonuses)
|
if (useBonuses)
|
||||||
{
|
{
|
||||||
if (player.isFishing())
|
if (player.isFishing())
|
||||||
|
@@ -1401,7 +1401,7 @@ public class Attackable extends Npc
|
|||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
{
|
{
|
||||||
mul = 1.;
|
mul = 1;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -130,8 +130,8 @@ public class PlayerStat extends PlayableStat
|
|||||||
addToSp *= Config.PREMIUM_RATE_SP;
|
addToSp *= Config.PREMIUM_RATE_SP;
|
||||||
}
|
}
|
||||||
|
|
||||||
double bonusExp = 1.;
|
double bonusExp = 1;
|
||||||
double bonusSp = 1.;
|
double bonusSp = 1;
|
||||||
if (useBonuses)
|
if (useBonuses)
|
||||||
{
|
{
|
||||||
bonusExp = getExpBonusMultiplier();
|
bonusExp = getExpBonusMultiplier();
|
||||||
|
@@ -1401,7 +1401,7 @@ public class Attackable extends Npc
|
|||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
{
|
{
|
||||||
mul = 1.;
|
mul = 1;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -135,8 +135,8 @@ public class PlayerStat extends PlayableStat
|
|||||||
|
|
||||||
final double baseExp = addToExp;
|
final double baseExp = addToExp;
|
||||||
final double baseSp = addToSp;
|
final double baseSp = addToSp;
|
||||||
double bonusExp = 1.;
|
double bonusExp = 1;
|
||||||
double bonusSp = 1.;
|
double bonusSp = 1;
|
||||||
|
|
||||||
// Start Nevit's Hourglass
|
// Start Nevit's Hourglass
|
||||||
if (Config.NEVIT_ENABLED && (addToExp > 0) && !player.isInsideZone(ZoneId.PEACE))
|
if (Config.NEVIT_ENABLED && (addToExp > 0) && !player.isInsideZone(ZoneId.PEACE))
|
||||||
|
@@ -119,8 +119,8 @@ public class PlayerStat extends PlayableStat
|
|||||||
|
|
||||||
final double baseExp = addToExp;
|
final double baseExp = addToExp;
|
||||||
final double baseSp = addToSp;
|
final double baseSp = addToSp;
|
||||||
double bonusExp = 1.;
|
double bonusExp = 1;
|
||||||
double bonusSp = 1.;
|
double bonusSp = 1;
|
||||||
if (useBonuses)
|
if (useBonuses)
|
||||||
{
|
{
|
||||||
if (player.isFishing())
|
if (player.isFishing())
|
||||||
|
@@ -120,8 +120,8 @@ public class PlayerStat extends PlayableStat
|
|||||||
|
|
||||||
final double baseExp = addToExp;
|
final double baseExp = addToExp;
|
||||||
final double baseSp = addToSp;
|
final double baseSp = addToSp;
|
||||||
double bonusExp = 1.;
|
double bonusExp = 1;
|
||||||
double bonusSp = 1.;
|
double bonusSp = 1;
|
||||||
if (useBonuses)
|
if (useBonuses)
|
||||||
{
|
{
|
||||||
if (player.isFishing())
|
if (player.isFishing())
|
||||||
|
@@ -120,8 +120,8 @@ public class PlayerStat extends PlayableStat
|
|||||||
|
|
||||||
final double baseExp = addToExp;
|
final double baseExp = addToExp;
|
||||||
final double baseSp = addToSp;
|
final double baseSp = addToSp;
|
||||||
double bonusExp = 1.;
|
double bonusExp = 1;
|
||||||
double bonusSp = 1.;
|
double bonusSp = 1;
|
||||||
if (useBonuses)
|
if (useBonuses)
|
||||||
{
|
{
|
||||||
if (player.isFishing())
|
if (player.isFishing())
|
||||||
|
@@ -121,8 +121,8 @@ public class PlayerStat extends PlayableStat
|
|||||||
|
|
||||||
final double baseExp = addToExp;
|
final double baseExp = addToExp;
|
||||||
final double baseSp = addToSp;
|
final double baseSp = addToSp;
|
||||||
double bonusExp = 1.;
|
double bonusExp = 1;
|
||||||
double bonusSp = 1.;
|
double bonusSp = 1;
|
||||||
if (useBonuses)
|
if (useBonuses)
|
||||||
{
|
{
|
||||||
if (player.isFishing())
|
if (player.isFishing())
|
||||||
|
@@ -121,8 +121,8 @@ public class PlayerStat extends PlayableStat
|
|||||||
|
|
||||||
final double baseExp = addToExp;
|
final double baseExp = addToExp;
|
||||||
final double baseSp = addToSp;
|
final double baseSp = addToSp;
|
||||||
double bonusExp = 1.;
|
double bonusExp = 1;
|
||||||
double bonusSp = 1.;
|
double bonusSp = 1;
|
||||||
if (useBonuses)
|
if (useBonuses)
|
||||||
{
|
{
|
||||||
if (player.isFishing())
|
if (player.isFishing())
|
||||||
|
@@ -121,8 +121,8 @@ public class PlayerStat extends PlayableStat
|
|||||||
|
|
||||||
final double baseExp = addToExp;
|
final double baseExp = addToExp;
|
||||||
final double baseSp = addToSp;
|
final double baseSp = addToSp;
|
||||||
double bonusExp = 1.;
|
double bonusExp = 1;
|
||||||
double bonusSp = 1.;
|
double bonusSp = 1;
|
||||||
if (useBonuses)
|
if (useBonuses)
|
||||||
{
|
{
|
||||||
if (player.isFishing())
|
if (player.isFishing())
|
||||||
|
@@ -120,8 +120,8 @@ public class PlayerStat extends PlayableStat
|
|||||||
|
|
||||||
final double baseExp = addToExp;
|
final double baseExp = addToExp;
|
||||||
final double baseSp = addToSp;
|
final double baseSp = addToSp;
|
||||||
double bonusExp = 1.;
|
double bonusExp = 1;
|
||||||
double bonusSp = 1.;
|
double bonusSp = 1;
|
||||||
if (useBonuses)
|
if (useBonuses)
|
||||||
{
|
{
|
||||||
if (player.isFishing())
|
if (player.isFishing())
|
||||||
|
@@ -123,8 +123,8 @@ public class PlayerStat extends PlayableStat
|
|||||||
|
|
||||||
final double baseExp = addToExp;
|
final double baseExp = addToExp;
|
||||||
final double baseSp = addToSp;
|
final double baseSp = addToSp;
|
||||||
double bonusExp = 1.;
|
double bonusExp = 1;
|
||||||
double bonusSp = 1.;
|
double bonusSp = 1;
|
||||||
if (useBonuses)
|
if (useBonuses)
|
||||||
{
|
{
|
||||||
if (player.isFishing())
|
if (player.isFishing())
|
||||||
|
@@ -123,8 +123,8 @@ public class PlayerStat extends PlayableStat
|
|||||||
|
|
||||||
final double baseExp = addToExp;
|
final double baseExp = addToExp;
|
||||||
final double baseSp = addToSp;
|
final double baseSp = addToSp;
|
||||||
double bonusExp = 1.;
|
double bonusExp = 1;
|
||||||
double bonusSp = 1.;
|
double bonusSp = 1;
|
||||||
if (useBonuses)
|
if (useBonuses)
|
||||||
{
|
{
|
||||||
if (player.isFishing())
|
if (player.isFishing())
|
||||||
|
@@ -123,8 +123,8 @@ public class PlayerStat extends PlayableStat
|
|||||||
|
|
||||||
final double baseExp = addToExp;
|
final double baseExp = addToExp;
|
||||||
final double baseSp = addToSp;
|
final double baseSp = addToSp;
|
||||||
double bonusExp = 1.;
|
double bonusExp = 1;
|
||||||
double bonusSp = 1.;
|
double bonusSp = 1;
|
||||||
if (useBonuses)
|
if (useBonuses)
|
||||||
{
|
{
|
||||||
if (player.isFishing())
|
if (player.isFishing())
|
||||||
|
Reference in New Issue
Block a user