示例#1
0
    public void Damage(float minh, float maxh, float critchance, DAMAGESOURCE source)
    {
        float damageamount = 0;

        damageamount = CalculateDamage(minh, maxh, critchance);
        DamageTaken(damageamount);
    }
示例#2
0
 public EnemySpellInfo(HOSTILESPELL _id, string _name, int _basevalue, int _basevalue2,
                       int _castTime, int _cooldown, string _icon, int _DoTgap, int _ticksCount,
                       DAMAGETYPE _damagetype, int _targetsAmount, TARGETTYPE _targettype,
                       DAMAGESOURCE _damagesource, DEBUFF _debuff, string _description, bool _misdirectable, MOB _summon)
 {
     ID            = _id;
     name          = _name;
     baseValue     = _basevalue;
     baseValue2    = _basevalue2;
     castTime      = _castTime;
     cooldown      = _cooldown;
     icon          = _icon;
     DoTgap        = _DoTgap;
     ticksCount    = _ticksCount;
     damagetype    = _damagetype;
     targetsAmount = _targetsAmount;
     targetType    = _targettype;
     damageSource  = _damagesource;
     debuff        = _debuff;
     description   = _description;
     misdirectable = _misdirectable;
     summon        = _summon;
 }
示例#3
0
 private void AddESpellInfo(HOSTILESPELL _id, string _name, int _basevalue, int _basevalue2, int _castTime, int _cooldown, string _icon, int _DoTgap, int _tickCount, DAMAGETYPE _damagetype, int _targetsAmount, TARGETTYPE _targettype, DAMAGESOURCE _damagesource, DEBUFF _debuff, string _desc, bool _misdirectable, MOB _summon = MOB.NUL)
 {
     espellInfo[(int)_id] = new EnemySpellInfo(
         _id, _name, (int)(_basevalue * MULTIP_MOD), (int)(_basevalue2 * MULTIP_MOD),
         (int)(_castTime * CAST_MOD), (int)(_cooldown * CD_MOD), _icon,
         (int)(_DoTgap * GAP_MOD), _tickCount, _damagetype, _targetsAmount, _targettype, _damagesource, _debuff, _desc, _misdirectable, _summon);
 }