Package l2p.gameserver.model

Examples of l2p.gameserver.model.L2Character.calcStat()


      {
        int damage = Math.min(reward._dmg, maxHp);
        if(damage > 0)
        {
          double[] xpsp = calculateExpAndSp(attacker, attacker.getLevel(), damage);
          double neededExp = attacker.calcStat(Stats.SOULS_CONSUME_EXP, 0, this, null); // Начисление душ камаэлянам
          if(neededExp > 0 && xpsp[0] > neededExp)
          {
            broadcastPacket(new SpawnEmitter(this, attacker));
            ThreadPoolManager.getInstance().scheduleGeneral(new SoulConsumeTask(attacker), 1000);
          }
View Full Code Here


          * Math.pow(matk, Config.SKILLS_CHANCE_POW) / mdef;
    }
    if (!skill.isIgnoreResists()) {
      double res = 0;
      if (resistType != null) {
        res += target.calcStat(resistType, character, skill);
      }
      if (attibuteType != null) {
        res -= character.calcStat(attibuteType, target, skill);
      }
      res += target.calcStat(Stats.DEBUFF_RECEPTIVE, character, skill);
View Full Code Here

        res += target.calcStat(resistType, character, skill);
      }
      if (attibuteType != null) {
        res -= character.calcStat(attibuteType, target, skill);
      }
      res += target.calcStat(Stats.DEBUFF_RECEPTIVE, character, skill);
      if (res != 0) {
        double mod = Math.abs(0.02 * res) + 1;
        env.value = res > 0 ? env.value / mod : env.value * mod;
        if (isGM) {
          if (resistType != null) {
View Full Code Here

        env.value = res > 0 ? env.value / mod : env.value * mod;
        if (isGM) {
          if (resistType != null) {
            character.sendMessage("resist: " + resistType);
            character.sendMessage("defense: "
                + (int) target.calcStat(resistType, character,
                    skill));
          }
          if (attibuteType != null) {
            character.sendMessage("attack: "
                + (int) character.calcStat(attibuteType,
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.