Esempio n. 1
0
 public static void Conditional(Farmer who, string[] arguments, Vector2 tile)
 {
     if (!who.mailReceived.Contains("ALLCondition_" + arguments[0]) && ModEntry.PatchData.Conditionals.Any(e => e.Name == arguments[0]))
     {
         ConditionalResolver.Request(arguments[0]).Init();
     }
     else
     {
         if (who.mailReceived.Contains("ALLCondition_" + arguments[0]))
         {
             ModEntry.Logger.Log("Conditional has already been completed: " + arguments[0], LogLevel.Error);
         }
         else
         {
             ModEntry.Logger.Log("Conditional does not exist: " + arguments[0], LogLevel.Error);
         }
         Game1.drawObjectDialogue(ModEntry.Strings.Get("sparkle"));
     }
 }
Esempio n. 2
0
 internal static void Conditional(StardewValley.Farmer who, string[] arguments, Vector2 tile)
 {
     if (!who.mailReceived.Contains("ALLCondition_" + arguments[0]) && Configs.Compound.Conditionals.Exists(e => e.Name == arguments[0]))
     {
         ConditionalResolver.Request(arguments[0]).Init();
     }
     else
     {
         if (who.mailReceived.Contains("ALLCondition_" + arguments[0]))
         {
             AdvancedLocationLoaderMod.Logger.Log("Conditional has already been completed: " + arguments[0], StardewModdingAPI.LogLevel.Error);
         }
         else
         {
             AdvancedLocationLoaderMod.Logger.Log("Conditional does not exist: " + arguments[0], StardewModdingAPI.LogLevel.Error);
         }
         Game1.drawObjectDialogue(AdvancedLocationLoaderMod.Localizer.Get("sparkle"));
     }
 }