🐞 fix(诸子列传): 进度条战力计算
This commit is contained in:
@@ -583,7 +583,7 @@ export class CalCe {
|
||||
|
||||
let dicPoints = gameData.authorBookPoint.get(bookId)||[];
|
||||
for(let { value, attr } of dicPoints) {
|
||||
if(progress > value) {
|
||||
if(progress >= value) {
|
||||
for(let { id, val } of attr) addToMap(attrResult, id, val);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -18,8 +18,8 @@ export function loadAuthorsBookPoint() {
|
||||
|
||||
arr.forEach(o => {
|
||||
o.attr = parseAttribute(o.attr);
|
||||
if(!dicAuthorsBookPoint.has(o.id)) dicAuthorsBookPoint.set(o.id, []);
|
||||
dicAuthorsBookPoint.get(o.id)?.push(o);
|
||||
if(!dicAuthorsBookPoint.has(o.bookId)) dicAuthorsBookPoint.set(o.bookId, []);
|
||||
dicAuthorsBookPoint.get(o.bookId)?.push(o);
|
||||
});
|
||||
arr = undefined;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user