Skip to content

Commit 62814a3

Browse files
committed
fixed build issues
1 parent 4e172ec commit 62814a3

3 files changed

Lines changed: 4 additions & 2 deletions

File tree

app/characters/create/components/ModificationModal.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,7 @@ export function ModificationModal({
344344
availability: mod.availability * (rating || 1),
345345
restricted: mod.restricted,
346346
forbidden: mod.forbidden,
347+
capacityUsed: 0, // Weapon mods use mount points, not capacity
347348
};
348349

349350
onInstallWeaponMod(installedMod);

app/characters/create/components/steps/GearStep.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,8 @@ export function GearStep({ state, updateState, budgetValues }: StepProps) {
306306
availability: modData.availability,
307307
restricted: modData.restricted,
308308
forbidden: modData.forbidden,
309-
isBuiltIn: true
309+
isBuiltIn: true,
310+
capacityUsed: 0, // Weapon mods use mount points, not capacity
310311
});
311312
if (builtIn.mount || modData.mount) {
312313
builtinMounts.push(builtIn.mount || modData.mount!);

lib/types/character.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,7 @@ export interface InstalledWeaponMod {
532532
/** New: Flags built-in mods that cannot be removed */
533533
isBuiltIn?: boolean;
534534
/** Capacity/Slots used by this mod */
535-
capacityUsed?: number;
535+
capacityUsed: number;
536536
}
537537

538538
/**

0 commit comments

Comments
 (0)