@slot-engine/core 0.0.6 → 0.0.7
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/index.js +10 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +10 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1638,12 +1638,16 @@ Simulating game mode: ${mode}`);
|
|
|
1638
1638
|
"publish_files",
|
|
1639
1639
|
"index.json"
|
|
1640
1640
|
);
|
|
1641
|
-
const modes = Object.
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1641
|
+
const modes = Object.keys(this.simRunsAmount).map((id) => {
|
|
1642
|
+
const mode = this.gameConfig.gameModes[id];
|
|
1643
|
+
assert6(mode, `Game mode "${id}" not found in game config.`);
|
|
1644
|
+
return {
|
|
1645
|
+
name: mode.name,
|
|
1646
|
+
cost: mode.cost,
|
|
1647
|
+
events: `books_${mode.name}.jsonl.zst`,
|
|
1648
|
+
weights: `lookUpTable_${mode.name}_0.csv`
|
|
1649
|
+
};
|
|
1650
|
+
});
|
|
1647
1651
|
writeFile(outputFilePath, JSON.stringify({ modes }, null, 2));
|
|
1648
1652
|
}
|
|
1649
1653
|
async writeBooksJson(gameMode) {
|