Overhaul item and inventory and clean up bits and pieces
This commit is contained in:
@@ -8,7 +8,7 @@ using Zennysoft.Ma.Adapter.Entity;
|
||||
namespace Zennysoft.Game.Ma;
|
||||
|
||||
[Meta(typeof(IAutoNode)), Id("armor")]
|
||||
public partial class Armor : EquipableItem
|
||||
public partial class Armor : Node3D, IArmor
|
||||
{
|
||||
public override void _Notification(int what) => this.Notify(what);
|
||||
|
||||
@@ -22,21 +22,21 @@ public partial class Armor : EquipableItem
|
||||
_bonusLuck = Stats.BonusLuck;
|
||||
}
|
||||
|
||||
public override string ItemName => Stats.Name;
|
||||
public string ItemName => Stats.Name;
|
||||
|
||||
public override string Description => Stats.Description;
|
||||
public string Description => Stats.Description;
|
||||
|
||||
public override float SpawnRate => Stats.SpawnRate;
|
||||
public float SpawnRate => Stats.SpawnRate;
|
||||
|
||||
public override int ThrowDamage => Stats.ThrowDamage;
|
||||
public int ThrowDamage => Stats.ThrowDamage;
|
||||
|
||||
public override float ThrowSpeed => Stats.ThrowSpeed;
|
||||
public float ThrowSpeed => Stats.ThrowSpeed;
|
||||
|
||||
public override int BonusAttack { get => _bonusDamage; }
|
||||
public int BonusAttack { get => _bonusDamage; }
|
||||
|
||||
public override int BonusDefense { get => _bonusDefense; }
|
||||
public int BonusDefense { get => _bonusDefense; }
|
||||
|
||||
public override int BonusLuck { get => _bonusLuck; }
|
||||
public int BonusLuck { get => _bonusLuck; }
|
||||
|
||||
public void IncreaseAttack(int bonus) => _bonusDamage += bonus;
|
||||
|
||||
@@ -60,14 +60,19 @@ public partial class Armor : EquipableItem
|
||||
[Save("armor_bonus_luck")]
|
||||
private int _bonusLuck { get; set; } = 0;
|
||||
|
||||
public override ElementalResistanceSet ElementalResistance => new ElementalResistanceSet(Stats.AeolicResistance, Stats.HydricResistance, Stats.IgneousResistance, Stats.FerrumResistance, Stats.TelluricResistance, Stats.HolyResistance, Stats.CurseResistance);
|
||||
public ElementalResistanceSet ElementalResistance => new ElementalResistanceSet(Stats.AeolicResistance, Stats.HydricResistance, Stats.IgneousResistance, Stats.FerrumResistance, Stats.TelluricResistance, Stats.HolyResistance, Stats.CurseResistance);
|
||||
|
||||
public void IncreaseArmorDefense(int bonus) => _bonusDefense += bonus;
|
||||
|
||||
public override ItemTag ItemTag => Stats.ItemTag;
|
||||
public ItemTag ItemTag => Stats.ItemTag;
|
||||
|
||||
[Save("armor_stats")]
|
||||
[Export]
|
||||
public ArmorStats Stats { get; set; } = new ArmorStats();
|
||||
public override Texture2D GetTexture() => Stats.Texture;
|
||||
public Augment Augment { get; set; }
|
||||
public int BonusHP { get; }
|
||||
public int BonusVT { get; }
|
||||
public bool Glued { get; set; }
|
||||
|
||||
public Texture2D GetTexture() => Stats.Texture;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user