diff --git a/popcorn/Assets/MyGame/Scenes/DebugOption/Scripts/DebugOptionManager.cs b/popcorn/Assets/MyGame/Scenes/DebugOption/Scripts/DebugOptionManager.cs index 68645da2..03bf27d0 100644 --- a/popcorn/Assets/MyGame/Scenes/DebugOption/Scripts/DebugOptionManager.cs +++ b/popcorn/Assets/MyGame/Scenes/DebugOption/Scripts/DebugOptionManager.cs @@ -84,38 +84,36 @@ public class DebugOptionManager : MonoBehaviour refillManyProductButton.OnClickAsObservable().Subscribe(_ => { - gameData.StorageTanks.Clear(); - gameData.StorageTanks.Add(new StorageTank(){Capacity = 50}); - gameData.StorageTanks.Add(new StorageTank(){Capacity = 50}); - gameData.StorageTanks.Add(new StorageTank(){Capacity = 50}); - gameData.StorageTanks.Add(new StorageTank() + // gameData.StorageTanks.Clear(); + // CookingResult.AddStock(new ProductData(){volume = 5, id = 1}, ProductRarity.Normal); + // CookingResult.AddStock(new ProductData(){volume = 5, id = 1}, ProductRarity.Yellow); + // CookingResult.AddStock(new ProductData(){volume = 5, id = 1}, ProductRarity.Copper); + // CookingResult.AddStock(new ProductData(){volume = 5, id = 1}, ProductRarity.Silver); + // CookingResult.AddStock(new ProductData(){volume = 5, id = 1}, ProductRarity.Gold); + // CookingResult.AddStock(new ProductData(){volume = 5, id = 1}, ProductRarity.Rainbow); + // CookingResult.AddStock(new ProductData(){volume = 20, id = 2}, ProductRarity.Silver); + if (gameData.StorageTanks.Count < 2) { - Capacity = 50, - FlavorId = 5, - Stocks = new List - { - new ProductStockData - { - Rarity = ProductRarity.Gold, - Stock = 17 - } - } - }); - CookingResult.AddStock(new ProductData(){volume = 5, id = 1}, ProductRarity.Normal); - CookingResult.AddStock(new ProductData(){volume = 5, id = 1}, ProductRarity.Yellow); - CookingResult.AddStock(new ProductData(){volume = 5, id = 1}, ProductRarity.Copper); - CookingResult.AddStock(new ProductData(){volume = 5, id = 1}, ProductRarity.Silver); - CookingResult.AddStock(new ProductData(){volume = 5, id = 1}, ProductRarity.Gold); - CookingResult.AddStock(new ProductData(){volume = 5, id = 1}, ProductRarity.Rainbow); - CookingResult.AddStock(new ProductData(){volume = 20, id = 2}, ProductRarity.Silver); - CookingResult.AddStock(new ProductData(){volume = 30, id = 3}, ProductRarity.Gold); + gameData.StorageTanks.Add(new StorageTank(){Capacity = Const.TankCapacity}); + } + var flavor = gameData.StorageTanks[0].FlavorId; + if (flavor == -1) + { + flavor = 1; + } + CookingResult.AddStock(new ProductData(){volume = 5, id = flavor}, ProductRarity.Normal); + CookingResult.AddStock(new ProductData(){volume = 5, id = flavor}, ProductRarity.Yellow); + CookingResult.AddStock(new ProductData(){volume = 5, id = flavor}, ProductRarity.Copper); + CookingResult.AddStock(new ProductData(){volume = 5, id = flavor}, ProductRarity.Silver); + CookingResult.AddStock(new ProductData(){volume = 10, id = 1}, ProductRarity.Copper); + CookingResult.AddStock(new ProductData(){volume = 10, id = 1}, ProductRarity.Silver); }).AddTo(this); refillLittleProductButton.OnClickAsObservable().Subscribe(_ => { gameData.StorageTanks.ForEach(x => x.ClearStock()); - CookingResult.AddStock(new ProductData(){volume = 5, id = 1}, ProductRarity.Yellow); - CookingResult.AddStock(new ProductData(){volume = 5, id = 1}, ProductRarity.Gold); + // CookingResult.AddStock(new ProductData(){volume = 5, id = 1}, ProductRarity.Yellow); + CookingResult.AddStock(new ProductData(){volume = 3, id = 2}, ProductRarity.Copper); }).AddTo(this); bulkOrderResetButton.OnClickAsObservable().Subscribe(_ =>