修复exp

This commit is contained in:
2026-04-26 14:50:15 +08:00
parent 01d06f1a5f
commit 24c24acf44
4 changed files with 55 additions and 0 deletions
+47
View File
@@ -1572,6 +1572,53 @@ void AwardRogueSkillClearRewards(int clearedCells, int& scoreGain, int& expGain,
}
}
void CheckRogueLevelProgress()
{
if (currentMode != MODE_ROGUE || currentScreen != SCREEN_PLAYING)
{
return;
}
int levelUps = ApplyLevelProgress(rogueStats);
if (levelUps <= 0)
{
return;
}
upgradeUiState.pendingCount += levelUps;
int shockwaveRows = 0;
if (rogueStats.evolutionImpactLevel > 0)
{
shockwaveRows = 3;
rogueStats.feverTicks = kFeverDurationTicks;
currentFallInterval = GetRogueFallInterval();
}
else if (rogueStats.upgradeShockwaveLevel > 0)
{
shockwaveRows = 2;
}
if (shockwaveRows > 0)
{
pendingUpgradeShockwaveRows = shockwaveRows;
pendingEvolutionImpactShockwave = rogueStats.evolutionImpactLevel > 0;
}
TCHAR feedbackTitle[64];
TCHAR feedbackDetail[128];
_stprintf_s(feedbackTitle, _T("灵感涌现 x%d"), levelUps);
_stprintf_s(
feedbackDetail,
_T("等级 Lv.%d EXP %d/%d 选择新的强化"),
rogueStats.level,
rogueStats.exp,
rogueStats.requiredExp);
SetFeedbackMessage(feedbackTitle, feedbackDetail, 10);
OpenUpgradeMenu();
}
void ApplyBoardGravity()
{
int playableHeight = GetRoguePlayableHeight();