Ejemplo n.º 1
0
 public Skill(int _id, string _name, TYPES _type, SUB_TYPES _sub_type, EFFECT_TYPES _effect_type, int _effect_period, int _effect_tick)
 {
     id          = _id;
     name        = _name;
     type        = _type;
     sub_type    = _sub_type;
     effect_type = _effect_type;
     switch (effect_type)
     {
     case DamageTracker.EFFECT_TYPES.SPELLATK:
     case DamageTracker.EFFECT_TYPES.BLEED:
     case DamageTracker.EFFECT_TYPES.POISON:
     case DamageTracker.EFFECT_TYPES.HEAL:
         is_overtime_effect = true;
         break;
     }
     effect_period = _effect_period;
     effect_tick   = _effect_tick;
     if (effect_tick != 0)
     {
         maximum_ticks = effect_period / effect_tick;
     }
 }
Ejemplo n.º 2
0
 public Skill(int _id, string _name, TYPES _type, SUB_TYPES _sub_type, EFFECT_TYPES _effect_type, int _effect_period, int _effect_tick)
 {
     id = _id;
     name = _name;
     type = _type;
     sub_type = _sub_type;
     effect_type = _effect_type;
     switch (effect_type)
     {
         case DamageTracker.EFFECT_TYPES.SPELLATK:
         case DamageTracker.EFFECT_TYPES.BLEED:
         case DamageTracker.EFFECT_TYPES.POISON:
         case DamageTracker.EFFECT_TYPES.HEAL:
             is_overtime_effect = true;
             break;
     }
     effect_period = _effect_period;
     effect_tick = _effect_tick;
     if (effect_tick != 0)
     {
         maximum_ticks = effect_period / effect_tick;
     }
 }