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