修改部分ui

This commit is contained in:
AncTe committed 2023-01-01 11:56:02 +08:00
1 parent 5f8762d158
commit 71a4551004
3 files changed
+11 -5

No files matched your search

+5 -2
View File
@@ -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];