修正系统卡数量字段读取错误的bug
This commit is contained in:
parent
94ac572a64
commit
c77f930f02
@ -7,8 +7,8 @@ export class SystemCardCfg implements Cfg {
|
||||
public point: number;
|
||||
public weight: string;
|
||||
public weightArr: number[][];
|
||||
public primaryaccess: number;
|
||||
public intermediateaccess: number;
|
||||
public primarycount: number;
|
||||
public intermediatecount: number;
|
||||
public decode(data: any) {
|
||||
this.id = data.id;
|
||||
this.type_id = data.type_id;
|
||||
@ -21,7 +21,7 @@ export class SystemCardCfg implements Cfg {
|
||||
let subArr = str.split(':');
|
||||
this.weightArr.push([parseInt(subArr[0]), parseInt(subArr[1])]);
|
||||
}
|
||||
this.primaryaccess = data.primaryaccess
|
||||
this.intermediateaccess = data.intermediateaccess
|
||||
this.primarycount = data.primarycount
|
||||
this.intermediatecount = data.intermediatecount
|
||||
}
|
||||
}
|
||||
|
@ -24,7 +24,7 @@ let gameUtil = {
|
||||
let countMap: Map<number, number> = new Map()
|
||||
let localId = beginNum
|
||||
for (let [, cfg] of numCfgMap) {
|
||||
let count = advMode ? cfg.intermediateaccess : cfg.primaryaccess
|
||||
let count = advMode ? cfg.intermediatecount : cfg.primarycount
|
||||
|
||||
for (let i = 0; i < count; i++) {
|
||||
let [effid, effType] = this.getRandomEffect(cfg.weightArr, effCfgMap, countMap, advMode)
|
||||
|
Loading…
x
Reference in New Issue
Block a user