自動調理データの初期化追加
This commit is contained in:
parent
1c67ef403a
commit
bf431fa9e9
|
|
@ -392,6 +392,10 @@ public sealed class GameData {
|
||||||
{
|
{
|
||||||
Pans = new[] {Const.DefaultPanId};
|
Pans = new[] {Const.DefaultPanId};
|
||||||
}
|
}
|
||||||
|
if (AutoCookLevel < 1)
|
||||||
|
{
|
||||||
|
AutoCookLevel = 1;
|
||||||
|
}
|
||||||
|
|
||||||
// 追加した要素の初期化用
|
// 追加した要素の初期化用
|
||||||
// TODO Release前にまっさらにする
|
// TODO Release前にまっさらにする
|
||||||
|
|
@ -413,6 +417,7 @@ public sealed class GameData {
|
||||||
dailyMissionAchievedIdArray = dailyMissionAchievedIdArray ?? new int[0];
|
dailyMissionAchievedIdArray = dailyMissionAchievedIdArray ?? new int[0];
|
||||||
DailyTotalSalesList = DailyTotalSalesList ?? new List<ProductStockData>();
|
DailyTotalSalesList = DailyTotalSalesList ?? new List<ProductStockData>();
|
||||||
WaitAddStock = WaitAddStock ?? new ProductStockData{Rarity = ProductRarity.Normal};
|
WaitAddStock = WaitAddStock ?? new ProductStockData{Rarity = ProductRarity.Normal};
|
||||||
|
AutoCookProducts = AutoCookProducts ?? Array.Empty<int>();
|
||||||
}
|
}
|
||||||
private Dictionary<int, int> ArrayToDictionary(KeyValueOfintint[] array){
|
private Dictionary<int, int> ArrayToDictionary(KeyValueOfintint[] array){
|
||||||
var dictionary = new Dictionary<int, int>();
|
var dictionary = new Dictionary<int, int>();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue