战力:百家学宫
This commit is contained in:
@@ -43,8 +43,8 @@ export class CalCe {
|
|||||||
let val = 0, str = '';
|
let val = 0, str = '';
|
||||||
if(ABI_TYPE_MAIN.indexOf(attrId) != -1) {
|
if(ABI_TYPE_MAIN.indexOf(attrId) != -1) {
|
||||||
// {[hp1 + lv * hp2 + hp3 * ( 1 + hp4 )] * (1 + hp5 ) + [( hp6 + hp7 ) * ( 1 + hp8 )] } * ( 1 + hp9 ) + hp10 + hp11
|
// {[hp1 + lv * hp2 + hp3 * ( 1 + hp4 )] * (1 + hp5 ) + [( hp6 + hp7 ) * ( 1 + hp8 )] } * ( 1 + hp9 ) + hp10 + hp11
|
||||||
val = ((mainBase + job + lv * starUp + connect * ( 1 + favour/100 )) * ( 1 + school + talent/100 ) + (( equipQuality + equipStrength ) * ( 1 + ( equipStar/100 + equipSuit/100 ))) ) * ( 1 + jewel/100 ) + stone + teraph + title + scroll + skin;
|
val = ((mainBase + job + lv * starUp + connect * ( 1 + favour/100 )) * ( 1 + school/100 + talent/100 ) + (( equipQuality + equipStrength ) * ( 1 + ( equipStar/100 + equipSuit/100 ))) ) * ( 1 + jewel/100 ) + stone + teraph + title + scroll + skin;
|
||||||
str += `{[${mainBase}+${job}+${lv}*${starUp}+${connect}*(1+${favour}/100)]*(1+${school}+${talent}/100)+[(${equipQuality}+${equipStrength})*(1+${equipStar}/100+${equipSuit}/100)]}*(1+${jewel}/100)+${stone}+${teraph}+${title}+${scroll}+${skin}`;
|
str += `{[${mainBase}+${job}+${lv}*${starUp}+${connect}*(1+${favour}/100)]*(1+${school}/100+${talent}/100)+[(${equipQuality}+${equipStrength})*(1+${equipStar}/100+${equipSuit}/100)]}*(1+${jewel}/100)+${stone}+${teraph}+${title}+${scroll}+${skin}`;
|
||||||
} else {
|
} else {
|
||||||
// attr1 + attr2 + attr3 + attr4 + attr5 + attr6 + attr7 + attr8 + attr9
|
// attr1 + attr2 + attr3 + attr4 + attr5 + attr6 + attr7 + attr8 + attr9
|
||||||
val = subBase + job + talent + teraph + school + title + jewel + skin + equipStar;
|
val = subBase + job + talent + teraph + school + title + jewel + skin + equipStar;
|
||||||
@@ -233,12 +233,10 @@ 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