血量更新 修改

This commit is contained in:
2024-12-26 15:49:07 +08:00
parent 13bec1e640
commit 295dcbda33
7 changed files with 51 additions and 55 deletions

View File

@@ -36,10 +36,12 @@ export class Skill extends ecs.Entity {
let angle=0
if(SkillSet[uuid].angle){
angle = Math.atan2(t_pos.y,t_pos.x) * 180 / Math.PI;
if(t_pos.x<0){
angle+=180
}
}
sv.angle = angle;
// console.log(SkillSet[uuid].name+"angle:"+angle)
console.log(group+" "+SkillSet[uuid].name+"angle:"+angle)
sv.s_uuid = uuid;
sv.ap = ap;
sv.is_crit=is_crit