docs: @motajs 除 legacy 外的所有文档

This commit is contained in:
AncTe committed 2025-04-03 15:37:17 +08:00
1 parent 83f460de65
commit 1d62a404b7
2 files changed
+121 -1

No files matched your search

+1 -1
View File
@@ -142,7 +142,7 @@ export function patchMyFunctions() {
// 这时候需要去 types/declaration 中对应的文件中添加声明
patch.add('getFlag', (name, defaultValue) => {
// 重写 getFlag,如果变量是数字,那么 +100 后返回
const value = core.status.?hero.?flags[name] ?? defaultValue;
const value = core.status?.hero?.flags[name] ?? defaultValue;
return typeof value === 'number' ? value + 100 : value;
});
}