mirror of
https://github.com/unanmed/HumanBreak.git
synced 2026-11-13 01:14:30 +08:00
docs: @motajs 除 legacy 外的所有文档
This commit is contained in:
1 parent
83f460de65
commit
1d62a404b7
2 files changed
+121
-1
No files matched your search
@@ -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;
|
||||
});
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user