This commit is contained in:
2025-06-25 23:57:19 +08:00
parent 7363952dae
commit 862777a9c7
6 changed files with 4486 additions and 4792 deletions

View File

@@ -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");