升阶后 数字确认
This commit is contained in:
@@ -154,9 +154,9 @@ export class HeroHomeComp extends CCComp {
|
||||
}else{
|
||||
this.node.getChildByName("show").getChildByName("call").active=false
|
||||
};
|
||||
attr.getChildByName("ap").getChildByName("val").getComponent(Label).string = ((this.hero.ap+this.hero.ap_up* this.role.lv)*(1+this.hero.sap_up/100*this.role.slv)).toFixed(0).toString()
|
||||
attr.getChildByName("hp").getChildByName("val").getComponent(Label).string = ((this.hero.hp+this.hero.hp_up* this.role.lv)*(1+this.hero.shp_up/100*this.role.slv)).toFixed(0).toString()
|
||||
attr.getChildByName("def").getChildByName("val").getComponent(Label).string = ((this.hero.ap+this.hero.ap_up* this.role.lv)*(1+this.hero.sdef_up/100*this.role.slv)).toFixed(0).toString()
|
||||
attr.getChildByName("ap").getChildByName("val").getComponent(Label).string = ((this.hero.ap+this.hero.ap_up* this.role.lv)*(1+this.hero.sap_up/100*(this.role.slv-1))).toFixed(0).toString()
|
||||
attr.getChildByName("hp").getChildByName("val").getComponent(Label).string = ((this.hero.hp+this.hero.hp_up* this.role.lv)*(1+this.hero.shp_up/100*(this.role.slv))).toFixed(0).toString()
|
||||
attr.getChildByName("def").getChildByName("val").getComponent(Label).string = ((this.hero.ap+this.hero.ap_up* this.role.lv)*(1+this.hero.sdef_up/100*(this.role.slv-1))).toFixed(0).toString()
|
||||
attr.getChildByName("acd").getChildByName("val").getComponent(Label).string = this.hero.a_cd
|
||||
attr.getChildByName("speed").getChildByName("val").getComponent(Label).string = this.hero.speed
|
||||
attr.getChildByName("dis").getChildByName("val").getComponent(Label).string = this.hero.dis
|
||||
|
||||
Reference in New Issue
Block a user