Implement basic crafting functionality

This commit is contained in:
nickofolas
2022-03-19 09:31:48 -05:00
parent 78f962318c
commit 4789455b9c
7 changed files with 118 additions and 1 deletions
+10 -1
View File
@@ -17,6 +17,7 @@ import { use } from "../../../ui/Context";
import { Augmentations } from "../../../Augmentation/Augmentations";
import { AugmentationNames } from "../../../Augmentation/data/AugmentationNames"
import { Settings } from "../../../Settings/Settings";
import { CONSTANTS } from "../../../Constants";
import { IPlayer } from "../../IPlayer";
@@ -74,7 +75,15 @@ export const GraftingRoot = (): React.ReactElement => {
<Typography variant="h6" sx={{ display: 'flex', alignItems: 'center', flexWrap: 'wrap' }}>
<Construction sx={{ mr: 1 }} /> {selectedAug}
</Typography>
<Button sx={{ width: '100%' }}>
<Button
onClick={event => {
if (!event.isTrusted) return;
player.startCraftAugmentationWork(selectedAug, 15000);
player.startFocusing();
router.toWork();
}}
sx={{ width: '100%' }}
>
Craft Augmentation (<Typography color={Settings.theme.money}>$foo</Typography>)
</Button>
<Typography color={Settings.theme.info}>