/// <summary> /// Builds a hero, including any value used for battle calculations. Persists between battles. /// </summary> /// <param name="type">as HeroType</param> /// <param name="stats">as BattleStats</param> /// <param name="equipment">inventory of equipped equipment</param> /// <param name="name">fullname</param> public BattleHero(HeroType type, BattleStats stats, HeroEquipment equipment = null, string name = "Hero1") { heroType = type; sprites = HeroSpriteData.MakeNewHeroSprites(heroType); fullName = name; // Load BStats BStats = stats; BStats.UpdateMax(); HealAll(); if (equipment != null) { Equipment = equipment; } }