Debug機能修正
This commit is contained in:
parent
08b7f31ce7
commit
71fb9622f5
|
|
@ -121,7 +121,7 @@ public class DebugOptionManager : MonoBehaviour
|
||||||
gameData.StorageTanks.Add(new StorageTank(){Capacity = Const.TankCapacity});
|
gameData.StorageTanks.Add(new StorageTank(){Capacity = Const.TankCapacity});
|
||||||
}
|
}
|
||||||
var flavor = gameData.StorageTanks[0].FlavorId;
|
var flavor = gameData.StorageTanks[0].FlavorId;
|
||||||
if (flavor == -1)
|
if (flavor < 1)
|
||||||
{
|
{
|
||||||
flavor = 1;
|
flavor = 1;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -598,6 +598,11 @@ public class Market : SingletonMonoBehaviour<Market>
|
||||||
{
|
{
|
||||||
GameDataManager.GameData.ShopStock.RemoveRange(0, GameDataManager.GameData.ShopStock.Count - ShopStockCount);
|
GameDataManager.GameData.ShopStock.RemoveRange(0, GameDataManager.GameData.ShopStock.Count - ShopStockCount);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
foreach (var stockData in GameDataManager.GameData.ShopStock.Where(stockData => stockData.FlavorId < 1))
|
||||||
|
{
|
||||||
|
stockData.FlavorId = 1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void SetGameData(GameData newGameData)
|
public void SetGameData(GameData newGameData)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue