Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 9 additions & 5 deletions ButcherMod/meats/MeatOverrides.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,16 @@ public static bool sellToStorePrice(SObject __instance, ref int __result)
num = Math.Max(1f, num * Game1.MasterPlayer.difficultyModifier);
}
__result = (int)num;
return false;
return false;
}
return true;
return true;
}

public static bool isPotentialBasicShipped(ref int category, ref bool __result)
public static bool isPotentialBasicShipped(string itemId, ref int category, ref bool __result)
{
if (category == -14)
if (category == -14
&& Game1.objectData.TryGetValue(itemId, out var objectData)
&& !objectData.ExcludeFromShippingCollection)
{
__result = true;
return false;
Expand All @@ -43,7 +45,9 @@ public static bool isPotentialBasicShipped(ref int category, ref bool __result)

public static bool countsForShippedCollection(SObject __instance, ref bool __result)
{
if (__instance.Category == -14)
if (__instance.Category == -14
&& Game1.objectData.TryGetValue(__instance.ItemId, out var objectData)
&& !objectData.ExcludeFromShippingCollection)
{
__result = true;
return false;
Expand Down