召唤师技能完成
This commit is contained in:
@@ -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; // 伤害增量
|
||||
|
||||
Reference in New Issue
Block a user