复制的数据 删除后的 代码需要注意

This commit is contained in:
2024-09-24 16:20:06 +08:00
parent 61a1188865
commit ecc7ba9621
9 changed files with 4477 additions and 3626 deletions

View File

@@ -387,7 +387,7 @@ export class HeroViewComp extends CCComp {
in_atk(dt: number) {
if(this.atk_time >= this.atk_cd*smc.vm_data.mission.hero.atk_cd){
if(this.atk_time >= this.atk_cd/smc.vm_data.mission.hero.atk_cd){
if(this.is_atking){
this.atk_time = 0;
// console.log("atk_cd:"+this.atk_cd);
@@ -425,7 +425,6 @@ export class HeroViewComp extends CCComp {
this.hp_max_add()
this.hp += hp;
this.hp_max += hp;
console.log("hp_max:"+this.hp_max+":"+hp+":"+this.hp)
let hp_progress= this.hp/this.hp_max;
this.node.getChildByName("top").getChildByName("hp").getComponent(ProgressBar)!.progress = hp_progress;
}