46 lines
1.2 KiB
C#
46 lines
1.2 KiB
C#
using Chickensoft.Introspection;
|
|
using Chickensoft.Serialization;
|
|
using Godot;
|
|
using Zennysoft.Ma.Adapter.Entity;
|
|
|
|
namespace Zennysoft.Game.Ma;
|
|
|
|
[GlobalClass]
|
|
[Meta, Id("armor_stats")]
|
|
public partial class ArmorStats : InventoryItemStats
|
|
{
|
|
[Export]
|
|
[Save("armor_name")]
|
|
public override string Name { get; set; } = default!;
|
|
|
|
[Export(PropertyHint.MultilineText)]
|
|
[Save("armor_description")]
|
|
public override string Description { get; set; } = default!;
|
|
|
|
[Export]
|
|
[Save("armor_defense")]
|
|
public int Defense { get; set; } = 0;
|
|
|
|
[Export]
|
|
[Save("armor_telluric_resistance")]
|
|
private double _telluricResistance { get; set; } = 0;
|
|
|
|
[Export]
|
|
[Save("armor_aeolic_resistance")]
|
|
private double _aeolicResistance { get; set; } = 0;
|
|
|
|
[Export]
|
|
[Save("armor_hydric_resistance")]
|
|
private double _hydricResistance { get; set; } = 0;
|
|
|
|
[Export]
|
|
[Save("armor_igneous_resistance")]
|
|
private double _igneousResistance { get; set; } = 0;
|
|
|
|
[Export]
|
|
[Save("armor_ferrum_resistance")]
|
|
private double _ferrumResistance { get; set; } = 0;
|
|
|
|
public ElementalResistanceSet ElementalResistanceSet => new ElementalResistanceSet(_aeolicResistance, _hydricResistance, _igneousResistance, _ferrumResistance, _telluricResistance);
|
|
}
|