fix: `replaceButton` not a button.

This commit is contained in:
Rintim 2024-01-10 01:11:52 +08:00
parent 0a3d5216f5
commit f4fe5406c9
No known key found for this signature in database
GPG Key ID: BE9E1EA615BACFCF
5 changed files with 15594 additions and 15580 deletions

View File

@ -1659,6 +1659,11 @@ export class Get extends Uninstantable {
if (obj instanceof lib.element.Dialog) return 'dialog';
if (obj instanceof lib.element.GameEvent ||
obj instanceof lib.element.GameEventPromise) return 'event';
if (typeof obj !== 'object' || obj === null) return;
if (lib.experimental.symbol.itemType in obj)
return obj[lib.experimental.symbol.itemType]
}
static equipNum(card) {
if (get.type(card) == 'equip') {

File diff suppressed because it is too large Load Diff

View File

@ -1,5 +1,8 @@
import { Uninstantable } from "../../util/index.js";
export class Experimental extends Uninstantable {
}
import { Uninstantable } from "../../util/index.js";
import { ExperimentalSymbol } from "./symbol.js";
export class Experimental extends Uninstantable {
static symbol = ExperimentalSymbol
static symbols = ExperimentalSymbol
}

View File

@ -0,0 +1,5 @@
import { Uninstantable } from "../../util/index.js";
export class ExperimentalSymbol extends Uninstantable {
static itemType = Symbol('noname.experimental.itemType')
}

File diff suppressed because it is too large Load Diff