战力:皮肤
This commit is contained in:
@@ -119,8 +119,8 @@ export async function calculateCes(type: HERO_SYSTEM_TYPE, roleId: string, serve
|
|||||||
}
|
}
|
||||||
case HERO_SYSTEM_TYPE.SKIN: // 7. 穿皮肤
|
case HERO_SYSTEM_TYPE.SKIN: // 7. 穿皮肤
|
||||||
{
|
{
|
||||||
let { hero: { quality, star, starStage, colorStar, colorStarStage, skins } } = param;
|
let { hero: { quality, star, starStage, colorStar, colorStarStage } } = param;
|
||||||
for(let [hid, { skinId, job, ePlace }] of heroUpdates) {
|
for(let [hid, { skinId, job, ePlace, skins }] of heroUpdates) {
|
||||||
calCe.setHeroBase(hid, skinId);
|
calCe.setHeroBase(hid, skinId);
|
||||||
calCe.setHeroStar(hid, job, quality, star, starStage, colorStar, colorStarStage);
|
calCe.setHeroStar(hid, job, quality, star, starStage, colorStar, colorStarStage);
|
||||||
for(let { id, equipId, quality, qualityStage, lv, star, starStage } of ePlace) {
|
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. 好感度
|
case HERO_SYSTEM_TYPE.FAVOUR: // 8. 好感度
|
||||||
{
|
{
|
||||||
let { hero: { connections }, isFavourLvUp } = param;
|
let { hero: { connections }, isFavourLvUp } = param;
|
||||||
console.log('####', connections, isFavourLvUp, heroUpdates)
|
|
||||||
if(isFavourLvUp) {
|
if(isFavourLvUp) {
|
||||||
for(let [hid, { favourLv }] of heroUpdates) {
|
for(let [hid, { favourLv }] of heroUpdates) {
|
||||||
calCe.setFavour(hid, favourLv, connections);
|
calCe.setFavour(hid, favourLv, connections);
|
||||||
|
|||||||
@@ -233,10 +233,12 @@ export class CalCe {
|
|||||||
this.data.clearHeroAttrByHid(hid, 'talent');
|
this.data.clearHeroAttrByHid(hid, 'talent');
|
||||||
let skin = skins.find(cur => cur.enable);
|
let skin = skins.find(cur => cur.enable);
|
||||||
let seids = this.getTalentSeid(skin.talent);
|
let seids = this.getTalentSeid(skin.talent);
|
||||||
|
console.log('######### setTalent', hid, skin, seids)
|
||||||
let { ratioUp } = this.addSeidEffect(seids);
|
let { ratioUp } = this.addSeidEffect(seids);
|
||||||
for(let [attrId, val] of ratioUp) {
|
for(let [attrId, val] of ratioUp) {
|
||||||
let heroAttr = this.data.getHeroAttrByHidAndId(hid, attrId);
|
let heroAttr = this.data.getHeroAttrByHidAndId(hid, attrId);
|
||||||
heroAttr.talent = val;
|
heroAttr.talent = val;
|
||||||
|
console.log('######### heroAttr.talent', heroAttr.talent)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user