[色子游戏]奖励配置-新增按规则自动生成奖励配置

This commit is contained in:
2026-03-25 14:34:04 +08:00
parent 1027612cc0
commit ce9062e186
5 changed files with 21 additions and 21 deletions

View File

@@ -1,6 +1,6 @@
/**
* 命令行:按「当前盘面 grid_number 排布」与 T1/T2/T4/T5 约束生成 DiceRewardConfig 表 JSON不含保存
* 用法pnpm tsx scripts/generate-dice-reward-index.ts [t1Min] [t2Min] [t4Fixed] [t5Fixed]
* 用法pnpm tsx scripts/generate-dice-reward-index.ts [t1Fixed] [t2Min] [t4Fixed] [t5Fixed]
* 默认3 5 1 1T4/T5 为顺、逆加权条数固定值)
*
* 生成逻辑见 src/views/plugin/dice/reward_config/utils/generateIndexByRules.ts
@@ -25,11 +25,11 @@ const x4 = Number.isFinite(args[2]) ? args[2] : 1
const x5 = Number.isFinite(args[3]) ? args[3] : 1
const constraints = {
t1MinCw: t1,
t1FixedCw: t1,
t2MinCw: t2,
t4FixedCw: x4,
t5FixedCw: x5,
t1MinCcw: t1,
t1FixedCcw: t1,
t2MinCcw: t2,
t4FixedCcw: x4,
t5FixedCcw: x5