public Armor(Armor armor) { this.armor = armor.armor; this.parry = armor.parry; this.resistance = new Resistance(armor.resistance); }
public Armor(Armor armor) { this.armor = armor.armor; this.parry = armor.parry; this.resistance = new Resistance( armor.resistance); }
public Armor() { this.armor = 0; this.parry = 0; this.resistance = new Resistance(); }
public void addArmor(Armor armor) { this.armor += armor.armor; this.parry += armor.parry; this.resistance += armor.resistance; //this.resistance.addResistence(armor.resistance); }
public static Resistance operator -(Resistance _resi1, Resistance _resi2) { Resistance _resi = new Resistance(); _resi.fire = _resi1.fire - _resi2.fire; _resi.frost = _resi1.frost - _resi2.frost; _resi.dark = _resi1.dark - _resi2.dark; _resi.nature = _resi1.nature - _resi2.nature; if (_resi.fire <= 0) { _resi.fire = 0; } if (_resi.frost <= 0) { _resi.frost = 0; } if (_resi.dark <= 0) { _resi.dark = 0; } if (_resi.nature <= 0) { _resi.nature = 0; } return(_resi); }
public void addResistence(Resistance _resistence) { this.fire += _resistence.fire; this.frost += _resistence.frost; this.nature += _resistence.nature; this.dark += _resistence.dark; }
public Resistance(Resistance _resistence) { this.fire = _resistence.fire; this.frost = _resistence.frost; this.nature = _resistence.nature; this.dark = _resistence.dark; }
public void addResistence( Resistance _resistence) { this.fire += _resistence.fire; this.frost += _resistence.frost; this.nature += _resistence.nature; this.dark += _resistence.dark; }
public Resistance( Resistance _resistence) { this.fire = _resistence.fire; this.frost = _resistence.frost; this.nature = _resistence.nature; this.dark = _resistence.dark; }
public void removeArmor(Armor armor) { this.armor -= armor.armor; this.parry -= armor.parry; if (this.armor <= 0) this.armor = 0; if (this.parry <= 0) this.parry = 0; this.resistance -= armor.resistance; //this.resistance.removeResistence(armor.resistance); }
public static Resistance operator + (Resistance _resi1, Resistance _resi2) { Resistance _resi = new Resistance(); _resi.fire = _resi1.fire + _resi2.fire; _resi.frost = _resi1.frost + _resi2.frost; _resi.dark = _resi1.dark + _resi2.dark; _resi.nature = _resi1.nature + _resi2.nature; return _resi; }
public static Resistance operator +(Resistance _resi1, Resistance _resi2) { Resistance _resi = new Resistance(); _resi.fire = _resi1.fire + _resi2.fire; _resi.frost = _resi1.frost + _resi2.frost; _resi.dark = _resi1.dark + _resi2.dark; _resi.nature = _resi1.nature + _resi2.nature; return(_resi); }
public void removeResistence(Resistance _resistence) { this.fire -= _resistence.fire; this.frost -= _resistence.frost; this.nature -= _resistence.nature; this.dark -= _resistence.dark; if (this.fire <= 0) this.fire = 0; if (this.frost <= 0) this.frost = 0; if (this.nature <= 0) this.nature = 0; if (this.dark <= 0) this.dark = 0; }
public static Resistance operator - (Resistance _resi1, Resistance _resi2) { Resistance _resi = new Resistance(); _resi.fire = _resi1.fire - _resi2.fire; _resi.frost = _resi1.frost - _resi2.frost; _resi.dark = _resi1.dark - _resi2.dark; _resi.nature = _resi1.nature - _resi2.nature; if (_resi.fire <= 0) _resi.fire = 0; if (_resi.frost <= 0) _resi.frost = 0; if (_resi.dark <= 0) _resi.dark = 0; if (_resi.nature <= 0) _resi.nature = 0; return _resi; }
public void removeArmor(Armor armor) { this.armor -= armor.armor; this.parry -= armor.parry; if (this.armor <= 0) { this.armor = 0; } if (this.parry <= 0) { this.parry = 0; } this.resistance -= armor.resistance; //this.resistance.removeResistence(armor.resistance); }
public void removeResistence(Resistance _resistence) { this.fire -= _resistence.fire; this.frost -= _resistence.frost; this.nature -= _resistence.nature; this.dark -= _resistence.dark; if (this.fire <= 0) { this.fire = 0; } if (this.frost <= 0) { this.frost = 0; } if (this.nature <= 0) { this.nature = 0; } if (this.dark <= 0) { this.dark = 0; } }