重置配置表

This commit is contained in:
DESKTOP-5RP3AKU\Jisol
2023-11-06 02:25:02 +08:00
parent e8f8cb3ce9
commit e24dded990
154 changed files with 1214 additions and 26044 deletions

View File

@@ -1,8 +1,7 @@
import { TableGRoleSkill } from "../../../resources/config/ts/TableGRoleSkill";
import GRoleBase from "../base/role/GRoleBase";
import GSkillCrazySquirrel from "./RoleSkill/疯狂松鼠/GSkillCrazySquirrel";
import GSkillBulbasaurDoubleHit from "./RoleSkill/妙蛙种子/GSkillBulbasaurDoubleHit";
import GRoleDefault from "../base/role/GRoleDefault";
import { TB } from "../../../resources/config/data/schema";
//技能状态
export enum GSkillState{
@@ -15,7 +14,7 @@ export enum GSkillState{
export interface GSkillBase {
//设置
bind(role:GRoleDefault,info:TableGRoleSkill):GSkillBase;
bind(role:GRoleDefault,info:TB.TbGRoleSkill):GSkillBase;
//是否允许释放
isRelease():boolean;

View File

@@ -1,5 +1,4 @@
import { TableGRoleSkill } from "../../../resources/config/ts/TableGRoleSkill";
import GRoleBase from "../base/role/GRoleBase";
import { TB } from "../../../resources/config/data/schema";
import GRoleDefault from "../base/role/GRoleDefault";
import { GSkillBase, GSkillState } from "./GSkill";
@@ -12,7 +11,7 @@ export default abstract class GSkillAngerBase implements GSkillBase {
//怒气最大值
angerMax:number = 0;
bind(role: GRoleDefault, info: TableGRoleSkill): GSkillBase {
bind(role: GRoleDefault, info: TB.TbGRoleSkill): GSkillBase {
throw new Error("Method not implemented.");
}
isRelease(): boolean {

View File

@@ -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 { GSkillBase, GSkillState } from "./GSkill";
@@ -12,7 +12,7 @@ export default abstract class GSkillCDBase implements GSkillBase {
//冷却时间
cdTime:number = 0;
bind(role:GRoleDefault,info: TableGRoleSkill):GSkillCDBase {
bind(role:GRoleDefault,info: TB.TbGRoleSkill):GSkillCDBase {
return this;
}

View File

@@ -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;

View File

@@ -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();