技能+1
This commit is contained in:
@@ -99,7 +99,7 @@
|
|||||||
"_lpos": {
|
"_lpos": {
|
||||||
"__type__": "cc.Vec3",
|
"__type__": "cc.Vec3",
|
||||||
"x": 0,
|
"x": 0,
|
||||||
"y": 0,
|
"y": -70,
|
||||||
"z": 0
|
"z": 0
|
||||||
},
|
},
|
||||||
"_lrot": {
|
"_lrot": {
|
||||||
@@ -295,7 +295,7 @@
|
|||||||
},
|
},
|
||||||
"_size": {
|
"_size": {
|
||||||
"__type__": "cc.Size",
|
"__type__": "cc.Size",
|
||||||
"width": 15,
|
"width": 120,
|
||||||
"height": 80
|
"height": 80
|
||||||
},
|
},
|
||||||
"_id": ""
|
"_id": ""
|
||||||
@@ -352,7 +352,7 @@
|
|||||||
"fileId": "16LYpWaddLdZBFsLWFfMKv"
|
"fileId": "16LYpWaddLdZBFsLWFfMKv"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"__type__": "20503VOc7ZA84sbp8G72pxZ",
|
"__type__": "47be46T02pKnKpR6mYW+sbR",
|
||||||
"_name": "",
|
"_name": "",
|
||||||
"_objFlags": 0,
|
"_objFlags": 0,
|
||||||
"__editorExtras__": {},
|
"__editorExtras__": {},
|
||||||
@@ -367,7 +367,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"__type__": "cc.CompPrefabInfo",
|
"__type__": "cc.CompPrefabInfo",
|
||||||
"fileId": "7fXWI3HkBNb5PGUGVxo0Fu"
|
"fileId": "1cxZvyZhlANaY6MJ8ihK/l"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"__type__": "cc.PrefabInfo",
|
"__type__": "cc.PrefabInfo",
|
||||||
|
|||||||
@@ -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码的敌人",
|
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,},
|
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码的敌人",
|
6011:{uuid: 6011,path: "6011",type: 2,tg:3,debuff:0,depb:50,debtime:2,derate:1,name: "烈火呼吸",sp_name:"firequan",info:"释放烈火剑气攻击前方地方,对前方敌人造成3段伤害",
|
||||||
in:1,count:1,apup:0,ap:1,hp:0,cd:1,shield:0,speed:450,},
|
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码的敌人",
|
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,},
|
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码的敌人",
|
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码的敌人",
|
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,},
|
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,},
|
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:"释放一个寒冰箭攻击敌人",
|
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:"释放一个寒冰箭攻击敌人",
|
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, },
|
in:0.8,count:1,apup:0,ap:1,hp:0,cd:1,shield:1,speed:450, },
|
||||||
|
|||||||
37
assets/script/game/skills/LineMCom.ts
Normal file
37
assets/script/game/skills/LineMCom.ts
Normal file
@@ -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
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
9
assets/script/game/skills/LineMCom.ts.meta
Normal file
9
assets/script/game/skills/LineMCom.ts.meta
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
"ver": "4.0.23",
|
||||||
|
"importer": "typescript",
|
||||||
|
"imported": true,
|
||||||
|
"uuid": "47be4e93-d36a-4a9c-aa51-ea6616fac6d1",
|
||||||
|
"files": [],
|
||||||
|
"subMetas": {},
|
||||||
|
"userData": {}
|
||||||
|
}
|
||||||
@@ -17,7 +17,7 @@ export class TgCom extends Component {
|
|||||||
update(deltaTime: number) {
|
update(deltaTime: number) {
|
||||||
if(smc.mission.pause) return
|
if(smc.mission.pause) return
|
||||||
this.cd+=deltaTime
|
this.cd+=deltaTime
|
||||||
if(this.cd>=1){
|
if(this.cd>=this.base.cd){
|
||||||
// this.node.setPosition(v3(-1000,0,0))
|
// this.node.setPosition(v3(-1000,0,0))
|
||||||
this.node.active = false
|
this.node.active = false
|
||||||
this.node.active = true
|
this.node.active = true
|
||||||
|
|||||||
Reference in New Issue
Block a user