diff --git a/game-server/app/services/playerCeService.ts b/game-server/app/services/playerCeService.ts index 8e39cfeb4..0ab42e198 100644 --- a/game-server/app/services/playerCeService.ts +++ b/game-server/app/services/playerCeService.ts @@ -432,6 +432,14 @@ export async function calculateCes(type: HERO_SYSTEM_TYPE, roleId: string, serve break; } case HERO_SYSTEM_TYPE.AUTHOR_BOOK_STAR: // 40. 诸子百家升星 + { + let { authorBooks = [], bookId, subId } = param; + calCe.setAuthorBooks(authorBooks); + ceChangeTxt.push(`诸子列传 ${bookId} 的 ${subId} 升星`); + + break; + } + case HERO_SYSTEM_TYPE.AUTHOR_BOOK_SUB_RESET: // 41. 诸子百家重置 { let { authorBooks = [], bookId, subId } = param; calCe.setAuthorBooks(authorBooks); diff --git a/game-server/app/services/role/calCe.ts b/game-server/app/services/role/calCe.ts index 42d42f4d3..7781a854a 100644 --- a/game-server/app/services/role/calCe.ts +++ b/game-server/app/services/role/calCe.ts @@ -767,7 +767,7 @@ class CalCeData { } public clearRoleAttr(field: string) { - for(let globalAttr of this.globalAttrs) { + for(let [_attrId, globalAttr] of this.globalAttrs) { globalAttr[field] = 0; } }