Package lineage2.gameserver.stats

Examples of lineage2.gameserver.stats.Env


  private Effect cloneEffect(Creature cha, Effect eff)
  {
    Skill skill = eff.getSkill();
    for (EffectTemplate et : skill.getEffectTemplates())
    {
      Effect effect = et.getEffect(new Env(cha, cha, skill));
      if (effect != null)
      {
        effect.setCount(eff.getCount());
        effect.setPeriod(eff.getCount() == 1 ? eff.getPeriod() - eff.getTime() : eff.getPeriod());
        return effect;
View Full Code Here


        {
          if (et == null)
          {
            continue;
          }
          Env env = new Env(playable, playable, skill);
          Effect effect = et.getEffect(env);
          if ((effect == null) || effect.isOneTime())
          {
            continue;
          }
View Full Code Here

    for (Player pp : p.getPartyMembers())
    {
      for (EffectTemplate et : skill.getEffectTemplates())
      {
        Env env = new Env(pp, pp, skill);
        Effect effect = et.getEffect(env);
        effect.setPeriod(10000);
        pp.getEffectList().addEffect(effect);
      }
    }
View Full Code Here

    Calculator c = _calculators[id];
    if (c == null)
    {
      return init;
    }
    Env env = new Env();
    env.character = this;
    env.target = target;
    env.skill = skill;
    env.value = init;
    c.calc(env);
View Full Code Here

   * @param skill Skill
   * @return double
   */
  public final double calcStat(Stats stat, Creature target, Skill skill)
  {
    Env env = new Env(this, target, skill);
    env.value = stat.getInit();
    int id = stat.ordinal();
    Calculator c = _calculators[id];
    if (c != null)
    {
View Full Code Here

      {
        for (Effect effect : effects)
        {
          for (EffectTemplate et : effect.getSkill().getEffectTemplates())
          {
            Env env = new Env(player, player, effect.getSkill());
            env.value = Integer.MAX_VALUE;
            Effect e = et.getEffect(env);
            e.setPeriod(effect.getPeriod());
            e.getEffected().getEffectList().addEffect(e);
          }
View Full Code Here

      for (int[] buff : _listBuff[player.isMageClass() ? 1 : 0])
      {
        skill = SkillTable.getInstance().getInfo(buff[0], buff[1]);
        for (EffectTemplate et : skill.getEffectTemplates())
        {
          Env env = new Env(player, player, skill);
          env.value = Integer.MAX_VALUE;
          Effect e = et.getEffect(env);
          e.setPeriod(600000);
          e.getEffected().getEffectList().addEffect(e);
        }
View Full Code Here

      {
        for (Effect effect : effects)
        {
          for (EffectTemplate et : effect.getSkill().getEffectTemplates())
          {
            Env env = new Env(player, player, effect.getSkill());
            env.value = Integer.MAX_VALUE;
            Effect e = et.getEffect(env);
            e.setPeriod(effect.getPeriod());
            e.getEffected().getEffectList().addEffect(e);
          }
View Full Code Here

      for (int[] buff : _listBuff[player.isMageClass() ? 1 : 0])
      {
        skill = SkillTable.getInstance().getInfo(buff[0], buff[1]);
        for (EffectTemplate et : skill.getEffectTemplates())
        {
          Env env = new Env(player, player, skill);
          env.value = Integer.MAX_VALUE;
          Effect e = et.getEffect(env);
          e.setPeriod(600000);
          e.getEffected().getEffectList().addEffect(e);
        }
View Full Code Here

      {
          for (Summon summon : player.getSummonList())
          {
            for (EffectTemplate et : skill.getEffectTemplates())
            {
              Env env = new Env(summon, summon, skill);
              Effect effect = et.getEffect(env);
              effect.setPeriod(time);
              summon.getEffectList().addEffect(effect);
              summon.updateEffectIconsImpl();
            }
          }
      }
      else
      {
        for (EffectTemplate et : skill.getEffectTemplates())
        {
          Env env = new Env(player, player, skill);
          Effect effect = et.getEffect(env);
          effect.setPeriod(time);
          player.getEffectList().addEffect(effect);
          player.updateEffectIconsImpl();
        }
View Full Code Here

TOP

Related Classes of lineage2.gameserver.stats.Env

Copyright © 2018 www.massapicom. 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.