feat: handle creditsFee in missionInventoryUpdate
All checks were successful
Build / build (18) (push) Successful in 43s
Build / build (20) (push) Successful in 1m13s
Build / build (22) (push) Successful in 1m6s
Build / build (20) (pull_request) Successful in 1m13s
Build / build (18) (pull_request) Successful in 43s
Build / build (22) (pull_request) Successful in 1m6s

This commit is contained in:
Sainan 2025-04-02 14:08:38 +02:00
parent 24ed580a97
commit 8475fce4db
2 changed files with 9 additions and 0 deletions

View File

@ -28,6 +28,7 @@ import {
addRecipes,
addShipDecorations,
combineInventoryChanges,
updateCurrency,
updateSyndicate
} from "@/src/services/inventoryService";
import { updateQuestKey } from "@/src/services/questService";
@ -430,6 +431,12 @@ export const addMissionInventoryUpdates = async (
}
break;
}
case "creditsFee": {
updateCurrency(inventory, value, false);
inventoryChanges.RegularCredits ??= 0;
inventoryChanges.RegularCredits -= value;
break;
}
default:
// Equipment XP updates
if (equipmentKeys.includes(key as TEquipmentKey)) {

View File

@ -116,6 +116,8 @@ export type IMissionInventoryUpdateRequest = {
CurrentLoadOutIds?: {
LoadOuts?: ILoadOutPresets; // sent when recovered weapons from zanuka capture
};
wagerTier?: number; // the index
creditsFee?: number; // the index
} & {
[K in TEquipmentKey]?: IEquipmentClient[];
};