Code improvements.

This commit is contained in:
MobiusDev
2016-04-24 16:30:15 +00:00
parent 8bd51aba1c
commit 2dd14bef9b
860 changed files with 8865 additions and 17041 deletions

View File

@@ -46,8 +46,7 @@ public class ConditionTargetWeight extends Condition
final L2PcInstance target = effected.getActingPlayer();
if (!target.getDietMode() && (target.getMaxLoad() > 0))
{
final int weightproc = (((target.getCurrentLoad() - target.getBonusWeightPenalty()) * 100) / target.getMaxLoad());
return (weightproc < _weight);
return ((((target.getCurrentLoad() - target.getBonusWeightPenalty()) * 100) / target.getMaxLoad()) < _weight);
}
}
return false;