清理了 一些buff 技能

This commit is contained in:
2025-10-22 17:11:03 +08:00
parent d987e0806f
commit e32a66cfc9
57 changed files with 1737 additions and 10163 deletions

View File

@@ -61,7 +61,6 @@ export class BuffComp extends Component {
// if(this.timer.update(deltaTime)){
// this.timer.reset()
// this.show_buff(this.buff_keys[this.key_index])
// this.key_index++
// if(this.key_index>=this.buff_keys.length) this.key_index=0
// }
@@ -108,35 +107,22 @@ export class BuffComp extends Component {
}
show_buff(key:string="bb"){
this.node.getChildByName("buff").getChildByName("by1").active = key == "by1"
this.node.getChildByName("buff").getChildByName("by2").active = key == "by2"
this.node.getChildByName("buff").getChildByName("by3").active = key == "by3"
}
max_show(name:string){
var path = "game/skills/"+name;
var prefab: Prefab = oops.res.get(path, Prefab)!;
var node = instantiate(prefab);
node.parent = this.node;
}
lv_up(){
var path = "game/skills/buff_lvup";
var path = "game/skill/buff/buff_lvup";
var prefab: Prefab = oops.res.get(path, Prefab)!;
var node = instantiate(prefab);
node.parent = this.node;
}
ap_up(){
var path = "game/skills/buff_apup";
var path = "game/skill/buff/buff_apup";
var prefab: Prefab = oops.res.get(path, Prefab)!;
var node = instantiate(prefab);
node.parent = this.node;
}
show_do_buff(name:string){
var path = "game/skills/"+name;
var path = "game/skill/buff/"+name;
var prefab: Prefab = oops.res.get(path, Prefab)!;
var node = instantiate(prefab);
let pos = v3(this.node.position.x,this.node.position.y+20,this.node.position.z);
@@ -144,12 +130,12 @@ export class BuffComp extends Component {
node.setPosition(pos);
}
dead(){
var path = "game/skills/dead";
var path = "game/skill/buff/dead";
var prefab: Prefab = oops.res.get(path, Prefab)!;
var node = instantiate(prefab);
node.parent = this.node.parent;
node.setScale(node.scale.x*0.5,node.scale.y*0.5)
let pos = v3(this.node.position.x,this.node.position.y+30,this.node.position.z);
node.parent = this.node.parent;
node.setPosition(pos);
}
in_atked(anm:string="atked",scale:number=1) {
@@ -161,7 +147,7 @@ export class BuffComp extends Component {
node.parent = this.node.parent;
}
in_iced(t:number=1,ap:number=0) {
var path = "game/skills/buff_iced";
var path = "game/skill/buff/buff_iced";
var prefab: Prefab = oops.res.get(path, Prefab)!;
var node = instantiate(prefab);
node.getComponent(timedCom).time = t;
@@ -177,7 +163,7 @@ export class BuffComp extends Component {
// node.parent = this.node;
}
in_yun(t:number=1,ap:number=0) {
var path = "game/skills/buff_yun";
var path = "game/skill/buff/buff_yun";
var prefab: Prefab = oops.res.get(path, Prefab)!;
var node = instantiate(prefab);
let height=this.node.getComponent(UITransform).height
@@ -217,7 +203,7 @@ export class BuffComp extends Component {
tip.load(pos,type,value,s_uuid,this.node.parent);
}
heathed(){
var path = "game/skills/heathed";
var path = "game/skill/buff/heathed";
var prefab: Prefab = oops.res.get(path, Prefab)!;
var node = instantiate(prefab);
node.parent = this.node;