From 1ad0fbe2e1363dc84a453b320907a70566e1bf95 Mon Sep 17 00:00:00 2001 From: Tesseract1234567890 Date: Thu, 3 Jun 2021 11:03:20 -0400 Subject: [PATCH] Attempt #1 at creating custom augment --- src/Augmentation/AugmentationHelpers.jsx | 13 +++++++++++++ src/Augmentation/data/AugmentationNames.ts | 1 + 2 files changed, 14 insertions(+) diff --git a/src/Augmentation/AugmentationHelpers.jsx b/src/Augmentation/AugmentationHelpers.jsx index b7df5ce26..417362c22 100644 --- a/src/Augmentation/AugmentationHelpers.jsx +++ b/src/Augmentation/AugmentationHelpers.jsx @@ -36,6 +36,19 @@ function initAugmentations() { //Reset Augmentations clearObject(Augmentations); + //Time-Based Augment Test + const CircadianRhythm = new Augmentation({ + name:AugmentationNames.CircadianRhythm, moneyCost: 0, repCost:0, + info:"An injection which improves your perception by a variable amount.

" + + "This augmentation increases the player's hacking skill by a variable amount.", + hacking_mult: 1.08, + }); + CircadianRhythm.addToFactions(["VitaLife"]); + if (augmentationExists(AugmentationNames.CircadianRhythm)) { + delete Augmentations[AugmentationNames.CircadianRhythm]; + } + AddToAugmentations(CircadianRhythm); + //Combat stat augmentations const HemoRecirculator = new Augmentation({ name:AugmentationNames.HemoRecirculator, moneyCost: 9e6, repCost:4e3, diff --git a/src/Augmentation/data/AugmentationNames.ts b/src/Augmentation/data/AugmentationNames.ts index 2c681008d..c889a8dfc 100644 --- a/src/Augmentation/data/AugmentationNames.ts +++ b/src/Augmentation/data/AugmentationNames.ts @@ -1,6 +1,7 @@ import { IMap } from "../../types"; export const AugmentationNames: IMap = { + CircadianRhythm: "Circadian Modulator", Targeting1: "Augmented Targeting I", Targeting2: "Augmented Targeting II", Targeting3: "Augmented Targeting III",