private void OnGameLaunched(object sender, GameLaunchedEventArgs e) { DataLoader.load(Helper, Helper.ModRegistry.IsLoaded("Platonymous.CustomMusic")); }
private static Letter checkForLetter() { Dictionary <string, string> stats = Instrument.allAdditionalSaveData; if (!Instrument.hasInstument("harp")) { return(DataLoader.getLetter("hoy_birthday")); } if (Game1.player.isMarried() && !SheetMusic.hasSheet("yoba")) { return(DataLoader.getLetter("hoy_yoba")); } if (Game1.player.eventsSeen.Contains(2) && !SheetMusic.hasSheet("thunder")) { return(DataLoader.getLetter("hoy_thunder")); } if (Game1.player.eventsSeen.Contains(14) && !SheetMusic.hasSheet("animals")) { return(DataLoader.getLetter("hoy_animals")); } if (Game1.stats.monstersKilled >= 100 && !SheetMusic.hasSheet("adventure")) { return(DataLoader.getLetter("hoy_adventure")); } if (Game1.player.eventsSeen.Contains(191393) && !SheetMusic.hasSheet("wanderer")) { return(DataLoader.getLetter("hoy_wanderer")); } if (stats.ContainsKey("wizard") && stats["wizard"] == "true" && !SheetMusic.hasSheet("dark")) { return(DataLoader.getLetter("hoy_dark")); } if (stats.ContainsKey("mariner") && stats["mariner"].Split(' ').Length >= 5 && !SheetMusic.hasSheet("fisher")) { return(DataLoader.getLetter("hoy_mariner")); } if (stats.ContainsKey("granpa") && stats["granpa"].Split(' ').Length >= 2 && !SheetMusic.hasSheet("granpa")) { return(DataLoader.getLetter("hoy_granpa")); } if (Game1.player.eventsSeen.Contains(18) && !SheetMusic.hasSheet("time")) { return(DataLoader.getLetter("hoy_time")); } if (SheetMusic.hasSheet("thunder") && SheetMusic.hasSheet("animals") && !SheetMusic.hasSheet("lua")) { return(DataLoader.getLetter("hoy_lua")); } return(null); }