mirror of
https://github.com/setube/ogame-vue-ts.git
synced 2026-05-12 07:55:11 +08:00
docs: 更新修复重复星球 ID 的注释以澄清逻辑
更新 fixDuplicatePlanetIds 函数中的注释,明确说明 buildDuplicatePlanetIdMap 已在上一步修复重复 ID,当前函数仅通过检查 idMap 是否非空来判断迁移是否发生实际修改。
This commit is contained in:
@@ -287,6 +287,8 @@ const fixDuplicatePlanetIds = (data: MigratableGameData): boolean => {
|
|||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// buildDuplicatePlanetIdMap 已经在上一步直接修复了重复星球 ID,
|
||||||
|
// 只要 idMap 非空,就说明当前迁移已经发生了实际修改。
|
||||||
let mutated = true
|
let mutated = true
|
||||||
|
|
||||||
player.planets.forEach(planet => {
|
player.planets.forEach(planet => {
|
||||||
|
|||||||
Reference in New Issue
Block a user