寻宝:信息边窗

This commit is contained in:
luying
2022-07-07 13:27:43 +08:00
parent b1dc091453
commit 460d0d6955
15 changed files with 153 additions and 38 deletions
+3 -1
View File
@@ -15,6 +15,7 @@ export class CalCe {
resultCes: Map<number, number> = new Map(); // hid => ce
data: CalCeData;
attrsByHid: Map<number, { id: number, val: number, str: string }[]> = new Map();
originTopHeroCe: number;
constructor(roleId: string) {
this.roleId = roleId;
@@ -23,6 +24,7 @@ export class CalCe {
public setRoleCe(roleCe: RoleCeType) {
this.data = new CalCeData(roleCe)
this.originCes = this.calHeroCe();
this.originTopHeroCe = this.getTopLineup().topLineupCe;
}
public clearRoleCe() {
@@ -126,7 +128,7 @@ export class CalCe {
topLineupCe += ce;
}
}
return { topLineup, topLineupCe };
return { topLineup, topLineupCe, hasTopCeChange: topLineupCe == this.originTopHeroCe };
}
// 玩家等级