导表
This commit is contained in:
parent
96ec66d881
commit
77e674530a
File diff suppressed because one or more lines are too long
1
config/reward_tbl.json
Normal file
1
config/reward_tbl.json
Normal file
@ -0,0 +1 @@
|
||||
[{"id":30001,"starnmu":0,"baserdid":11},{"id":30002,"starnmu":1,"baserdid":12},{"id":30003,"starnmu":5,"baserdid":13},{"id":30004,"starnmu":10,"baserdid":14},{"id":30005,"starnmu":15,"baserdid":15},{"id":30006,"starnmu":20,"baserdid":16},{"id":30007,"starnmu":25,"baserdid":17},{"id":30008,"starnmu":30,"baserdid":18},{"id":30009,"starnmu":35,"baserdid":19},{"id":30010,"starnmu":40,"baserdid":21},{"id":30011,"starnmu":45,"baserdid":22},{"id":30012,"starnmu":50,"baserdid":23},{"id":30013,"starnmu":55,"baserdid":24},{"id":30014,"starnmu":60,"baserdid":25},{"id":30015,"starnmu":65,"baserdid":26},{"id":30016,"starnmu":70,"baserdid":27},{"id":30017,"starnmu":75,"baserdid":28},{"id":30018,"starnmu":80,"baserdid":29},{"id":30019,"starnmu":85,"baserdid":31},{"id":30020,"starnmu":90,"baserdid":32},{"id":30021,"starnmu":95,"baserdid":33},{"id":30022,"starnmu":100,"baserdid":34},{"id":30023,"starnmu":105,"baserdid":35},{"id":30024,"starnmu":110,"baserdid":36},{"id":30025,"starnmu":115,"baserdid":37},{"id":30026,"starnmu":120,"baserdid":38},{"id":30027,"starnmu":125,"baserdid":39},{"id":30028,"starnmu":150,"baserdid":99}]
|
@ -5,31 +5,31 @@ export class mission_vo implements Cfg{
|
||||
|
||||
public id: number;
|
||||
public number: number;
|
||||
public typeID: number;
|
||||
public commonlyadd: number;
|
||||
public hardadd: number;
|
||||
public hp: number;
|
||||
public lastdif: number;
|
||||
public hp: number;
|
||||
public hpstar: number;
|
||||
public time: number;
|
||||
public timestar: number;
|
||||
public enemy: number;
|
||||
public enemystar: number;
|
||||
public beforehand_enemy: number;
|
||||
public keyID: string;
|
||||
|
||||
public decode(data: any) {
|
||||
this.id = data.id;
|
||||
this.number = data.number;
|
||||
this.typeID = data.typeID;
|
||||
this.commonlyadd = data.commonlyadd;
|
||||
this.hardadd = data.hardadd;
|
||||
this.hp = data.hp;
|
||||
this.lastdif = data.lastdif;
|
||||
this.hp = data.hp;
|
||||
this.hpstar = data.hpstar;
|
||||
this.time = data.time;
|
||||
this.timestar = data.timestar;
|
||||
this.enemy = data.enemy;
|
||||
this.enemystar = data.enemystar;
|
||||
this.beforehand_enemy = data.beforehand_enemy;
|
||||
this.keyID = data.keyID;
|
||||
};
|
||||
|
||||
|
25
src/config/parsers/reward_vo.ts
Normal file
25
src/config/parsers/reward_vo.ts
Normal file
@ -0,0 +1,25 @@
|
||||
import {Cfg} from "../../common/DataParser";
|
||||
|
||||
export class reward_vo implements Cfg{
|
||||
name: "reward_vo";
|
||||
|
||||
public id: number;
|
||||
public starnmu: number;
|
||||
public baserdid: number;
|
||||
|
||||
public decode(data: any) {
|
||||
this.id = data.id;
|
||||
this.starnmu = data.starnmu;
|
||||
this.baserdid = data.baserdid;
|
||||
};
|
||||
|
||||
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;
|
||||
};
|
||||
};
|
Loading…
x
Reference in New Issue
Block a user