🐞 fix(诸子列传): 战力计算错误

This commit is contained in:
luying
2023-07-14 12:23:03 +08:00
parent b693f00c19
commit 1d02e0f62e
2 changed files with 9 additions and 1 deletions

View File

@@ -432,6 +432,14 @@ export async function calculateCes(type: HERO_SYSTEM_TYPE, roleId: string, serve
break; break;
} }
case HERO_SYSTEM_TYPE.AUTHOR_BOOK_STAR: // 40. 诸子百家升星 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; let { authorBooks = [], bookId, subId } = param;
calCe.setAuthorBooks(authorBooks); calCe.setAuthorBooks(authorBooks);

View File

@@ -767,7 +767,7 @@ class CalCeData {
} }
public clearRoleAttr(field: string) { public clearRoleAttr(field: string) {
for(let globalAttr of this.globalAttrs) { for(let [_attrId, globalAttr] of this.globalAttrs) {
globalAttr[field] = 0; globalAttr[field] = 0;
} }
} }