mirror of
https://github.com/unanmed/HumanBreak.git
synced 2026-11-18 21:44:30 +08:00
修改部分ui
This commit is contained in:
1 parent
5f8762d158
commit
71a4551004
3 files changed
+11
-5
No files matched your search
@@ -33,10 +33,13 @@ export function getItems(cls: 'all'): AllItem;
|
||||
export function getItems(cls: keyof ClsMap): [string, number][];
|
||||
export function getItems(cls: keyof ClsMap | 'all') {
|
||||
const i = core.status.hero.items;
|
||||
const ignore = ['book'];
|
||||
if (cls === 'all') {
|
||||
return {
|
||||
tools: Object.entries(i.tools),
|
||||
constants: Object.entries(i.constants)
|
||||
tools: Object.entries(i.tools).filter(v => !ignore.includes(v[0])),
|
||||
constants: Object.entries(i.constants).filter(
|
||||
v => !ignore.includes(v[0])
|
||||
)
|
||||
};
|
||||
}
|
||||
const items = i[cls];
|
||||
|
||||
Reference in new issue
Block a user