From a9a7f076f4303a6582b6664e52299f2ed5d21a84 Mon Sep 17 00:00:00 2001 From: walkpan Date: Mon, 6 Jan 2025 13:30:58 +0800 Subject: [PATCH] =?UTF-8?q?tgcom=E4=BF=AE=E5=A4=8D=EF=BC=8C=20todo=20?= =?UTF-8?q?=E5=85=B6=E4=BB=96=E6=8A=80=E8=83=BD=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/script/game/common/config/MissionSet.ts | 2 +- assets/script/game/hero/HeroViewComp.ts | 5 ++--- assets/script/game/map/MissionComp.ts | 18 +++++++++--------- assets/script/game/skills/Skill.ts | 2 +- assets/script/game/skills/TgCom.ts | 4 ++++ 5 files changed, 17 insertions(+), 14 deletions(-) diff --git a/assets/script/game/common/config/MissionSet.ts b/assets/script/game/common/config/MissionSet.ts index 17350641..1b20bb95 100644 --- a/assets/script/game/common/config/MissionSet.ts +++ b/assets/script/game/common/config/MissionSet.ts @@ -20,7 +20,7 @@ export const MissionSet = [ export const Missions = [ [5201,5201,5202,5203,5204,5205,5206,5207,5208,5209,5210,5211,5212], [5213,5213,5214,5215], - [5015,5015], + [5015,], ] diff --git a/assets/script/game/hero/HeroViewComp.ts b/assets/script/game/hero/HeroViewComp.ts index c2290a3c..ff24a543 100644 --- a/assets/script/game/hero/HeroViewComp.ts +++ b/assets/script/game/hero/HeroViewComp.ts @@ -317,10 +317,10 @@ export class HeroViewComp extends CCComp { get_enemy_pos(){ let t_pos:Vec3 = v3(720,0) if(this.enemy){ - t_pos = v3(this.enemy.x-this.node.position.x,this.enemy.y-this.node.position.y) - console.log(this.hero_name+":"+this.uuid+"enemy ="+this.enemy.x+" x"+this.node.position.x+" t_pos"+t_pos); + } + console.log(this.hero_name+":"+this.uuid+"enemy ="+this.enemy.x+" x"+this.node.position.x+" t_pos"+t_pos); return t_pos } get_hero_pos(hero:any){ @@ -410,7 +410,6 @@ export class HeroViewComp extends CCComp { if(this.pw >= this.pwm){ this.pw = 0 this.BUFFCOMP.max_show() - this.do_skill(this.sk2) return true }else{ diff --git a/assets/script/game/map/MissionComp.ts b/assets/script/game/map/MissionComp.ts index cc7cc0f8..fe81723d 100644 --- a/assets/script/game/map/MissionComp.ts +++ b/assets/script/game/map/MissionComp.ts @@ -257,19 +257,19 @@ export class MissionComp extends CCComp { let yc=2 let bc=1 for(let i=0;i