战力:修复bug
This commit is contained in:
@@ -59,11 +59,12 @@ export async function calculateCes(type: HERO_SYSTEM_TYPE, roleId: string, serve
|
||||
switch (type) {
|
||||
case HERO_SYSTEM_TYPE.INIT:
|
||||
{
|
||||
for(let [hid, { skinId, lv, quality, star, starStage, colorStar, colorStarStage, job, jobStage, }] of heroUpdates) {
|
||||
for(let [hid, { skinId, lv, quality, star, starStage, colorStar, colorStarStage, job, jobStage, skins }] of heroUpdates) {
|
||||
calCe.setHeroBase(hid, skinId);
|
||||
calCe.setHeroLv(hid, lv);
|
||||
calCe.setHeroStar(hid, job, quality, star, starStage, colorStar, colorStarStage);
|
||||
calCe.setJob(hid, job, jobStage);
|
||||
calCe.setTalent(hid, skins)
|
||||
}
|
||||
console.log('####### roleUpdate', param.isInitRole, roleUpdate)
|
||||
if(param.isInitRole) {
|
||||
|
||||
@@ -214,7 +214,7 @@ export class CalCe {
|
||||
// 第一次获得皮肤
|
||||
public setAddSkin(skinId: number) {
|
||||
let addSkin = gameData.fashion.get(skinId);
|
||||
for (let { id, number: val } of addSkin.globalAttr) {
|
||||
for (let { id, number: val } of addSkin.actorAttr) {
|
||||
let globalAttr = this.data.getGlobalAttrById(id);
|
||||
globalAttr.skin += val;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user