继续
This commit is contained in:
@@ -92,8 +92,7 @@ export class BuffComp extends Component {
|
||||
}
|
||||
|
||||
vmdata_update(is_hp:boolean=false){
|
||||
if(this.HeroView.is_kalami) return
|
||||
console.log("[BuffComp]:to_update_vmdata:"+this.HeroView.hero_name)
|
||||
// console.log("[BuffComp]:to_update_vmdata:"+this.HeroView.hero_name)
|
||||
|
||||
let buff=null
|
||||
let info= null
|
||||
@@ -121,6 +120,8 @@ export class BuffComp extends Component {
|
||||
view_deatk += this.HeroView.DEBUFF_DEATKS[i].value
|
||||
}
|
||||
info.ap=this.HeroView.ap
|
||||
info.cd=this.HeroView.cd*(100-buff.ATK_CD)/100
|
||||
console.log("info.buff.ATK_CD",buff.ATK_CD)
|
||||
info.equip_ap=buff.ATK
|
||||
info.buff_ap=view_atk
|
||||
info.debuff_ap=view_deatk
|
||||
@@ -133,15 +134,6 @@ export class BuffComp extends Component {
|
||||
|
||||
}
|
||||
|
||||
update_info_hp(){
|
||||
let ihp_node = this.top_node.getChildByName("ihp");
|
||||
ihp_node.getChildByName("num").getComponent(Label)!.string = this.HeroView.hp.toFixed(0)
|
||||
}
|
||||
|
||||
update_info_ap(){
|
||||
let iap_node = this.top_node.getChildByName("iap");
|
||||
iap_node.getChildByName("num").getComponent(Label)!.string = this.HeroView.ap.toFixed(0)
|
||||
}
|
||||
|
||||
update_info_lv(){
|
||||
let lv_node = this.top_node.getChildByName("lv");
|
||||
|
||||
Reference in New Issue
Block a user