Weapons tested and general changes made to support the results of those tests
This commit is contained in:
@@ -22,6 +22,8 @@ public partial class Weapon : Node3D, IWeapon
|
||||
_bonusDamage = Stats.BonusAttack;
|
||||
_bonusDefense = Stats.BonusDefense;
|
||||
_bonusLuck = Stats.BonusLuck;
|
||||
_bonusHp = Stats.BonusHP;
|
||||
_bonusVt = Stats.BonusVT;
|
||||
}
|
||||
|
||||
public string ItemName => Stats.Name;
|
||||
@@ -63,9 +65,9 @@ public partial class Weapon : Node3D, IWeapon
|
||||
|
||||
public int BonusLuck { get => _bonusLuck; }
|
||||
|
||||
public int BonusHP { get; }
|
||||
public int BonusHP { get => _bonusHp; }
|
||||
|
||||
public int BonusVT { get; }
|
||||
public int BonusVT { get => _bonusVt; }
|
||||
|
||||
[Save("weapon_bonus_damage")]
|
||||
private int _bonusDamage { get; set; } = 0;
|
||||
@@ -76,6 +78,12 @@ public partial class Weapon : Node3D, IWeapon
|
||||
[Save("weapon_bonus_luck")]
|
||||
private int _bonusLuck { get; set; } = 0;
|
||||
|
||||
[Save("weapon_bonus_hp")]
|
||||
private int _bonusHp { get; set; } = 0;
|
||||
|
||||
[Save("weapon_bonus_vt")]
|
||||
private int _bonusVt { get; set; } = 0;
|
||||
|
||||
[Export]
|
||||
[Save("weapon_stats")]
|
||||
public WeaponStats Stats { get; set; } = new WeaponStats();
|
||||
|
||||
Reference in New Issue
Block a user