召唤师技能完成

This commit is contained in:
2025-01-16 20:53:52 +08:00
parent 6dc489a362
commit 65b03af516
6 changed files with 583 additions and 602 deletions

View File

@@ -22,7 +22,7 @@ export class Skill extends ecs.Entity {
super.destroy();
}
load(pos: Vec3 = Vec3.ZERO,group:number,parent:Node,uuid:number=1001,
ap:number =10,t_pos:Vec3 = null,is_crit:boolean=false,crit_add:number=0,hp:number=0)
ap:number =10,t_pos:Vec3 = null,is_crit:boolean=false,crit_add:number=0,hp:number=0,lv:number=1)
{
var path = "game/skills/"+SkillSet[uuid].sp_name;
var prefab: Prefab = oops.res.get(path, Prefab)!;
@@ -49,6 +49,7 @@ export class Skill extends ecs.Entity {
sv.s_uuid = uuid;
sv.s_name = SkillSet[uuid].name;
sv.hero = SkillSet[uuid].hero;
sv.lv=lv
sv.ap = ap*SkillSet[uuid].ap/100; // 技能伤害
sv.def = ap*SkillSet[uuid].def/100; // 技能伤害
sv.apup = ap*SkillSet[uuid].apup/100; // 伤害增量