private void OnSaveLoaded(object sender, SaveLoadedEventArgs e) { if (wearMoreRingsApi != null) { RingManager.LoadWornRings(Game1.player, Game1.currentLocation, wearMoreRingsApi.GetAllRings(Game1.player)); } else { RingManager.LoadWornRings(Game1.player, Game1.currentLocation, new List <Ring>() { Game1.player.leftRing, Game1.player.rightRing }); } }
internal static List <Ring> GetWornRings(bool filterVanillaRings = false) { List <Ring> wornRings = new List <Ring>() { Game1.player.leftRing, Game1.player.rightRing }; if (wearMoreRingsApi != null) { wornRings = wearMoreRingsApi.GetAllRings(Game1.player).ToList(); } return(filterVanillaRings ? wornRings.Where(r => r != null && IsSummoningRing(r)).ToList() : wornRings); }