Exemple #1
0
 protected void addDamageTakenLog(long time, ushort instid, CombatItem c)
 {
     if (instid == c.getSrcInstid())
     {
         if (c.isBuff() == 1 && c.getBuffDmg() != 0)
         {
             //inco,ing condi dmg not working or just not present?
             // damagetaken.Add(c.getBuffDmg());
             damageTaken_logs.Add(new DamageLogCondition(time, c));
         }
         else if (c.isBuff() == 0 && c.getValue() >= 0)
         {
             damageTaken_logs.Add(new DamageLogPower(time, c));
         }
     }
 }
Exemple #2
0
 // privates
 protected void addDamageLog(long time, ushort instid, CombatItem c, List <DamageLog> toFill)
 {
     if (instid == c.getDstInstid() && c.getIFF() == ParseEnum.IFF.Foe)
     {
         if (c.isBuffremove() == ParseEnum.BuffRemove.None)
         {
             if (c.isBuff() == 1 && c.getBuffDmg() != 0)//condi
             {
                 toFill.Add(new DamageLogCondition(time, c));
             }
             else if (c.isBuff() == 0 && c.getValue() != 0)//power
             {
                 toFill.Add(new DamageLogPower(time, c));
             }
             else if (c.getResult() == ParseEnum.Result.Absorb || c.getResult() == ParseEnum.Result.Blind || c.getResult() == ParseEnum.Result.Interrupt)
             {//Hits that where blinded, invulned, interupts
                 toFill.Add(new DamageLogPower(time, c));
             }
         }
     }
 }