Direct use of private constants instead of getters.
This commit is contained in:
@@ -73,9 +73,9 @@ public final class HellboundEngine extends AbstractNpcAI
|
||||
if (event.equals(UPDATE_EVENT))
|
||||
{
|
||||
int level = getLevel();
|
||||
if ((level > 0) && (level == getCachedLevel()))
|
||||
if ((level > 0) && (level == _cachedLevel))
|
||||
{
|
||||
if ((getTrust() == getMaxTrust()) && (level != 4)) // Only exclusion is kill of Derek.
|
||||
if ((getTrust() == _maxTrust) && (level != 4)) // Only exclusion is kill of Derek.
|
||||
{
|
||||
level++;
|
||||
setLevel(level);
|
||||
|
@@ -542,7 +542,7 @@ public final class Minigame extends AbstractNpcAI
|
||||
_listener = null;
|
||||
}
|
||||
|
||||
getManager().setTarget(null);
|
||||
_manager.setTarget(null);
|
||||
setParticipant(null);
|
||||
setStarted(false);
|
||||
setAttemptNumber(1);
|
||||
|
@@ -121,7 +121,7 @@ public final class Fishing extends AbstractEffect
|
||||
return;
|
||||
}
|
||||
|
||||
if (player.isInCraftMode() || player.isInStoreMode())
|
||||
if (player.isCrafting() || player.isInStoreMode())
|
||||
{
|
||||
player.sendPacket(SystemMessageId.YOU_CANNOT_FISH_WHILE_USING_A_RECIPE_BOOK_PRIVATE_MANUFACTURE_OR_PRIVATE_STORE);
|
||||
return;
|
||||
|
@@ -40,7 +40,7 @@ public class Recipes implements IItemHandler
|
||||
}
|
||||
|
||||
final L2PcInstance activeChar = playable.getActingPlayer();
|
||||
if (activeChar.isInCraftMode())
|
||||
if (activeChar.isCrafting())
|
||||
{
|
||||
activeChar.sendPacket(SystemMessageId.YOU_MAY_NOT_ALTER_YOUR_RECIPE_BOOK_WHILE_ENGAGED_IN_MANUFACTURING);
|
||||
return false;
|
||||
|
Reference in New Issue
Block a user