feat(items): replace dyeable booleans with dyeability level

Add dyeability integer field to support up to triple dyeable items
Update frontend forms to use a radio group for dyeability selection
This commit is contained in:
2026-05-07 10:17:45 +08:00
parent 515297ab74
commit 23a7301598
10 changed files with 230 additions and 100 deletions

View File

@@ -325,8 +325,7 @@ export interface Item extends EditInfo {
category: NamedEntity;
usage: NamedEntity | null;
customization: {
dyeable: boolean;
dualDyeable: boolean;
dyeability: number;
patternEditable: boolean;
};
noRecipe: boolean;
@@ -873,8 +872,7 @@ export interface ItemPayload {
translations?: TranslationMap;
categoryId: number;
usageId: number | null;
dyeable: boolean;
dualDyeable: boolean;
dyeability: number;
patternEditable: boolean;
noRecipe: boolean;
isEventItem: boolean;