Ejemplo n.º 1
0
 private static string OnCleanDialogue(On.Celeste.Dialog.orig_Clean orig, string name, Language language)
 {
     if (TrollLandModule.Session != null)
     {
         bool shouldSaySoftlock = false;
         if (!(shouldSaySoftlock = "MENU_PAUSE_RETRY".Equals(name, StringComparison.InvariantCultureIgnoreCase)))
         {
             shouldSaySoftlock = "MENU_PAUSE_SKIP_CUTSCENE".Equals(name, StringComparison.InvariantCultureIgnoreCase);
         }
         if (TrollLandModule.Session.InSoftLock && shouldSaySoftlock)
         {
             return(Dialog.Clean("KAYDEN_FOX_TROLL_LAND_STAY_IN_SOFT_LOCK", language));
         }
     }
     return(orig(name, language));
 }
Ejemplo n.º 2
0
 private string PlayMadlibs1(On.Celeste.Dialog.orig_Clean orig, string name, Language language)
 {
     return(PlayMadlibs(s => orig(s, language), name));
 }