improve: purchases #161

Merged
Sainan merged 7 commits from stonks into main 2024-05-08 16:27:33 -07:00
Showing only changes of commit 6798e09b50 - Show all commits

View File

@ -93,6 +93,10 @@ export const updateSlots = async (accountId: string, slotName: SlotNames, slotAm
};
export const updateCurrency = async (price: number, usePremium: boolean, accountId: string) => {
if (config.infiniteResources) {
return {};
}
const inventory = await getInventory(accountId);
if (usePremium) {