fix: remove unlockAllDLCs
This commit is contained in:
@@ -7,12 +7,10 @@ export interface InventoryState {
|
||||
unlockedDLCs: string[];
|
||||
items: Record<string, number>;
|
||||
offerings: Record<string, number>;
|
||||
unlockAllDLCs: boolean;
|
||||
|
||||
toggleItem: (id: string, category: 'characters' | 'customizations' | 'items' | 'offerings' | 'dlcs') => void;
|
||||
setItemQuantity: (id: string, qty: number) => void;
|
||||
setOfferingQuantity: (id: string, qty: number) => void;
|
||||
setUnlockAllDLCs: (val: boolean) => void;
|
||||
|
||||
unlockAllInCategory: (category: 'characters' | 'customizations' | 'items' | 'offerings' | 'dlcs', allIds: string[], qty?: number) => void;
|
||||
clearCategory: (category: 'characters' | 'customizations' | 'items' | 'offerings' | 'dlcs') => void;
|
||||
@@ -28,7 +26,6 @@ export const useInventoryStore = create<InventoryState>()(
|
||||
unlockedDLCs: [],
|
||||
items: {},
|
||||
offerings: {},
|
||||
unlockAllDLCs: false,
|
||||
|
||||
toggleItem: (id, category) => set((state) => {
|
||||
if (category === 'characters') {
|
||||
@@ -87,7 +84,6 @@ export const useInventoryStore = create<InventoryState>()(
|
||||
return { offerings: newOfferings };
|
||||
}),
|
||||
|
||||
setUnlockAllDLCs: (val) => set({ unlockAllDLCs: val }),
|
||||
|
||||
unlockAllInCategory: (category, allIds, qty = 100) => set((state) => {
|
||||
if (category === 'characters') {
|
||||
@@ -125,7 +121,6 @@ export const useInventoryStore = create<InventoryState>()(
|
||||
unlockedDLCs: [],
|
||||
items: {},
|
||||
offerings: {},
|
||||
unlockAllDLCs: false
|
||||
}),
|
||||
|
||||
importProfile: (profile) => set((state) => {
|
||||
|
||||
Reference in New Issue
Block a user