fix: basic bug 1.

This commit is contained in:
Rintim 2023-12-22 21:26:33 +08:00
parent ecb82db7f1
commit f1badbb125
No known key found for this signature in database
GPG Key ID: BE9E1EA615BACFCF
2 changed files with 3 additions and 3 deletions

View File

@ -7273,7 +7273,7 @@ export class Game extends Uninstantable {
ui.window.appendChild(event.nodes[i]);
}
'step 1'
let rand = event.config.first;
var rand = event.config.first;
if (rand == 'rand') {
rand = (Math.random() < 0.5);
}
@ -7394,7 +7394,7 @@ export class Game extends Uninstantable {
event.avatars[i].classList.add('selecting');
}
}
let rand = [];
var rand = [];
for (let i = 0; i < event.config.width; i++) {
for (let j = 0; j < event.config.width - i; j++) {
rand.push(i);

View File

@ -139,7 +139,7 @@ export async function boot() {
// 读取模式
if (config2.mode) config.set('mode', config2.mode);
if (config.get('mode_config')[config.get('mode')] === undefined)
config.set(config.get('mode'), {});
config.get('mode_config')[config.get('mode')] = {};
// 复制共有模式设置
for (const name in config.get('mode_config').global) {