Added all recipes

This commit is contained in:
Pasha Bibko
2026-04-28 11:05:02 +01:00
parent ba386f4c88
commit 5e7507058b
4 changed files with 128 additions and 26 deletions

View File

@@ -1,4 +1,5 @@
using System.Collections.Generic;
using System;
using System.Collections.Generic;
using Fruitomation.Game.Items;
using JetBrains.Annotations;
using UnityEngine.Scripting;
@@ -74,26 +75,49 @@ namespace Fruitomation.Game
return;
}
item.CurrentType = item.CurrentType switch
switch (item.CurrentType)
{
ItemType.Apple => UpgradeManager.Is(BasicUpgrade.AppleSlices)
? ItemType.AppleSlices
: ItemType.Apple,
case ItemType.Apple:
item.CurrentType = UpgradeManager.Is(BasicUpgrade.AppleJuice)
? ItemType.AppleJuice
: ItemType.Apple;
break;
case ItemType.Grape:
item.CurrentType = UpgradeManager.Is(BasicUpgrade.GrapeJuice)
? ItemType.GrapeJuice
: ItemType.Grape;
break;
case ItemType.BananaSkin:
item.CurrentType = UpgradeManager.Is(BasicUpgrade.BananaBacon)
? ItemType.BananaBacon
: ItemType.BananaSkin;
break;
case ItemType.Kiwi:
item.CurrentType = UpgradeManager.Is(BasicUpgrade.KiwiPresser) // BYPRODUCT NEEDED
? ItemType.KiwiJuice
: ItemType.Kiwi;
FruitSpawner.SpawnItem(ItemType.KiwiSeeds, transform.position);
break;
case ItemType.Mango:
item.CurrentType = UpgradeManager.Is(BasicUpgrade.MangoJuice)
? ItemType.MangoJuice
: ItemType.Mango;
break;
case ItemType.PitayaSkin:
item.CurrentType = UpgradeManager.Is(BasicUpgrade.PitayaFoodDye)
? ItemType.PitayaFoodDye
: ItemType.PitayaSkin;
break;
ItemType.Grape => UpgradeManager.Is(BasicUpgrade.GrapeJuice)
? ItemType.GrapeJuice
: ItemType.Grape,
ItemType.Kiwi => UpgradeManager.Is(BasicUpgrade.KiwiPresser)
? ItemType.KiwiJuice
: ItemType.Kiwi,
ItemType.PitayaSkin => UpgradeManager.Is(BasicUpgrade.PitayaFoodDye)
? ItemType.PitayaFoodDye
: ItemType.PitayaSkin,
var _ => item.CurrentType // Default
};
default:
item.CurrentType = item.CurrentType;
break;
}
}
}
}