private void checkRemainingXP() { if (currentMascotLevel < targetMacotLevel && ProgressionService.GetMascotLevelFromXP(currentMascotLevel) != Service.Get <ProgressionService>().MascotLevel(currentMascotName)) { Reward rewardForProgressionLevel = RewardUtils.GetRewardForProgressionLevel(Service.Get <ProgressionService>().Level); ShowRewardPopup pendingLevelUpPopup = new ShowRewardPopup.Builder(DRewardPopup.RewardPopupType.levelUp, rewardForProgressionLevel).setMascotName(currentMascotName).Build(); Service.Get <ProgressionService>().PendingLevelUpPopup = pendingLevelUpPopup; } }
private void ShowLevelUp(int level) { Reward rewardForProgressionLevel = RewardUtils.GetRewardForProgressionLevel(level); ShowRewardPopup showRewardPopup = new ShowRewardPopup.Builder(DRewardPopup.RewardPopupType.levelUp, rewardForProgressionLevel).setMascotName(currentMascotName).Build(); if (!isLevelUpScreenSuppressed) { showRewardPopup.Execute(); } else { Service.Get <ProgressionService>().PendingLevelUpPopup = showRewardPopup; } }