特效新内容。修复gameplay致命bug和分数保存bug

This commit is contained in:
FloatGaming
2026-02-16 01:55:18 +08:00
parent 3a7a0b4669
commit 9f7c1c57b7
206 changed files with 112684 additions and 857 deletions
@@ -304,36 +304,7 @@ public class settlementController : MonoBehaviour
{
int pm = sm != null ? sm.allSum_pmScore : 0;
int idol = sm != null ? sm.allSum_idolScore : 0;
int total = pm + idol;
// Documentation text normalized.
thisSong_so.UpdateDifficultyRecord(diff, pm, idol);
// Documentation text normalized.
thisSong_so.UpdateChartScore(diff, total);
// Documentation text normalized.
if (thisSong_so.chartFiles != null)
{
var entry = thisSong_so.chartFiles.Find(e => e != null && e.difficulty == diff);
if (entry != null)
{
// Documentation text normalized.
float newProgress = Mathf.Clamp01((float)total / (float)maxScore_sum);
if (newProgress > entry.levelProgressForThisDifficulty)
{
entry.levelProgressForThisDifficulty = newProgress;
}
if (thisSong_so.thisLevel_selectedDifficultyID == diff)
{
thisSong_so.current_levelProgress = Mathf.Max(thisSong_so.current_levelProgress, entry.levelProgressForThisDifficulty);
}
}
}
// --- 更新:保存到持久化存储(Build包必需) ---
thisSong_so.SavePersistent();
thisSong_so.ApplySettlementResult(diff, pm, idol, maxScore_sum);
}
}
@@ -826,4 +797,3 @@ public class settlementController : MonoBehaviour
}
}
}