デバッグでのタンク補充を変更
This commit is contained in:
parent
c5f397fbec
commit
4b4a1490c8
|
|
@ -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<ProductStockData>
|
||||
{
|
||||
new ProductStockData
|
||||
{
|
||||
Rarity = ProductRarity.Gold,
|
||||
Stock = 17
|
||||
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 = 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);
|
||||
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(_ =>
|
||||
|
|
|
|||
Loading…
Reference in New Issue