导表
This commit is contained in:
parent
2a323fcf33
commit
a7d3ec5b43
@ -1 +1 @@
|
||||
[{"id":99001,"type_id":1,"value":6},{"id":99002,"type_id":1,"value":2},{"id":99003,"type_id":2,"value":20},{"id":99004,"type_id":1,"value":2},{"id":99005,"type_id":1,"value":3},{"id":99006,"type_id":1,"value":4},{"id":99007,"type_id":1,"value":12},{"id":99008,"type_id":2,"value":12},{"id":99009,"type_id":2,"value":15},{"id":99010,"type_id":2,"value":15},{"id":99011,"type_id":2,"value":20},{"id":99012,"type_id":2,"value":5},{"id":99013,"type_id":1,"value":4},{"id":99014,"type_id":2,"value":5},{"id":99015,"type_id":1,"value":10},{"id":99016,"type_id":1,"value":10},{"id":99017,"type_id":2,"value":12},{"id":99018,"type_id":2,"value":12},{"id":99019,"type_id":2,"value":3},{"id":99020,"type_id":2,"value":20},{"id":99021,"type_id":3,"value":10},{"id":99022,"type_id":3,"value":55},{"id":99023,"type_id":1,"value":2},{"id":99024,"type_id":1,"value":3},{"id":99025,"type_id":1,"value":3},{"id":99026,"type_id":2,"value":1},{"id":99027,"type_id":1,"value":5},{"id":99028,"type_id":1,"value":5},{"id":99029,"type_id":1,"value":6},{"id":99030,"type_id":1,"value":6}]
|
||||
[{"id":99001,"type_id":1,"value":6},{"id":99002,"type_id":1,"value":2},{"id":99003,"type_id":2,"value":20},{"id":99004,"type_id":1,"value":2},{"id":99005,"type_id":1,"value":3},{"id":99006,"type_id":1,"value":4},{"id":99007,"type_id":1,"value":12},{"id":99008,"type_id":2,"value":12},{"id":99009,"type_id":2,"value":15},{"id":99010,"type_id":2,"value":15},{"id":99011,"type_id":2,"value":20},{"id":99012,"type_id":2,"value":5},{"id":99013,"type_id":1,"value":3},{"id":99014,"type_id":2,"value":5},{"id":99015,"type_id":1,"value":10},{"id":99016,"type_id":1,"value":10},{"id":99017,"type_id":2,"value":12},{"id":99018,"type_id":2,"value":12},{"id":99019,"type_id":2,"value":3},{"id":99020,"type_id":2,"value":20},{"id":99021,"type_id":3,"value":10},{"id":99022,"type_id":3,"value":55},{"id":99023,"type_id":1,"value":2},{"id":99024,"type_id":1,"value":3},{"id":99025,"type_id":1,"value":3},{"id":99026,"type_id":2,"value":1},{"id":99027,"type_id":1,"value":5},{"id":99028,"type_id":1,"value":5},{"id":99029,"type_id":1,"value":6},{"id":99030,"type_id":1,"value":6}]
|
1
config/dropitem_tbl.json
Normal file
1
config/dropitem_tbl.json
Normal file
@ -0,0 +1 @@
|
||||
[{"id":80001,"parname":"藏宝图碎片1","itemtypeid":1,"autopen":0,"drop":"","weight":10000,"candtypeid":0,"candgradeid":0,"additional candidates":""},{"id":80002,"parname":"藏宝图碎片2","itemtypeid":1,"autopen":0,"drop":"","weight":10000,"candtypeid":0,"candgradeid":0,"additional candidates":""},{"id":80003,"parname":"藏宝图碎片3","itemtypeid":1,"autopen":0,"drop":"","weight":10000,"candtypeid":0,"candgradeid":0,"additional candidates":""},{"id":80004,"parname":"藏宝图碎片4","itemtypeid":1,"autopen":0,"drop":"","weight":10000,"candtypeid":0,"candgradeid":0,"additional candidates":""},{"id":80005,"parname":"藏宝图碎片5","itemtypeid":1,"autopen":0,"drop":"","weight":10000,"candtypeid":0,"candgradeid":0,"additional candidates":""},{"id":80006,"parname":"藏宝图碎片6","itemtypeid":1,"autopen":0,"drop":"","weight":10000,"candtypeid":0,"candgradeid":0,"additional candidates":""},{"id":80007,"parname":"藏宝图碎片7","itemtypeid":1,"autopen":0,"drop":"","weight":10000,"candtypeid":0,"candgradeid":0,"additional candidates":""},{"id":80008,"parname":"藏宝图碎片8","itemtypeid":1,"autopen":0,"drop":"","weight":10000,"candtypeid":0,"candgradeid":0,"additional candidates":""},{"id":80009,"parname":"藏宝图碎片9","itemtypeid":1,"autopen":0,"drop":"","weight":10000,"candtypeid":0,"candgradeid":0,"additional candidates":""},{"id":80010,"parname":"藏宝图碎片10","itemtypeid":1,"autopen":0,"drop":"","weight":10000,"candtypeid":0,"candgradeid":0,"additional candidates":""},{"id":80011,"parname":"完整的藏宝图","itemtypeid":1,"autopen":0,"drop":"","weight":10000,"candtypeid":0,"candgradeid":0,"additional candidates":""},{"id":80012,"parname":"红钻石","itemtypeid":1,"autopen":0,"drop":"","weight":10000,"candtypeid":0,"candgradeid":0,"additional candidates":""},{"id":80013,"parname":"金币","itemtypeid":1,"autopen":0,"drop":"","weight":10000,"candtypeid":0,"candgradeid":0,"additional candidates":""},{"id":80014,"parname":"PVP初级胜利掉落","itemtypeid":2,"autopen":1,"drop":"80012:20|80013:2000|80024:200","weight":10000,"candtypeid":0,"candgradeid":0,"additional candidates":""},{"id":80015,"parname":"PVP初级失败掉落","itemtypeid":2,"autopen":1,"drop":"80012:10|80013:1000|80024:100","weight":10000,"candtypeid":0,"candgradeid":0,"additional candidates":""},{"id":80016,"parname":"藏宝图碎片分包","itemtypeid":2,"autopen":1,"drop":"","weight":10000,"candtypeid":0,"candgradeid":0,"additional candidates":""},{"id":80017,"parname":"单抽常规卡包","itemtypeid":2,"autopen":1,"drop":"","weight":10000,"candtypeid":0,"candgradeid":0,"additional candidates":""},{"id":80018,"parname":"十连抽常规卡包","itemtypeid":2,"autopen":1,"drop":"","weight":10000,"candtypeid":0,"candgradeid":0,"additional candidates":""},{"id":80019,"parname":"常规卡包普通卡","itemtypeid":2,"autopen":1,"drop":"","weight":10000,"candtypeid":3,"candgradeid":2,"additional candidates":""},{"id":80020,"parname":"常规卡包稀有卡","itemtypeid":2,"autopen":1,"drop":"","weight":10000,"candtypeid":3,"candgradeid":3,"additional candidates":""},{"id":80021,"parname":"常规卡包史诗卡","itemtypeid":2,"autopen":1,"drop":"","weight":10000,"candtypeid":3,"candgradeid":4,"additional candidates":""},{"id":80022,"parname":"常规卡包传奇卡","itemtypeid":2,"autopen":1,"drop":"","weight":10000,"candtypeid":3,"candgradeid":5,"additional candidates":""},{"id":80023,"parname":"常规卡包稀有卡以上","itemtypeid":2,"autopen":1,"drop":"","weight":10000,"candtypeid":0,"candgradeid":0,"additional candidates":"80020|80020|80020|80020|80021|80022"},{"id":80024,"parname":"蓝钻石","itemtypeid":1,"autopen":0,"drop":"","weight":0,"candtypeid":0,"candgradeid":0,"additional candidates":""}]
|
@ -1 +1 @@
|
||||
[{"id":30012,"herounit_id":52012,"org_gift":"1","ex_skill":0,"follower1id":51072,"follower2id":51082,"follower3id":51032,"follower4id":51152},{"id":30022,"herounit_id":52022,"org_gift":"","ex_skill":0,"follower1id":51372,"follower2id":51162,"follower3id":51382,"follower4id":51332},{"id":30032,"herounit_id":52032,"org_gift":"1","ex_skill":0,"follower1id":51052,"follower2id":51042,"follower3id":51122,"follower4id":51062},{"id":30042,"herounit_id":52042,"org_gift":"1","ex_skill":0,"follower1id":51062,"follower2id":51122,"follower3id":51072,"follower4id":51042},{"id":30052,"herounit_id":52052,"org_gift":"","ex_skill":0,"follower1id":51132,"follower2id":51082,"follower3id":51402,"follower4id":51112},{"id":30062,"herounit_id":52062,"org_gift":"","ex_skill":0,"follower1id":51222,"follower2id":51272,"follower3id":51412,"follower4id":51042},{"id":30072,"herounit_id":52072,"org_gift":"1","ex_skill":0,"follower1id":51012,"follower2id":51082,"follower3id":51032,"follower4id":51152},{"id":30082,"herounit_id":52082,"org_gift":"1","ex_skill":0,"follower1id":51062,"follower2id":51082,"follower3id":51072,"follower4id":51052},{"id":30092,"herounit_id":52092,"org_gift":"","ex_skill":0,"follower1id":51102,"follower2id":51372,"follower3id":51232,"follower4id":51292},{"id":30102,"herounit_id":52102,"org_gift":"","ex_skill":0,"follower1id":51022,"follower2id":51092,"follower3id":51192,"follower4id":51392},{"id":30112,"herounit_id":52112,"org_gift":"","ex_skill":0,"follower1id":51372,"follower2id":51162,"follower3id":51382,"follower4id":51332},{"id":30122,"herounit_id":52122,"org_gift":"","ex_skill":0,"follower1id":51252,"follower2id":51352,"follower3id":51402,"follower4id":51132},{"id":30132,"herounit_id":52132,"org_gift":"","ex_skill":0,"follower1id":51032,"follower2id":51342,"follower3id":51412,"follower4id":51252},{"id":30142,"herounit_id":52142,"org_gift":"","ex_skill":0,"follower1id":51402,"follower2id":51202,"follower3id":51212,"follower4id":51342}]
|
||||
[{"id":30012,"herounit_id":52012,"org_gift":"1","ex_skill":0,"Unlockgroup2id":80024,"Unlockgroup2num":500,"Unlockgroup3id":110042,"Unlockgroup3num":1,"Unlockgroup4id":110042,"Unlockgroup4num":2,"groupmax":4,"follower1id":51072,"follower2id":51082,"follower3id":51032,"follower4id":51152},{"id":30022,"herounit_id":52022,"org_gift":"","ex_skill":0,"Unlockgroup2id":80024,"Unlockgroup2num":500,"Unlockgroup3id":110043,"Unlockgroup3num":1,"Unlockgroup4id":110043,"Unlockgroup4num":2,"groupmax":4,"follower1id":51372,"follower2id":51162,"follower3id":51382,"follower4id":51332},{"id":30032,"herounit_id":52032,"org_gift":"1","ex_skill":0,"Unlockgroup2id":80024,"Unlockgroup2num":500,"Unlockgroup3id":110044,"Unlockgroup3num":1,"Unlockgroup4id":110044,"Unlockgroup4num":2,"groupmax":4,"follower1id":51052,"follower2id":51042,"follower3id":51122,"follower4id":51062},{"id":30042,"herounit_id":52042,"org_gift":"1","ex_skill":0,"Unlockgroup2id":80024,"Unlockgroup2num":500,"Unlockgroup3id":110045,"Unlockgroup3num":1,"Unlockgroup4id":110045,"Unlockgroup4num":2,"groupmax":4,"follower1id":51062,"follower2id":51122,"follower3id":51072,"follower4id":51042},{"id":30052,"herounit_id":52052,"org_gift":"","ex_skill":0,"Unlockgroup2id":80024,"Unlockgroup2num":500,"Unlockgroup3id":110046,"Unlockgroup3num":1,"Unlockgroup4id":110046,"Unlockgroup4num":2,"groupmax":4,"follower1id":51132,"follower2id":51082,"follower3id":51402,"follower4id":51112},{"id":30062,"herounit_id":52062,"org_gift":"","ex_skill":0,"Unlockgroup2id":80024,"Unlockgroup2num":500,"Unlockgroup3id":110047,"Unlockgroup3num":1,"Unlockgroup4id":110047,"Unlockgroup4num":2,"groupmax":4,"follower1id":51222,"follower2id":51272,"follower3id":51412,"follower4id":51042},{"id":30072,"herounit_id":52072,"org_gift":"1","ex_skill":0,"Unlockgroup2id":80024,"Unlockgroup2num":500,"Unlockgroup3id":110048,"Unlockgroup3num":1,"Unlockgroup4id":110048,"Unlockgroup4num":2,"groupmax":4,"follower1id":51012,"follower2id":51082,"follower3id":51032,"follower4id":51152},{"id":30082,"herounit_id":52082,"org_gift":"1","ex_skill":0,"Unlockgroup2id":80024,"Unlockgroup2num":500,"Unlockgroup3id":110049,"Unlockgroup3num":1,"Unlockgroup4id":110049,"Unlockgroup4num":2,"groupmax":4,"follower1id":51062,"follower2id":51082,"follower3id":51072,"follower4id":51052},{"id":30092,"herounit_id":52092,"org_gift":"","ex_skill":0,"Unlockgroup2id":80024,"Unlockgroup2num":500,"Unlockgroup3id":110050,"Unlockgroup3num":1,"Unlockgroup4id":110050,"Unlockgroup4num":2,"groupmax":4,"follower1id":51102,"follower2id":51372,"follower3id":51232,"follower4id":51292},{"id":30102,"herounit_id":52102,"org_gift":"","ex_skill":0,"Unlockgroup2id":80024,"Unlockgroup2num":500,"Unlockgroup3id":110051,"Unlockgroup3num":1,"Unlockgroup4id":110051,"Unlockgroup4num":2,"groupmax":4,"follower1id":51022,"follower2id":51092,"follower3id":51192,"follower4id":51392},{"id":30112,"herounit_id":52112,"org_gift":"","ex_skill":0,"Unlockgroup2id":80024,"Unlockgroup2num":500,"Unlockgroup3id":110052,"Unlockgroup3num":1,"Unlockgroup4id":110052,"Unlockgroup4num":2,"groupmax":4,"follower1id":51372,"follower2id":51162,"follower3id":51382,"follower4id":51332},{"id":30122,"herounit_id":52122,"org_gift":"","ex_skill":0,"Unlockgroup2id":80024,"Unlockgroup2num":500,"Unlockgroup3id":110053,"Unlockgroup3num":1,"Unlockgroup4id":110053,"Unlockgroup4num":2,"groupmax":4,"follower1id":51252,"follower2id":51352,"follower3id":51402,"follower4id":51132},{"id":30132,"herounit_id":52132,"org_gift":"","ex_skill":0,"Unlockgroup2id":80024,"Unlockgroup2num":500,"Unlockgroup3id":110054,"Unlockgroup3num":1,"Unlockgroup4id":110054,"Unlockgroup4num":2,"groupmax":4,"follower1id":51032,"follower2id":51342,"follower3id":51412,"follower4id":51252},{"id":30142,"herounit_id":52142,"org_gift":"","ex_skill":0,"Unlockgroup2id":80024,"Unlockgroup2num":500,"Unlockgroup3id":110055,"Unlockgroup3num":1,"Unlockgroup4id":110055,"Unlockgroup4num":2,"groupmax":4,"follower1id":51402,"follower2id":51202,"follower3id":51212,"follower4id":51342}]
|
1
config/itemcard_tbl.json
Normal file
1
config/itemcard_tbl.json
Normal file
File diff suppressed because one or more lines are too long
1
config/itemfunc_tbl.json
Normal file
1
config/itemfunc_tbl.json
Normal file
@ -0,0 +1 @@
|
||||
[{"id":90001,"parname":"打开单抽常规卡包","consume1":"80024:198","consume2":"","selectiontimes":0,"actypeid":1,"get":"80017:1|80013:100"},{"id":90002,"parname":"打开十连抽常规卡包","consume1":"80011:1","consume2":"80024:1950","selectiontimes":0,"actypeid":1,"get":"80018:1|80013:1000"},{"id":90003,"parname":"刷新随机到的武将","consume1":"80024:50","consume2":"","selectiontimes":0,"actypeid":2,"get":""},{"id":90004,"parname":"合成完整藏宝图","consume1":"80001:1|80002:1|80003:1|80004:1|80005:1|80006:1|80007:1|80008:1|80009:1|80010:1|","consume2":"","selectiontimes":0,"actypeid":1,"get":"80011:1"},{"id":90005,"parname":"兑换蓝钻石","consume1":"80012:1","consume2":"","selectiontimes":1,"actypeid":1,"get":"80024:10"}]
|
1
config/match_tbl.json
Normal file
1
config/match_tbl.json
Normal file
@ -0,0 +1 @@
|
||||
[{"id":100001,"parname":"PVP初级比赛","consume":"80013:1000","winget":"80013:1000|80014:1","failget":"80014:7000|80015:1"}]
|
25
src/cfg/parsers/BaseCfg.ts
Normal file
25
src/cfg/parsers/BaseCfg.ts
Normal file
@ -0,0 +1,25 @@
|
||||
import {Cfg} from "../../common/DataParser";
|
||||
|
||||
export class BaseCfg implements Cfg{
|
||||
name: "BaseCfg";
|
||||
|
||||
public id: number;
|
||||
public type_id: number;
|
||||
public value: number;
|
||||
|
||||
public decode(data: any) {
|
||||
this.id = data.id;
|
||||
this.type_id = data.type_id;
|
||||
this.value = data.value;
|
||||
};
|
||||
|
||||
public isOK (uniqueID: number, param1: any, param2: any): boolean {
|
||||
if((param1 == undefined || param1 == null) && (param2 == undefined || param2 == null)){
|
||||
return this.id == uniqueID;
|
||||
}
|
||||
if(param2 == undefined || param2 == null){
|
||||
return this.id == uniqueID && this.id == param1;
|
||||
}
|
||||
return this.id == uniqueID && this.id == param1 && this.id == param2;
|
||||
};
|
||||
};
|
37
src/cfg/parsers/DropItemCfg.ts
Normal file
37
src/cfg/parsers/DropItemCfg.ts
Normal file
@ -0,0 +1,37 @@
|
||||
import {Cfg} from "../../common/DataParser";
|
||||
|
||||
export class DropItemCfg implements Cfg{
|
||||
name: "DropItemCfg";
|
||||
|
||||
public id: number;
|
||||
public parname: number;
|
||||
public itemtypeid: number;
|
||||
public autopen: number;
|
||||
public drop: number;
|
||||
public weight: number;
|
||||
public candtypeid: number;
|
||||
public candgradeid: number;
|
||||
public additional candidates: number;
|
||||
|
||||
public decode(data: any) {
|
||||
this.id = data.id;
|
||||
this.parname = data.parname;
|
||||
this.itemtypeid = data.itemtypeid;
|
||||
this.autopen = data.autopen;
|
||||
this.drop = data.drop;
|
||||
this.weight = data.weight;
|
||||
this.candtypeid = data.candtypeid;
|
||||
this.candgradeid = data.candgradeid;
|
||||
this.additional candidates = data.additional candidates;
|
||||
};
|
||||
|
||||
public isOK (uniqueID: number, param1: any, param2: any): boolean {
|
||||
if((param1 == undefined || param1 == null) && (param2 == undefined || param2 == null)){
|
||||
return this.id == uniqueID;
|
||||
}
|
||||
if(param2 == undefined || param2 == null){
|
||||
return this.id == uniqueID && this.id == param1;
|
||||
}
|
||||
return this.id == uniqueID && this.id == param1 && this.id == param2;
|
||||
};
|
||||
};
|
47
src/cfg/parsers/EffectCardCfg.ts
Normal file
47
src/cfg/parsers/EffectCardCfg.ts
Normal file
@ -0,0 +1,47 @@
|
||||
import {Cfg} from "../../common/DataParser";
|
||||
|
||||
export class EffectCardCfg implements Cfg{
|
||||
name: "EffectCardCfg";
|
||||
|
||||
public id: number;
|
||||
public org_gift: number;
|
||||
public type_id: number;
|
||||
public count: number;
|
||||
public weight: number;
|
||||
public affix1id: number;
|
||||
public affix2id: number;
|
||||
public stageunit_id: number;
|
||||
public quoteskill1id: number;
|
||||
public quoteskill2id: number;
|
||||
public quoteskill3id: number;
|
||||
public quoteskill4id: number;
|
||||
public followeddeff: number;
|
||||
public followdouble: number;
|
||||
|
||||
public decode(data: any) {
|
||||
this.id = data.id;
|
||||
this.org_gift = data.org_gift;
|
||||
this.type_id = data.type_id;
|
||||
this.count = data.count;
|
||||
this.weight = data.weight;
|
||||
this.affix1id = data.affix1id;
|
||||
this.affix2id = data.affix2id;
|
||||
this.stageunit_id = data.stageunit_id;
|
||||
this.quoteskill1id = data.quoteskill1id;
|
||||
this.quoteskill2id = data.quoteskill2id;
|
||||
this.quoteskill3id = data.quoteskill3id;
|
||||
this.quoteskill4id = data.quoteskill4id;
|
||||
this.followeddeff = data.followeddeff;
|
||||
this.followdouble = data.followdouble;
|
||||
};
|
||||
|
||||
public isOK (uniqueID: number, param1: any, param2: any): boolean {
|
||||
if((param1 == undefined || param1 == null) && (param2 == undefined || param2 == null)){
|
||||
return this.id == uniqueID;
|
||||
}
|
||||
if(param2 == undefined || param2 == null){
|
||||
return this.id == uniqueID && this.id == param1;
|
||||
}
|
||||
return this.id == uniqueID && this.id == param1 && this.id == param2;
|
||||
};
|
||||
};
|
@ -7,6 +7,13 @@ export class HeroCfg implements Cfg{
|
||||
public herounit_id: number;
|
||||
public org_gift: number;
|
||||
public ex_skill: number;
|
||||
public Unlockgroup2id: number;
|
||||
public Unlockgroup2num: number;
|
||||
public Unlockgroup3id: number;
|
||||
public Unlockgroup3num: number;
|
||||
public Unlockgroup4id: number;
|
||||
public Unlockgroup4num: number;
|
||||
public groupmax: number;
|
||||
public follower1id: number;
|
||||
public follower2id: number;
|
||||
public follower3id: number;
|
||||
@ -17,6 +24,13 @@ export class HeroCfg implements Cfg{
|
||||
this.herounit_id = data.herounit_id;
|
||||
this.org_gift = data.org_gift;
|
||||
this.ex_skill = data.ex_skill;
|
||||
this.Unlockgroup2id = data.Unlockgroup2id;
|
||||
this.Unlockgroup2num = data.Unlockgroup2num;
|
||||
this.Unlockgroup3id = data.Unlockgroup3id;
|
||||
this.Unlockgroup3num = data.Unlockgroup3num;
|
||||
this.Unlockgroup4id = data.Unlockgroup4id;
|
||||
this.Unlockgroup4num = data.Unlockgroup4num;
|
||||
this.groupmax = data.groupmax;
|
||||
this.follower1id = data.follower1id;
|
||||
this.follower2id = data.follower2id;
|
||||
this.follower3id = data.follower3id;
|
||||
|
37
src/cfg/parsers/ItemCardCfg.ts
Normal file
37
src/cfg/parsers/ItemCardCfg.ts
Normal file
@ -0,0 +1,37 @@
|
||||
import {Cfg} from "../../common/DataParser";
|
||||
|
||||
export class ItemCardCfg implements Cfg{
|
||||
name: "ItemCardCfg";
|
||||
|
||||
public id: number;
|
||||
public parname: number;
|
||||
public typeid: number;
|
||||
public gradeid: number;
|
||||
public weight: number;
|
||||
public automatic: number;
|
||||
public unlocking: number;
|
||||
public unlockingtimes: number;
|
||||
public decomposition to obtain: number;
|
||||
|
||||
public decode(data: any) {
|
||||
this.id = data.id;
|
||||
this.parname = data.parname;
|
||||
this.typeid = data.typeid;
|
||||
this.gradeid = data.gradeid;
|
||||
this.weight = data.weight;
|
||||
this.automatic = data.automatic;
|
||||
this.unlocking = data.unlocking;
|
||||
this.unlockingtimes = data.unlockingtimes;
|
||||
this.decomposition to obtain = data.decomposition to obtain;
|
||||
};
|
||||
|
||||
public isOK (uniqueID: number, param1: any, param2: any): boolean {
|
||||
if((param1 == undefined || param1 == null) && (param2 == undefined || param2 == null)){
|
||||
return this.id == uniqueID;
|
||||
}
|
||||
if(param2 == undefined || param2 == null){
|
||||
return this.id == uniqueID && this.id == param1;
|
||||
}
|
||||
return this.id == uniqueID && this.id == param1 && this.id == param2;
|
||||
};
|
||||
};
|
33
src/cfg/parsers/ItemFuncCfg.ts
Normal file
33
src/cfg/parsers/ItemFuncCfg.ts
Normal file
@ -0,0 +1,33 @@
|
||||
import {Cfg} from "../../common/DataParser";
|
||||
|
||||
export class ItemFuncCfg implements Cfg{
|
||||
name: "ItemFuncCfg";
|
||||
|
||||
public id: number;
|
||||
public parname: number;
|
||||
public consume1: number;
|
||||
public consume2: number;
|
||||
public selectiontimes: number;
|
||||
public actypeid: number;
|
||||
public get: number;
|
||||
|
||||
public decode(data: any) {
|
||||
this.id = data.id;
|
||||
this.parname = data.parname;
|
||||
this.consume1 = data.consume1;
|
||||
this.consume2 = data.consume2;
|
||||
this.selectiontimes = data.selectiontimes;
|
||||
this.actypeid = data.actypeid;
|
||||
this.get = data.get;
|
||||
};
|
||||
|
||||
public isOK (uniqueID: number, param1: any, param2: any): boolean {
|
||||
if((param1 == undefined || param1 == null) && (param2 == undefined || param2 == null)){
|
||||
return this.id == uniqueID;
|
||||
}
|
||||
if(param2 == undefined || param2 == null){
|
||||
return this.id == uniqueID && this.id == param1;
|
||||
}
|
||||
return this.id == uniqueID && this.id == param1 && this.id == param2;
|
||||
};
|
||||
};
|
29
src/cfg/parsers/MatchCfg.ts
Normal file
29
src/cfg/parsers/MatchCfg.ts
Normal file
@ -0,0 +1,29 @@
|
||||
import {Cfg} from "../../common/DataParser";
|
||||
|
||||
export class MatchCfg implements Cfg{
|
||||
name: "MatchCfg";
|
||||
|
||||
public id: number;
|
||||
public parname: number;
|
||||
public consume: number;
|
||||
public winget: number;
|
||||
public failget: number;
|
||||
|
||||
public decode(data: any) {
|
||||
this.id = data.id;
|
||||
this.parname = data.parname;
|
||||
this.consume = data.consume;
|
||||
this.winget = data.winget;
|
||||
this.failget = data.failget;
|
||||
};
|
||||
|
||||
public isOK (uniqueID: number, param1: any, param2: any): boolean {
|
||||
if((param1 == undefined || param1 == null) && (param2 == undefined || param2 == null)){
|
||||
return this.id == uniqueID;
|
||||
}
|
||||
if(param2 == undefined || param2 == null){
|
||||
return this.id == uniqueID && this.id == param1;
|
||||
}
|
||||
return this.id == uniqueID && this.id == param1 && this.id == param2;
|
||||
};
|
||||
};
|
127
src/cfg/parsers/SkillCfg.ts
Normal file
127
src/cfg/parsers/SkillCfg.ts
Normal file
@ -0,0 +1,127 @@
|
||||
import {Cfg} from "../../common/DataParser";
|
||||
|
||||
export class SkillCfg implements Cfg{
|
||||
name: "SkillCfg";
|
||||
|
||||
public id: number;
|
||||
public skill_nameshow: number;
|
||||
public skill_typeid: number;
|
||||
public affix1id: number;
|
||||
public affix2id: number;
|
||||
public skill_indicateid: number;
|
||||
public indicate_time: number;
|
||||
public tigger_typeid: number;
|
||||
public cond_typeid: number;
|
||||
public cond_rangeid: number;
|
||||
public cond_num: number;
|
||||
public effect_typeid: number;
|
||||
public friendlyid: number;
|
||||
public targetid: number;
|
||||
public ridicule: number;
|
||||
public spellpower: number;
|
||||
public halve: number;
|
||||
public rangeid: number;
|
||||
public select_targetID: number;
|
||||
public eff_numtypeid: number;
|
||||
public eff_num: number;
|
||||
public eff_nummax: number;
|
||||
public num_signid: number;
|
||||
public edd_effid: number;
|
||||
public edd_effnum: number;
|
||||
public eddeffnum_signid: number;
|
||||
public release_times: number;
|
||||
public release_timesmax: number;
|
||||
public quoteunitid: number;
|
||||
public quoteunit_times: number;
|
||||
public quoteunit_timesmax: number;
|
||||
public quotecardid: number;
|
||||
public quotecard_times: number;
|
||||
public quotecard_timesmax: number;
|
||||
public quoteskillid: number;
|
||||
public quoteskill_times: number;
|
||||
public quoteskill_timesmax: number;
|
||||
public skill_usersid: number;
|
||||
public quoteskill2id: number;
|
||||
public quoteskill2_times: number;
|
||||
public quoteskill2_timesmax: number;
|
||||
public skill2_usersid: number;
|
||||
public getskillid: number;
|
||||
public getskill_times: number;
|
||||
public getskill_timesmax: number;
|
||||
public skill_ownersid: number;
|
||||
public getskill2id: number;
|
||||
public getskill2_times: number;
|
||||
public getskill2_timesmax: number;
|
||||
public skill2_ownersid: number;
|
||||
public getskill3id: number;
|
||||
public getskill3_times: number;
|
||||
public getskill3_timesmax: number;
|
||||
public skill3_ownersid: number;
|
||||
|
||||
public decode(data: any) {
|
||||
this.id = data.id;
|
||||
this.skill_nameshow = data.skill_nameshow;
|
||||
this.skill_typeid = data.skill_typeid;
|
||||
this.affix1id = data.affix1id;
|
||||
this.affix2id = data.affix2id;
|
||||
this.skill_indicateid = data.skill_indicateid;
|
||||
this.indicate_time = data.indicate_time;
|
||||
this.tigger_typeid = data.tigger_typeid;
|
||||
this.cond_typeid = data.cond_typeid;
|
||||
this.cond_rangeid = data.cond_rangeid;
|
||||
this.cond_num = data.cond_num;
|
||||
this.effect_typeid = data.effect_typeid;
|
||||
this.friendlyid = data.friendlyid;
|
||||
this.targetid = data.targetid;
|
||||
this.ridicule = data.ridicule;
|
||||
this.spellpower = data.spellpower;
|
||||
this.halve = data.halve;
|
||||
this.rangeid = data.rangeid;
|
||||
this.select_targetID = data.select_targetID;
|
||||
this.eff_numtypeid = data.eff_numtypeid;
|
||||
this.eff_num = data.eff_num;
|
||||
this.eff_nummax = data.eff_nummax;
|
||||
this.num_signid = data.num_signid;
|
||||
this.edd_effid = data.edd_effid;
|
||||
this.edd_effnum = data.edd_effnum;
|
||||
this.eddeffnum_signid = data.eddeffnum_signid;
|
||||
this.release_times = data.release_times;
|
||||
this.release_timesmax = data.release_timesmax;
|
||||
this.quoteunitid = data.quoteunitid;
|
||||
this.quoteunit_times = data.quoteunit_times;
|
||||
this.quoteunit_timesmax = data.quoteunit_timesmax;
|
||||
this.quotecardid = data.quotecardid;
|
||||
this.quotecard_times = data.quotecard_times;
|
||||
this.quotecard_timesmax = data.quotecard_timesmax;
|
||||
this.quoteskillid = data.quoteskillid;
|
||||
this.quoteskill_times = data.quoteskill_times;
|
||||
this.quoteskill_timesmax = data.quoteskill_timesmax;
|
||||
this.skill_usersid = data.skill_usersid;
|
||||
this.quoteskill2id = data.quoteskill2id;
|
||||
this.quoteskill2_times = data.quoteskill2_times;
|
||||
this.quoteskill2_timesmax = data.quoteskill2_timesmax;
|
||||
this.skill2_usersid = data.skill2_usersid;
|
||||
this.getskillid = data.getskillid;
|
||||
this.getskill_times = data.getskill_times;
|
||||
this.getskill_timesmax = data.getskill_timesmax;
|
||||
this.skill_ownersid = data.skill_ownersid;
|
||||
this.getskill2id = data.getskill2id;
|
||||
this.getskill2_times = data.getskill2_times;
|
||||
this.getskill2_timesmax = data.getskill2_timesmax;
|
||||
this.skill2_ownersid = data.skill2_ownersid;
|
||||
this.getskill3id = data.getskill3id;
|
||||
this.getskill3_times = data.getskill3_times;
|
||||
this.getskill3_timesmax = data.getskill3_timesmax;
|
||||
this.skill3_ownersid = data.skill3_ownersid;
|
||||
};
|
||||
|
||||
public isOK (uniqueID: number, param1: any, param2: any): boolean {
|
||||
if((param1 == undefined || param1 == null) && (param2 == undefined || param2 == null)){
|
||||
return this.id == uniqueID;
|
||||
}
|
||||
if(param2 == undefined || param2 == null){
|
||||
return this.id == uniqueID && this.id == param1;
|
||||
}
|
||||
return this.id == uniqueID && this.id == param1 && this.id == param2;
|
||||
};
|
||||
};
|
@ -121,8 +121,7 @@ export default class AccountController extends BaseController {
|
||||
throw new ZError(12, 'not enough item')
|
||||
}
|
||||
record.count -= count
|
||||
//TODO:: 根据使用逻辑获取真实的物品id
|
||||
let data = ItemCtrl.useItem(itemid, count);
|
||||
let data = ItemCtrl.useItem(itemid, count)
|
||||
// let data = [{ itemid: 10001, itemnum: 1 }]
|
||||
for (let obj of data) {
|
||||
let item = (await BagItem.findOrCreate({
|
||||
|
Loading…
x
Reference in New Issue
Block a user