Package com.l2jfrozen.gameserver.model.actor.instance

Examples of com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance.calcStat()


        public boolean testImpl(Env env)
        {
                final L2PcInstance player = env.getPlayer();
                if ((player != null) && (player.getMaxLoad() > 0))
                {
                        int weightproc = (int) (((player.getCurrentLoad() - player.calcStat(Stats.WEIGHT_PENALTY, 1, player, null)) * 100) / player.getMaxLoad());
                        return (weightproc < _weight) || player.getDietMode();
                }
                return true;
        }
}
View Full Code Here


                if ((targetObj != null) && targetObj instanceof L2PcInstance)
                {
                        final L2PcInstance target = targetObj.getActingPlayer();
                        if (!target.getDietMode() && (target.getMaxLoad() > 0))
                        {
                                int weightproc = (int) (((target.getCurrentLoad() - target.calcStat(Stats.WEIGHT_PENALTY, 1, target, null)) * 100) / target.getMaxLoad());
                                return (weightproc < _weight);
                        }
                }
                return false;
        }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.