add railjack "component & armaments" slot type
All checks were successful
Build / build (20) (push) Successful in 40s
Build / build (18) (push) Successful in 1m2s
Build / build (22) (push) Successful in 53s
Build / build (18) (pull_request) Successful in 43s
Build / build (20) (pull_request) Successful in 1m3s
Build / build (22) (pull_request) Successful in 57s

This commit is contained in:
Sainan 2025-03-11 13:28:38 +01:00
parent 79ac6eef40
commit 66beffb76f
2 changed files with 6 additions and 3 deletions

View File

@ -389,9 +389,11 @@ export const addItem = async (
} }
} }
if (typeName in ExportRailjackWeapons) { if (typeName in ExportRailjackWeapons) {
// I'm not sure if these use a slot. Maybe CrewShipSalvageBin?
return { return {
InventoryChanges: addCrewShipWeapon(inventory, typeName) InventoryChanges: {
...addCrewShipWeapon(inventory, typeName),
...occupySlot(inventory, InventorySlot.RJ_COMPONENT_AND_ARMAMENTS, premiumPurchase)
}
}; };
} }
if (typeName in ExportMisc.creditBundles) { if (typeName in ExportMisc.creditBundles) {

View File

@ -430,7 +430,8 @@ export enum InventorySlot {
SPACESUITS = "SpaceSuitBin", SPACESUITS = "SpaceSuitBin",
MECHSUITS = "MechBin", MECHSUITS = "MechBin",
PVE_LOADOUTS = "PveBonusLoadoutBin", PVE_LOADOUTS = "PveBonusLoadoutBin",
SENTINELS = "SentinelBin" SENTINELS = "SentinelBin",
RJ_COMPONENT_AND_ARMAMENTS = "CrewShipSalvageBin"
} }
export interface ISlots { export interface ISlots {