[色子游戏]奖励配置-新增按规则自动生成奖励配置
This commit is contained in:
@@ -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 1(T4/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
|
||||
|
||||
Reference in New Issue
Block a user