Item holy and all element implementation, still need to work out some of the math for it
Fix bonus defense for weapons
This commit is contained in:
@@ -34,7 +34,7 @@ public partial class Armor : EquipableItem
|
||||
[Save("bonus_defense")]
|
||||
private int _bonusDefense { get; set; } = 0;
|
||||
|
||||
public override ElementalResistanceSet ElementalResistance => new ElementalResistanceSet(Stats.AeolicResistance, Stats.HydricResistance, Stats.IgneousResistance, Stats.FerrumResistance, Stats.TelluricResistance);
|
||||
public override ElementalResistanceSet ElementalResistance => new ElementalResistanceSet(Stats.AeolicResistance, Stats.HydricResistance, Stats.IgneousResistance, Stats.FerrumResistance, Stats.TelluricResistance, Stats.HolyResistance);
|
||||
|
||||
public void IncreaseArmorDefense(int bonus) => _bonusDefense += bonus;
|
||||
|
||||
|
||||
@@ -29,5 +29,9 @@ public partial class ArmorStats : InventoryItemStats
|
||||
[Save("armor_ferrum_resistance")]
|
||||
private double _ferrumResistance { get; set; } = 0;
|
||||
|
||||
public ElementalResistanceSet ElementalResistanceSet => new ElementalResistanceSet(_aeolicResistance, _hydricResistance, _igneousResistance, _ferrumResistance, _telluricResistance);
|
||||
[Export]
|
||||
[Save("armor_holy_resistance")]
|
||||
private double _holyResistance { get; set; } = 0;
|
||||
|
||||
public ElementalResistanceSet ElementalResistanceSet => new ElementalResistanceSet(_aeolicResistance, _hydricResistance, _igneousResistance, _ferrumResistance, _telluricResistance, _holyResistance);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user