战力:皮肤

This commit is contained in:
luying
2022-05-18 11:57:35 +08:00
parent 9666cbdf93
commit 697b0f39bf
2 changed files with 4 additions and 3 deletions

View File

@@ -119,8 +119,8 @@ export async function calculateCes(type: HERO_SYSTEM_TYPE, roleId: string, serve
}
case HERO_SYSTEM_TYPE.SKIN: // 7. 穿皮肤
{
let { hero: { quality, star, starStage, colorStar, colorStarStage, skins } } = param;
for(let [hid, { skinId, job, ePlace }] of heroUpdates) {
let { hero: { quality, star, starStage, colorStar, colorStarStage } } = param;
for(let [hid, { skinId, job, ePlace, skins }] of heroUpdates) {
calCe.setHeroBase(hid, skinId);
calCe.setHeroStar(hid, job, quality, star, starStage, colorStar, colorStarStage);
for(let { id, equipId, quality, qualityStage, lv, star, starStage } of ePlace) {
@@ -135,7 +135,6 @@ export async function calculateCes(type: HERO_SYSTEM_TYPE, roleId: string, serve
case HERO_SYSTEM_TYPE.FAVOUR: // 8. 好感度
{
let { hero: { connections }, isFavourLvUp } = param;
console.log('####', connections, isFavourLvUp, heroUpdates)
if(isFavourLvUp) {
for(let [hid, { favourLv }] of heroUpdates) {
calCe.setFavour(hid, favourLv, connections);

View File

@@ -233,10 +233,12 @@ export class CalCe {
this.data.clearHeroAttrByHid(hid, 'talent');
let skin = skins.find(cur => cur.enable);
let seids = this.getTalentSeid(skin.talent);
console.log('######### setTalent', hid, skin, seids)
let { ratioUp } = this.addSeidEffect(seids);
for(let [attrId, val] of ratioUp) {
let heroAttr = this.data.getHeroAttrByHidAndId(hid, attrId);
heroAttr.talent = val;
console.log('######### heroAttr.talent', heroAttr.talent)
}
}