用户:RedDragon/Test2:修订间差异
来自Rizline中文维基
更多操作
小 |
小 |
||
| 第138行: | 第138行: | ||
function generateRandomRestrictions() { | function generateRandomRestrictions() { | ||
const speeds = [...Array( | const speeds = [...Array(40).fill("无限制"), ...Array.from({ length: 91 }, (_, i) => (i + 10) / 10)] | ||
const mods = ["无MOD", "镜像模式", "保护模式", "Bad保护模式", "特殊计量条", "隐藏计量条"] | const mods = ["无MOD", "镜像模式", "保护模式", "Bad保护模式", "特殊计量条", "隐藏计量条"] | ||
const others = ["无限制"] | const others = ["无限制", "静音打歌", "单手模式", "手持模式"] | ||
document.getElementById('difficulty-data').innerHTML = window.difficultyArray[Math.floor(Math.random() * window.difficultyArray.length)] | document.getElementById('difficulty-data').innerHTML = window.difficultyArray[Math.floor(Math.random() * window.difficultyArray.length)] | ||
| 第171行: | 第171行: | ||
let selectedOthers = [] | let selectedOthers = [] | ||
if (Math.random() < 0. | if (Math.random() < 0.8) { | ||
selectedOthers = [others[Math.floor(Math.random() * others.length)]] | selectedOthers = [others[Math.floor(Math.random() * others.length)]] | ||
} else { | } else { | ||