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