From 1d02e0f62e32cf1d31cd4abc85f18a81fce7cd1b Mon Sep 17 00:00:00 2001 From: luying Date: Fri, 14 Jul 2023 12:23:03 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9E=20fix(=E8=AF=B8=E5=AD=90=E5=88=97?= =?UTF-8?q?=E4=BC=A0):=20=E6=88=98=E5=8A=9B=E8=AE=A1=E7=AE=97=E9=94=99?= =?UTF-8?q?=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- game-server/app/services/playerCeService.ts | 8 ++++++++ game-server/app/services/role/calCe.ts | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) 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; } }