diff --git a/StardewArchipelago/GameModifications/CodeInjections/ZeldaAnimationInjections.cs b/StardewArchipelago/GameModifications/CodeInjections/ZeldaAnimationInjections.cs index 684e04499..8d22166ef 100644 --- a/StardewArchipelago/GameModifications/CodeInjections/ZeldaAnimationInjections.cs +++ b/StardewArchipelago/GameModifications/CodeInjections/ZeldaAnimationInjections.cs @@ -47,7 +47,7 @@ public static void AddItemToInventory_Position_PrankDay_Postfix(Farmer __instanc return; } - DoZeldaAnimation(__instance, item, true); + DoPrankZeldaAnimation(__instance, item, true); } catch (Exception ex) { @@ -66,7 +66,7 @@ public static void AddItemToInventory_AffectedItems_PrankDay_Postfix(Farmer __in return; } - DoZeldaAnimation(__instance, item, true); + DoPrankZeldaAnimation(__instance, item, true); } catch (Exception ex) { @@ -75,8 +75,13 @@ public static void AddItemToInventory_AffectedItems_PrankDay_Postfix(Farmer __in } } - private static void DoZeldaAnimation(Farmer farmer, Item item, bool showMessage) + private static void DoPrankZeldaAnimation(Farmer farmer, Item item, bool showMessage) { + if (Game1.random.NextDouble() > 0.05) + { + return; + } + farmer.completelyStopAnimatingOrDoingAction(); if (showMessage) { @@ -94,9 +99,10 @@ private static void DoZeldaAnimation(Farmer farmer, Item item, bool showMessage) }); farmer.mostRecentlyGrabbedItem = item; farmer.canMove = false; - if (Game1.random.NextDouble() < 0.05) + + if (Game1.random.NextDouble() < 0.2) { - Game1.chatBox.addMessage("April's Fool!", Color.Gold); + Game1.chatBox.addMessage("April's Fool! use !!fool to disable", Color.Gold); } }