mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-09-27 02:36:14 +00:00
重置配置表
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { TableGRoleSkill } from "../../../../../resources/config/ts/TableGRoleSkill";
|
||||
import { TB } from "../../../../../resources/config/data/schema";
|
||||
import GRoleBase from "../../../base/role/GRoleBase";
|
||||
import GRoleDefault from "../../../base/role/GRoleDefault";
|
||||
import GSkillAngerBase from "../../GSkillAngerBase";
|
||||
@@ -6,9 +6,9 @@ import GSkillAngerBase from "../../GSkillAngerBase";
|
||||
export default class GSkillBulbasaurDoubleHit extends GSkillAngerBase{
|
||||
|
||||
role:GRoleDefault;
|
||||
info: TableGRoleSkill;
|
||||
info: TB.TbGRoleSkill;
|
||||
|
||||
bind(role:GRoleDefault,info: TableGRoleSkill):GSkillBulbasaurDoubleHit {
|
||||
bind(role:GRoleDefault,info: TB.TbGRoleSkill):GSkillBulbasaurDoubleHit {
|
||||
//技能冷却
|
||||
this.role = role;
|
||||
this.info = info;
|
||||
|
@@ -1,6 +1,5 @@
|
||||
import { v2 } from "cc";
|
||||
import { JTween } from "../../../../../../extensions/ngame/assets/ngame/sync/frame/game/tween/JNFrameTween";
|
||||
import { TableGRoleSkill } from "../../../../../resources/config/ts/TableGRoleSkill";
|
||||
import { app } from "../../../../App";
|
||||
import GSpine from "../../../base/common/GSpine";
|
||||
import GRoleBase from "../../../base/role/GRoleBase";
|
||||
@@ -10,6 +9,7 @@ import GBaseMode from "../../../GBaseMode";
|
||||
import GDetection from "../../../base/common/GDetection";
|
||||
import { rect } from "cc";
|
||||
import GRoleDefault from "../../../base/role/GRoleDefault";
|
||||
import { TB } from "../../../../../resources/config/data/schema";
|
||||
|
||||
/**
|
||||
* 疯狂松鼠技能
|
||||
@@ -18,9 +18,9 @@ import GRoleDefault from "../../../base/role/GRoleDefault";
|
||||
export default class GSkillCrazySquirrel extends GSkillCDBase{
|
||||
|
||||
role:GRoleDefault;
|
||||
info: TableGRoleSkill;
|
||||
info: TB.TbGRoleSkill;
|
||||
|
||||
bind(role:GRoleDefault,info: TableGRoleSkill):GSkillCrazySquirrel {
|
||||
bind(role:GRoleDefault,info: TB.TbGRoleSkill):GSkillCrazySquirrel {
|
||||
//技能冷却
|
||||
this.cdTatal = parseInt(info.skillArgs[0]);
|
||||
this.role = role;
|
||||
@@ -40,14 +40,14 @@ export default class GSkillCrazySquirrel extends GSkillCDBase{
|
||||
let ah = parseInt(this.info.skillArgs[2]);
|
||||
|
||||
//出现松鼠丢炸弹
|
||||
GSpine.onPlayAnotherSpine(this.role,app.battleRes.effects[50001],"skill",{
|
||||
GSpine.onPlayAnotherSpine(this.role,app.battleRes.roleResSpine[30003],"skill",{
|
||||
end:() => {
|
||||
//从天而降
|
||||
let pos = enemy.v2World.add(v2(0,1000));
|
||||
let end = enemy.v2World;
|
||||
|
||||
//生成火球
|
||||
let spine = GSpine.onCreateSpine(app.battleRes.effects[50002]);
|
||||
let spine = GSpine.onCreateSpine(app.battleRes.roleResSpine[30004]);
|
||||
this.role.mode.addGNode(spine.node,pos);
|
||||
spine.setAnimation(0,"animation",true);
|
||||
spine.node.angle = 90;
|
||||
@@ -59,7 +59,7 @@ export default class GSkillCrazySquirrel extends GSkillCDBase{
|
||||
.onComplete(() => {
|
||||
let world = spine.node.worldPosition;
|
||||
spine.node.destroy();
|
||||
GSpine.onPlaySceneSpine(scene,v2(world.x,world.y),app.battleRes.effects[50003],"animation");
|
||||
GSpine.onPlaySceneSpine(scene,v2(world.x,world.y),app.battleRes.roleResSpine[30005],"animation");
|
||||
console.log(GDetection.testAABBRole(rect(world.x,world.y,aw,ah)).length)
|
||||
GDetection.testAABBRole(rect(world.x,world.y,aw,ah)).forEach(role =>{
|
||||
role.onHit();
|
||||
|
Reference in New Issue
Block a user