Skip to content

Commit

Permalink
1.1.10.1307
Browse files Browse the repository at this point in the history
  • Loading branch information
SphereII committed Oct 10, 2024
1 parent 723d937 commit 17643bd
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 3 deletions.
6 changes: 6 additions & 0 deletions Mods/0-SCore/Features/FoodSpoilage/Harmony/FoodSpoilage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,13 @@ public static bool Prefix(XUiC_ItemStack __instance) {
blockValue.Block.Properties.GetFloat("PreserveBonus") + " )";
var preserveBonus = blockValue.Block.Properties.GetFloat("PreserveBonus");
if (preserveBonus == -99f)
{
// Setting the next spoilage tick to reset the stack.
nextTick = CalculateNextSpoilageTick(worldTime, tickPerLoss);
SetNextSpoilageTick(__instance.ItemStack.itemValue, nextTick);
__instance.ForceRefreshItemStack();
return true;
}

perUse -= preserveBonus;
}
Expand Down
2 changes: 1 addition & 1 deletion Mods/0-SCore/ModInfo.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
<Description value="SCore Mod" />
<DisplayName value="0-SCore" />
<Website value="" />
<Version value="1.1.9.2008" />
<Version value="1.1.10.1307" />
</xml>
4 changes: 2 additions & 2 deletions Mods/0-SCore/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,5 @@
// [assembly: AssemblyVersion("1.0.*")]
//[assembly: AssemblyVersion("20.0.*")]

[assembly: AssemblyVersion("1.1.9.2008")]
[assembly: AssemblyFileVersion("1.1.9.2008")]
[assembly: AssemblyVersion("1.1.10.1307")]
[assembly: AssemblyFileVersion("1.1.10.1307")]
4 changes: 4 additions & 0 deletions Mods/0-SCore/ReadMe.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ Direct Download to the 0-SCore.zip available on gitlab mirror: https://github.co
### Change Logs

[ Change Log ]
Version: 1.1.10.1307
[ Food Spoilage ]
- Fixed an issue when using PreserveBonus -99, where a full stack would instant spoil.

Version: 1.1.9.2008
[ Faction Manager ]
- Added a Harmony Patch to GetFactionByName() to catch for invalid factions.
Expand Down
Binary file modified Mods/0-SCore/SCore.dll
Binary file not shown.
Binary file modified Mods/0-SCore/SCore.pdb
Binary file not shown.

0 comments on commit 17643bd

Please sign in to comment.