1
0
mirror of https://github.com/soarqin/DSP_Mods.git synced 2026-03-22 11:53:25 +08:00

minor fixes

This commit is contained in:
2026-03-20 14:57:25 +08:00
parent e2848b4f97
commit 109c6afd90
6 changed files with 60 additions and 8 deletions

View File

@@ -2007,11 +2007,10 @@ public class FactoryPatch : PatchImpl<FactoryPatch>
var consume = (byte)Math.Min(DarkFogItemsInVoid[itemIdx], 4);
if (consume < 4)
{
var metaverse = propertySystem.GetItemAvaliableProperty(_clusterSeedKey, 6006);
if (metaverse > 0)
var metaverseLong = propertySystem.GetItemAvaliableProperty(_clusterSeedKey, 6006);
if (metaverseLong > 0L)
{
if (metaverse > 10)
metaverse = 10;
var metaverse = metaverseLong > 10 ? 10 : (int)metaverseLong;
propertySystem.AddItemConsumption(_clusterSeedKey, 6006, metaverse);
var mainPlayer = GameMain.mainPlayer;
GameMain.history.AddPropertyItemConsumption(6006, metaverse, true);