Replaced assignments with compound operators.
This commit is contained in:
@@ -136,7 +136,7 @@ public class StackIDFactory extends IdFactory
|
||||
else
|
||||
{
|
||||
id = _curOID;
|
||||
_curOID = _curOID + 1;
|
||||
_curOID += 1;
|
||||
}
|
||||
return id;
|
||||
}
|
||||
|
@@ -117,7 +117,7 @@ public final class L2TamedBeastInstance extends L2FeedableBeastInstance
|
||||
public void onReceiveFood()
|
||||
{
|
||||
// Eating food extends the duration by 20secs, to a max of 20minutes
|
||||
_remainingTime = _remainingTime + DURATION_INCREASE_INTERVAL;
|
||||
_remainingTime += DURATION_INCREASE_INTERVAL;
|
||||
if (_remainingTime > MAX_DURATION)
|
||||
{
|
||||
_remainingTime = MAX_DURATION;
|
||||
|
Reference in New Issue
Block a user