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