mirror of
https://github.com/motajs/template.git
synced 2026-11-16 08:54:30 +08:00
25 lines
575 B
TypeScript
25 lines
575 B
TypeScript
type HeroAttr = import('@user/data-common').IHeroAttr;
|
|
type CoreState = import('@user/data-state').ICoreState;
|
|
type ItemEffect = import('@user/data-common').IItemEffect<HeroAttr, CoreState>;
|
|
|
|
// --- SYSTEM ITEM PREFIX --- //
|
|
|
|
export const item200: ItemEffect = {
|
|
canUse() {
|
|
return true;
|
|
}
|
|
};
|
|
|
|
// --- SYSTEM ITEM SPLIT --- //
|
|
|
|
export const item201: ItemEffect = {
|
|
canUse(item, state) {
|
|
return (
|
|
item.text.includes('test') &&
|
|
state.flags.getFieldValueDefaults('test', true)
|
|
);
|
|
}
|
|
};
|
|
|
|
// --- SYSTEM ITEM END --- //
|