This commit is contained in:
2025-04-27 13:29:00 +08:00
parent 789e4183ec
commit d75cce01d7
5 changed files with 70 additions and 48 deletions

View File

@@ -44,8 +44,9 @@ export class HeroViewComp extends CCComp {
is_atking:boolean = false;
is_boss:boolean = false;
is_big_boss:boolean = false;
rate:number=0;
r_up:number=0;
ap_u:number=0;
ap_ur:number=0;
hp_up:number=0;
hp: number = 100; /** 血量 */
hp_max: number = 100; /** 最大血量 */
hp_speed: number = 0; //每秒回复量
@@ -132,8 +133,7 @@ export class HeroViewComp extends CCComp {
// return
// }
if(this.timer.update(dt)){
this.add_ap(10)
this.add_hp_max(20)
// this.add_ap(10)
};
if(this.ice_cd > 0){
this.ice_cd -=dt;