战斗等级显示需要完善
This commit is contained in:
@@ -108,7 +108,7 @@ export class MissionHeroCompComp extends CCComp {
|
||||
}
|
||||
|
||||
get_info_and_remove(fight_pos:number,uuid:number){
|
||||
let info:any={ap:0,hp:0}
|
||||
let info:any={ap:0,hp:0,lv:0}
|
||||
let heros=ecs.query(ecs.allOf(HeroModelComp))
|
||||
for(let hero of heros){
|
||||
if(hero.get(HeroViewComp).fight_pos==fight_pos){
|
||||
@@ -123,6 +123,7 @@ export class MissionHeroCompComp extends CCComp {
|
||||
let s_hp_up = (HeroUpInfo[uuid] || {}).hp_up || 0 //替换 升级的英雄额外替换血量增长值
|
||||
info.ap=Math.floor(hv.ap*(AP_UP_RATE+o_ap_rate+s_ap_rate)/100+o_ap+s_ap)
|
||||
info.hp=Math.floor(o_hp_up+s_hp_up)
|
||||
info.lv=hv.lv
|
||||
hero.destroy()
|
||||
return info
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user