🐞 fix(宝物): 重铸宝物的时候可能会刷到宝物精华
This commit is contained in:
@@ -415,7 +415,18 @@ export async function calculateCes(type: HERO_SYSTEM_TYPE, roleId: string, serve
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
case HERO_SYSTEM_TYPE.ARTIFACT_REBUILD: // 39. 宝物重铸
|
||||
{
|
||||
let { artifact, job, skinId } = param;
|
||||
if(!artifact) break;
|
||||
for(let [hid ] of heroUpdates) {
|
||||
calCe.setArtifactLv(hid, artifact.artifactId, artifact.lv);
|
||||
calCe.setArtifactQuality(hid, artifact.artifactId);
|
||||
calCe.setArtifactSeid(hid, skinId, job, artifact.artifactId);
|
||||
ceChangeTxt.push(`武将 ${hid} 装备的宝物重铸`);
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
let { heroCe, roleInc } = calCe.getCeInc(); // 计算战力,获得有变化的武将战力
|
||||
let changeHids: number[] = [];
|
||||
|
||||
Reference in New Issue
Block a user