fix: basic bug 1.
This commit is contained in:
parent
ecb82db7f1
commit
f1badbb125
|
@ -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);
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue