diff --git a/src/DevMenu/ui/AugmentationsDev.tsx b/src/DevMenu/ui/AugmentationsDev.tsx index 0d5036ecf..d3c806009 100644 --- a/src/DevMenu/ui/AugmentationsDev.tsx +++ b/src/DevMenu/ui/AugmentationsDev.tsx @@ -1,6 +1,6 @@ import { Player } from "@player"; import React from "react"; -import { Clear, ExpandMore } from "@mui/icons-material"; +import { ExpandMore } from "@mui/icons-material"; import { AccordionDetails, AccordionSummary, @@ -19,6 +19,7 @@ import { Factions } from "../../Faction/Factions"; import { FactionChooser } from "./FactionChooser"; import { getFactionAugmentationsFiltered } from "../../Faction/FactionHelpers"; import { AutoExpandAccordion } from "../../ui/AutoExpand/AutoExpandAccordion"; +import { applyAugmentation } from "../../Augmentation/AugmentationHelpers"; export function AugmentationsDev(): React.ReactElement { const [augmentation, setAugmentation] = React.useState(null); @@ -63,12 +64,21 @@ export function AugmentationsDev(): React.ReactElement { function clearAugs(): void { Player.augmentations = []; + Player.reapplyAllAugmentations(); + Player.reapplyAllSourceFiles(); } function clearQueuedAugs(): void { Player.queuedAugmentations = []; } + function installAugs(): void { + for (const aug of Player.queuedAugmentations) { + applyAugmentation(aug); + } + Player.queuedAugmentations = []; + } + const options = Object.values(AugmentationName).filter( (augmentationName) => // NFG is always eligible. @@ -101,13 +111,14 @@ export function AugmentationsDev(): React.ReactElement { setAugmentation(augmentationName); }} > - - - - + + +