diff --git a/assets/resources/game/skills/firequan.prefab b/assets/resources/game/skills/firequan.prefab index a599da31..db8916d3 100644 --- a/assets/resources/game/skills/firequan.prefab +++ b/assets/resources/game/skills/firequan.prefab @@ -99,7 +99,7 @@ "_lpos": { "__type__": "cc.Vec3", "x": 0, - "y": 0, + "y": -70, "z": 0 }, "_lrot": { @@ -295,7 +295,7 @@ }, "_size": { "__type__": "cc.Size", - "width": 15, + "width": 120, "height": 80 }, "_id": "" @@ -352,7 +352,7 @@ "fileId": "16LYpWaddLdZBFsLWFfMKv" }, { - "__type__": "20503VOc7ZA84sbp8G72pxZ", + "__type__": "47be46T02pKnKpR6mYW+sbR", "_name": "", "_objFlags": 0, "__editorExtras__": {}, @@ -367,7 +367,7 @@ }, { "__type__": "cc.CompPrefabInfo", - "fileId": "7fXWI3HkBNb5PGUGVxo0Fu" + "fileId": "1cxZvyZhlANaY6MJ8ihK/l" }, { "__type__": "cc.PrefabInfo", diff --git a/assets/script/game/common/config/SkillSet.ts b/assets/script/game/common/config/SkillSet.ts index dff225fd..178e7936 100644 --- a/assets/script/game/common/config/SkillSet.ts +++ b/assets/script/game/common/config/SkillSet.ts @@ -46,14 +46,14 @@ export const SkillSet={ 6006:{uuid: 6006,path: "6006",type: 1,tg:3,debuff:0,depb:50,debtime:2,derate:1,name: "射击",sp_name:"arrow",info:"释放无形剑气攻击前方直线100码的敌人", in:0.8,count:1,apup:0,ap:1,hp:0,cd:1,shield:0,speed:450,}, - 6011:{uuid: 6011,path: "6011",type: 2,tg:3,debuff:0,depb:50,debtime:2,derate:1,name: "有形剑气",sp_name:"dadao",info:"释放有形剑气攻击前方直线300码的敌人", - in:1,count:1,apup:0,ap:1,hp:0,cd:1,shield:0,speed:450,}, + 6011:{uuid: 6011,path: "6011",type: 2,tg:3,debuff:0,depb:50,debtime:2,derate:1,name: "烈火呼吸",sp_name:"firequan",info:"释放烈火剑气攻击前方地方,对前方敌人造成3段伤害", + in:3,count:1,apup:0,ap:2,hp:0,cd:0.5,shield:0,speed:100,}, 6012:{uuid: 6012,path: "6012",type: 2,tg:3,debuff:2,depb:50,debtime:6,derate:1,name: "大火球",sp_name:"fire",info:"释放有形剑气攻击前方直线300码的敌人", in:1,count:1,apup:0,ap:1,hp:0,cd:1,shield:0,speed:450,}, 6013:{uuid: 6013,path: "6013",type: 2,tg:3,debuff:7,depb:50,debtime:2,derate:0.01,name: "火墙",sp_name:"fires",info:"释放有形剑气攻击前方直线300码的敌人", - in:10,count:1,apup:0,ap:1,hp:0,cd:2,shield:0,speed:450,}, + in:10,count:1,apup:0,ap:1,hp:0,cd:1,shield:0,speed:450,}, 6014:{uuid: 6014,path: "6014",type: 2,tg:3,debuff:1,depb:50,debtime:2,derate:1,name: "冰破术",sp_name:"ice",info:"释放有形剑气攻击前方直线300码的敌人", in:1,count:1,apup:0,ap:2,hp:0,cd:1,shield:0,speed:450,}, @@ -65,7 +65,7 @@ export const SkillSet={ in:1,count:1,apup:0,ap:2,hp:0,cd:1,shield:0,speed:300,}, 6017:{uuid: 6017,path: "6017",type: 91,tg:1,debuff:0,depb:50,debtime:2,derate:1,name: "治愈术",sp_name:"heath",info:"释放一个寒冰箭攻击敌人", - in:1,count:1,apup:0,ap:1,hp:3,shield:0,speed:450, }, + in:1,count:1,apup:0,ap:1,hp:3,cd:1,shield:0,speed:450, }, 6018:{uuid: 6018,path: "6018",type: 91,tg:0,debuff:0,depb:50,debtime:2,derate:1,name: "魔法盾",sp_name:"shield",info:"释放一个寒冰箭攻击敌人", in:0.8,count:1,apup:0,ap:1,hp:0,cd:1,shield:1,speed:450, }, diff --git a/assets/script/game/skills/LineMCom.ts b/assets/script/game/skills/LineMCom.ts new file mode 100644 index 00000000..ead2879c --- /dev/null +++ b/assets/script/game/skills/LineMCom.ts @@ -0,0 +1,37 @@ +import { _decorator, Component, Node } from 'cc'; +import { SkillCom } from './SkillCom'; +import { smc } from '../common/SingletonModuleComp'; +const { ccclass, property } = _decorator; + +@ccclass('LineMCom') +export class LineMCom extends Component { + base:SkillCom = null + time:number = 0 + cd:number = 0 + start() { + this.base =this.node.getComponent(SkillCom) + + } + + update(deltaTime: number) { + if(smc.mission.pause) return + if(smc.mission.pause) return + this.cd+=deltaTime + if(this.cd >= this.base.cd){ + // this.node.setPosition(v3(-1000,0,0)) + this.node.active = false + this.node.active = true + this.cd=0 + } + this.time+=deltaTime + if(this.time>=this.base.in_time){ + this.base.is_destroy = true + } + this.node.setPosition(this.node.position.x+this.base.speed*deltaTime,this.node.position.y,this.node.position.z) + if(this.node.position.x>1000||this.node.position.x<-1000){ + this.base.is_destroy = true + } + } +} + + diff --git a/assets/script/game/skills/LineMCom.ts.meta b/assets/script/game/skills/LineMCom.ts.meta new file mode 100644 index 00000000..41f0b989 --- /dev/null +++ b/assets/script/game/skills/LineMCom.ts.meta @@ -0,0 +1,9 @@ +{ + "ver": "4.0.23", + "importer": "typescript", + "imported": true, + "uuid": "47be4e93-d36a-4a9c-aa51-ea6616fac6d1", + "files": [], + "subMetas": {}, + "userData": {} +} diff --git a/assets/script/game/skills/TgCom.ts b/assets/script/game/skills/TgCom.ts index 33f84378..88497bb5 100644 --- a/assets/script/game/skills/TgCom.ts +++ b/assets/script/game/skills/TgCom.ts @@ -17,7 +17,7 @@ export class TgCom extends Component { update(deltaTime: number) { if(smc.mission.pause) return this.cd+=deltaTime - if(this.cd>=1){ + if(this.cd>=this.base.cd){ // this.node.setPosition(v3(-1000,0,0)) this.node.active = false this.node.active = true