用户:RedDragon/Test2:修订间差异
来自Rizline中文维基
更多操作
小 |
小 |
||
| 第138行: | 第138行: | ||
function generateRandomRestrictions() { | function generateRandomRestrictions() { | ||
const speeds = [...Array( | const speeds = [...Array(30).fill("无限制"), ...Array.from({ length: 91 }, (_, i) => (i + 10) / 10)] | ||
const mods = ["无MOD", "镜像模式", "保护模式", "Bad保护模式", "隐藏计量条"] | const mods = ["无MOD", "镜像模式", "保护模式", "Bad保护模式", "隐藏计量条"] | ||
const others = ["无限制"] | const others = ["无限制"] | ||
| 第147行: | 第147行: | ||
let selectedMods = [] | let selectedMods = [] | ||
if (Math.random() < 0. | if (Math.random() < 0.6) { | ||
selectedMods = [mods[Math.floor(Math.random() * mods.length)]] | selectedMods = [mods[Math.floor(Math.random() * mods.length)]] | ||
} else { | } else { | ||