寻宝:信息边窗
This commit is contained in:
@@ -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 };
|
||||
}
|
||||
|
||||
// 玩家等级
|
||||
|
||||
Reference in New Issue
Block a user