chore: fix some minor issues with ability infusions
All checks were successful
Build / build (22) (push) Successful in 42s
Build / build (18) (push) Successful in 1m15s
Build / build (18) (pull_request) Successful in 42s
Build / build (20) (pull_request) Successful in 1m12s
Build / build (20) (push) Successful in 1m11s
Build / build (22) (pull_request) Successful in 1m13s
All checks were successful
Build / build (22) (push) Successful in 42s
Build / build (18) (push) Successful in 1m15s
Build / build (18) (pull_request) Successful in 42s
Build / build (20) (pull_request) Successful in 1m12s
Build / build (20) (push) Successful in 1m11s
Build / build (22) (pull_request) Successful in 1m13s
This commit is contained in:
parent
158310bda2
commit
50b9cf903c
@ -11,7 +11,7 @@ import { getAccountIdForRequest } from "@/src/services/loginService";
|
||||
import { addMiscItems, addRecipes, getInventory, updateCurrency } from "@/src/services/inventoryService";
|
||||
import { getRecipeByResult } from "@/src/services/itemDataService";
|
||||
import { IInventoryChanges } from "@/src/types/purchaseTypes";
|
||||
import { addInfestedFoundryXP } from "./infestedFoundryController";
|
||||
import { addInfestedFoundryXP, applyCheatsToInfestedFoundry } from "./infestedFoundryController";
|
||||
import { config } from "@/src/services/configService";
|
||||
|
||||
export const upgradesController: RequestHandler = async (req, res) => {
|
||||
@ -25,7 +25,7 @@ export const upgradesController: RequestHandler = async (req, res) => {
|
||||
operation.UpgradeRequirement == "/Lotus/Types/Items/MiscItems/CustomizationSlotUnlocker"
|
||||
) {
|
||||
updateCurrency(inventory, 10, true);
|
||||
} else {
|
||||
} else if (operation.OperationType != "UOT_ABILITY_OVERRIDE") {
|
||||
addMiscItems(inventory, [
|
||||
{
|
||||
ItemType: operation.UpgradeRequirement,
|
||||
@ -66,6 +66,7 @@ export const upgradesController: RequestHandler = async (req, res) => {
|
||||
|
||||
inventoryChanges.Recipes = recipeChanges;
|
||||
inventoryChanges.InfestedFoundry = inventory.toJSON<IInventoryClient>().InfestedFoundry;
|
||||
applyCheatsToInfestedFoundry(inventoryChanges.InfestedFoundry!);
|
||||
} else
|
||||
switch (operation.UpgradeRequirement) {
|
||||
case "/Lotus/Types/Items/MiscItems/OrokinReactor":
|
||||
|
Loading…
x
Reference in New Issue
Block a user