using System; using System.Collections; using System.Collections.Generic; using UnityEngine; namespace Beyond { [Serializable] public struct ItemStats { public enum StatType { Weight, Req_Focus, Req_Faith, Req_Stamin, Attack, Defence, Count }; public StatType type; public int value; public override string ToString() { const string req = "req"; string res = ""; switch (type) { case StatType.Weight: res = "Weight"; break; case StatType.Req_Focus: res = "Focus " + req; break; case StatType.Req_Faith: res = "Faith "+req; break; case StatType.Req_Stamin: res = "Stamina " + req; break; case StatType.Attack: res = "Attack"; break; case StatType.Defence: res = "Defence"; break; } return res + ": " + value; } } }