Improvements to save and loading
Improvements to Chinthe animation logic Fix broken Godot Tool system and just use a more manual approach to setting map nodes Remove ItemDatabase from individual room scenes
This commit is contained in:
@@ -29,23 +29,23 @@ public partial class Weapon : EquipableItem
|
||||
|
||||
public override float ThrowSpeed => Stats.ThrowSpeed;
|
||||
|
||||
public double Luck => Stats.BonusLuck;
|
||||
|
||||
[Save("weapon_attack_speed")]
|
||||
public double AttackSpeed => Stats.AttackSpeed;
|
||||
|
||||
[Save("weapon_tag")]
|
||||
public WeaponTag WeaponTag => Stats.WeaponTag;
|
||||
|
||||
public override ItemTag ItemTag => Stats.ItemTag;
|
||||
|
||||
[Save("weapon_element")]
|
||||
public ElementType WeaponElement => Stats.WeaponElement;
|
||||
|
||||
public override ElementalResistanceSet ElementalResistance => new ElementalResistanceSet(Stats.AeolicResistance, Stats.HydricResistance, Stats.IgneousResistance, Stats.FerrumResistance, Stats.TelluricResistance);
|
||||
|
||||
public void IncreaseWeaponAttack(int bonus) => _extraDamage += bonus;
|
||||
public void IncreaseWeaponAttack(int bonus) => _bonusDamage += bonus;
|
||||
|
||||
public override int BonusAttack { get => Stats.BonusAttack + _extraDamage; }
|
||||
public override int BonusAttack { get => Stats.BonusAttack + _bonusDamage; }
|
||||
|
||||
private int _extraDamage = 0;
|
||||
[Save("weapon_bonus_damage")]
|
||||
private int _bonusDamage { get; set; } = 0;
|
||||
|
||||
[Export]
|
||||
[Save("weapon_stats")]
|
||||
|
||||
Reference in New Issue
Block a user