都市レベルアップ時にミッションチェックを追加

This commit is contained in:
kimura 2022-12-06 18:00:50 +09:00
parent e5f0528d0b
commit d034e55228
1 changed files with 2 additions and 0 deletions

View File

@ -95,6 +95,8 @@ public class HeaderManager : MonoBehaviour
// レベルアップ処理
cityGameData.ViewedShopLevel = newShopLevelData.shopLevel;
GameDataManager.SaveGameData();
// ミッションチェック
GameDataObserver.Instance.UpdateMissionProgress();
// シナリオ読み込み
if (ItemConditionUtils.GetScriptList(newShopLevelData.cityId, ItemCondition.CityLevel, cityGameData.ViewedShopLevel).FirstOrDefault() is not { } conditionData) return;
var levelUpScripts = scriptList.Where(data => data.id == conditionData.scriptId).ToList();