装备添加

This commit is contained in:
2025-06-08 23:16:40 +08:00
parent 63f4d1067e
commit 094b55f349
50 changed files with 20810 additions and 62152 deletions

View File

@@ -119,6 +119,7 @@ export class HeroViewComp extends CCComp {
}
/* 显示角色血量 */
this.node.getChildByName("top").getChildByName("hp").active = true;
// console.log("hero parent",this.node.parent)
}
update(dt: number){
if(!smc.mission.play||smc.mission.pause) return
@@ -359,10 +360,10 @@ export class HeroViewComp extends CCComp {
this.atked_count++;
if (isCrit) {
this.BUFFCOMP.tooltip(4, damage.toFixed(0), damage);
console.log("暴击伤害:" + damage);
// console.log("暴击伤害:" + damage);
} else {
this.BUFFCOMP.tooltip(1, damage.toFixed(0), damage);
console.log("普通伤害:" + damage);
// console.log("普通伤害:" + damage);
}
}
}