Skip to content

Commit

Permalink
don't skip animation on pot drinking
Browse files Browse the repository at this point in the history
  • Loading branch information
ToniMacaroni committed Feb 29, 2024
1 parent a85179e commit fe73a0c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions SonsGameManager/GamePatches.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
using RedLoader;
using Sons.Cutscenes;
using Sons.Gui;
using Sons.Inventory;
using Sons.Multiplayer.Dedicated;
using Sons.Music;
using Sons.TerrainDetail;
Expand Down Expand Up @@ -122,9 +123,9 @@ private static void MusicLookupPatch(MusicManager __instance, ref string eventPa
}
}

private static void ConsumePrefix(ref bool shouldPlayConsumeAnimation)
private static void ConsumePrefix(ItemInstance itemInstance, ref bool shouldPlayConsumeAnimation)
{
if (Config.NoConsumeAnimation.Value)
if (Config.NoConsumeAnimation.Value && (itemInstance == null || itemInstance._data.Id != 517))
shouldPlayConsumeAnimation = false;
}

Expand Down

0 comments on commit fe73a0c

Please sign in to comment.