Exemplo n.º 1
0
 // Constructor
 public DamageLog(long time, CombatItem c)
 {
     this.time          = time;
     this.skill_id      = c.getSkillID();
     this.buff          = c.isBuff();
     this.result        = c.getResult();
     this.is_ninety     = c.isNinety();
     this.is_moving     = c.isMoving();
     this.is_flanking   = c.isMoving();
     this.is_activation = c.isActivation();
     this.src_agent     = c.getSrcAgent();
     this.src_instid    = c.getSrcInstid();
     this.is_shields    = c.isShields();
 }
Exemplo n.º 2
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));
         }
     }
 }