labag 1.0.4 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/types/LaBaG.js +1 -1
- package/package.json +1 -1
- package/src/types/LaBaG.ts +2 -1
package/dist/types/LaBaG.js
CHANGED
|
@@ -77,7 +77,7 @@ class BaseLaBaG {
|
|
|
77
77
|
this.OneData["SuperHHH"] = __1.Modes.SuperHHH.RandNum;
|
|
78
78
|
this.OneData["GreenWei"] = __1.Modes.GreenWei.RandNum;
|
|
79
79
|
const RateRange = this.RateRanges[this.NowMode()];
|
|
80
|
-
const PCodes =
|
|
80
|
+
const PCodes = Array.from(P_1.P.Map.keys());
|
|
81
81
|
RandNums.forEach((RandNum, i) => {
|
|
82
82
|
const code = PCodes.find((_, j) => RandNum <= RateRange[j]);
|
|
83
83
|
if (code) {
|
package/package.json
CHANGED
package/src/types/LaBaG.ts
CHANGED
|
@@ -33,6 +33,7 @@ export interface LaBaG {
|
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
export class BaseLaBaG implements LaBaG {
|
|
36
|
+
|
|
36
37
|
AllData: Record<string, Record<string, number>> = {};
|
|
37
38
|
OneData: Record<string, number> = {};
|
|
38
39
|
DataIndex: number = 0;
|
|
@@ -122,7 +123,7 @@ export class BaseLaBaG implements LaBaG {
|
|
|
122
123
|
this.OneData["GreenWei"] = Modes.GreenWei.RandNum as number;
|
|
123
124
|
|
|
124
125
|
const RateRange: number[] = this.RateRanges[this.NowMode()];
|
|
125
|
-
const PCodes =
|
|
126
|
+
const PCodes = Array.from(P.Map.keys());
|
|
126
127
|
RandNums.forEach((RandNum: number, i: number) => {
|
|
127
128
|
const code = PCodes.find((_, j: number) => RandNum <= RateRange[j]);
|
|
128
129
|
if (code) {
|