From 1ad0fbe2e1363dc84a453b320907a70566e1bf95 Mon Sep 17 00:00:00 2001 From: Tesseract1234567890 Date: Thu, 3 Jun 2021 11:03:20 -0400 Subject: [PATCH 01/20] 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", From e0436a4314d5c90730c8e7513c9d0e63df6c3d28 Mon Sep 17 00:00:00 2001 From: Tesseract1234567890 Date: Thu, 3 Jun 2021 11:07:05 -0400 Subject: [PATCH 02/20] increased effect of modulator to test --- src/Augmentation/AugmentationHelpers.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Augmentation/AugmentationHelpers.jsx b/src/Augmentation/AugmentationHelpers.jsx index 417362c22..b8b1e5576 100644 --- a/src/Augmentation/AugmentationHelpers.jsx +++ b/src/Augmentation/AugmentationHelpers.jsx @@ -41,7 +41,7 @@ function initAugmentations() { 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, + hacking_mult: 111.08, }); CircadianRhythm.addToFactions(["VitaLife"]); if (augmentationExists(AugmentationNames.CircadianRhythm)) { From aef0cc815e2391bd68ea49c7840ec4509f5af403 Mon Sep 17 00:00:00 2001 From: Tesseract1234567890 Date: Thu, 3 Jun 2021 11:12:28 -0400 Subject: [PATCH 03/20] added rng to circ. modulator --- src/Augmentation/AugmentationHelpers.jsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Augmentation/AugmentationHelpers.jsx b/src/Augmentation/AugmentationHelpers.jsx index b8b1e5576..2c2b80cf5 100644 --- a/src/Augmentation/AugmentationHelpers.jsx +++ b/src/Augmentation/AugmentationHelpers.jsx @@ -18,6 +18,8 @@ import { dialogBoxCreate } from "../../utils/DialogBox"; import { clearObject } from "../../utils/helpers/clearObject"; import { Money } from "../ui/React/Money"; +import { WHRNG } from "../Casino/RNG"; + import React from "react"; import ReactDOM from "react-dom"; @@ -41,7 +43,7 @@ function initAugmentations() { 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: 111.08, + hacking_mult: (1 + new WHRNG((new Date()).getMinutes() * 60 + (new Date()).getSeconds()).random()), }); CircadianRhythm.addToFactions(["VitaLife"]); if (augmentationExists(AugmentationNames.CircadianRhythm)) { From d86fb0262aafe0fd366567b70289b27b1e9b5d21 Mon Sep 17 00:00:00 2001 From: Tesseract1234567890 Date: Thu, 3 Jun 2021 11:29:55 -0400 Subject: [PATCH 04/20] Attempt 2 --- src/Augmentation/AugmentationHelpers.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Augmentation/AugmentationHelpers.jsx b/src/Augmentation/AugmentationHelpers.jsx index 2c2b80cf5..2c7cc57f1 100644 --- a/src/Augmentation/AugmentationHelpers.jsx +++ b/src/Augmentation/AugmentationHelpers.jsx @@ -43,7 +43,7 @@ function initAugmentations() { 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 + new WHRNG((new Date()).getMinutes() * 60 + (new Date()).getSeconds()).random()), + hacking_mult: (1 + new WHRNG(Player.lastUpdate)), }); CircadianRhythm.addToFactions(["VitaLife"]); if (augmentationExists(AugmentationNames.CircadianRhythm)) { From 23cefed8d444930c6af4f5825ecf83ac20b4a518 Mon Sep 17 00:00:00 2001 From: Tesseract1234567890 Date: Thu, 3 Jun 2021 11:31:28 -0400 Subject: [PATCH 05/20] test --- src/Augmentation/AugmentationHelpers.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Augmentation/AugmentationHelpers.jsx b/src/Augmentation/AugmentationHelpers.jsx index 2c7cc57f1..f2e398627 100644 --- a/src/Augmentation/AugmentationHelpers.jsx +++ b/src/Augmentation/AugmentationHelpers.jsx @@ -43,7 +43,7 @@ function initAugmentations() { 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 + new WHRNG(Player.lastUpdate)), + hacking_mult: (1 + new WHRNG(Player.lastUpdate).random()), }); CircadianRhythm.addToFactions(["VitaLife"]); if (augmentationExists(AugmentationNames.CircadianRhythm)) { From c47990ef566cf9429c47dee38c95387f1ddf6e51 Mon Sep 17 00:00:00 2001 From: Tesseract1234567890 Date: Thu, 3 Jun 2021 11:35:02 -0400 Subject: [PATCH 06/20] Fixed RNG generation for augment --- src/Augmentation/AugmentationHelpers.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Augmentation/AugmentationHelpers.jsx b/src/Augmentation/AugmentationHelpers.jsx index f2e398627..1cd245fd3 100644 --- a/src/Augmentation/AugmentationHelpers.jsx +++ b/src/Augmentation/AugmentationHelpers.jsx @@ -43,9 +43,9 @@ function initAugmentations() { 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 + new WHRNG(Player.lastUpdate).random()), + hacking_mult: (0.9 + 1.1 * (new WHRNG(Player.lastUpdate).random())), }); - CircadianRhythm.addToFactions(["VitaLife"]); + CircadianRhythm.addToFactions(["Illuminati"]); if (augmentationExists(AugmentationNames.CircadianRhythm)) { delete Augmentations[AugmentationNames.CircadianRhythm]; } From e7fde38bf968cc9431b409e90ba52c0f49eeca0c Mon Sep 17 00:00:00 2001 From: Tesseract1234567890 Date: Thu, 3 Jun 2021 11:55:01 -0400 Subject: [PATCH 07/20] testing step random --- src/Augmentation/AugmentationHelpers.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Augmentation/AugmentationHelpers.jsx b/src/Augmentation/AugmentationHelpers.jsx index 1cd245fd3..0a6cf4dbf 100644 --- a/src/Augmentation/AugmentationHelpers.jsx +++ b/src/Augmentation/AugmentationHelpers.jsx @@ -40,7 +40,7 @@ function initAugmentations() { //Time-Based Augment Test const CircadianRhythm = new Augmentation({ - name:AugmentationNames.CircadianRhythm, moneyCost: 0, repCost:0, + name:AugmentationNames.CircadianRhythm, moneyCost: 1e12, repCost:450e3, 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: (0.9 + 1.1 * (new WHRNG(Player.lastUpdate).random())), From 21611ec57108e96691d258a1c7fff00775a0838b Mon Sep 17 00:00:00 2001 From: Tesseract1234567890 Date: Thu, 3 Jun 2021 11:59:49 -0400 Subject: [PATCH 08/20] Made random mult into function --- src/Augmentation/AugmentationHelpers.jsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/Augmentation/AugmentationHelpers.jsx b/src/Augmentation/AugmentationHelpers.jsx index 0a6cf4dbf..26f4ebbd1 100644 --- a/src/Augmentation/AugmentationHelpers.jsx +++ b/src/Augmentation/AugmentationHelpers.jsx @@ -28,6 +28,12 @@ function AddToAugmentations(aug) { Augmentations[name] = aug; } +function getRandomMultiplier(min, max) { + var randomNumber = (new WHRNG(Player.lastUpdate)); + randomNumber.step(); + return (min + (max - min) * (randomNumber.random())); +} + function initAugmentations() { for (var name in Factions) { if (Factions.hasOwnProperty(name)) { @@ -43,7 +49,7 @@ function initAugmentations() { name:AugmentationNames.CircadianRhythm, moneyCost: 1e12, repCost:450e3, 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: (0.9 + 1.1 * (new WHRNG(Player.lastUpdate).random())), + hacking_mult: getRandomMultiplier(0.9, 2), }); CircadianRhythm.addToFactions(["Illuminati"]); if (augmentationExists(AugmentationNames.CircadianRhythm)) { From 0ec05f3fe2317487e7cf8250dee7bd073e042af2 Mon Sep 17 00:00:00 2001 From: Tesseract1234567890 Date: Thu, 3 Jun 2021 12:10:26 -0400 Subject: [PATCH 09/20] get random modifier for augment function added --- src/Augmentation/AugmentationHelpers.jsx | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/src/Augmentation/AugmentationHelpers.jsx b/src/Augmentation/AugmentationHelpers.jsx index 26f4ebbd1..ce978f9af 100644 --- a/src/Augmentation/AugmentationHelpers.jsx +++ b/src/Augmentation/AugmentationHelpers.jsx @@ -34,6 +34,20 @@ function getRandomMultiplier(min, max) { return (min + (max - min) * (randomNumber.random())); } +function getRandomModifier() { + var multiplierTypes = [ + "hacking_chance_mult", + "hacking_speed_mult", + "hacking_money_mult" + "hacking_grow_mult", + "hacking_mult", + "hacking_exp_mult"]; + + var randomNumber = (new WHRNG(Player.lastUpdate)); + randomNumber.step(); + return (multiplierTypes[Math.floor(multiplierTypes.length() * randomNumber.random())]); +} + function initAugmentations() { for (var name in Factions) { if (Factions.hasOwnProperty(name)) { @@ -49,7 +63,7 @@ function initAugmentations() { name:AugmentationNames.CircadianRhythm, moneyCost: 1e12, repCost:450e3, 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: getRandomMultiplier(0.9, 2), + getRandomModifier(): getRandomMultiplier(0.9, 2), }); CircadianRhythm.addToFactions(["Illuminati"]); if (augmentationExists(AugmentationNames.CircadianRhythm)) { From e9eae408912a9e658444208bce00b76b164adef5 Mon Sep 17 00:00:00 2001 From: Tesseract1234567890 Date: Thu, 3 Jun 2021 12:21:56 -0400 Subject: [PATCH 10/20] expanded multiplierTypes --- src/Augmentation/AugmentationHelpers.jsx | 25 +++++++++++++++++++----- 1 file changed, 20 insertions(+), 5 deletions(-) diff --git a/src/Augmentation/AugmentationHelpers.jsx b/src/Augmentation/AugmentationHelpers.jsx index ce978f9af..f7a5bbff8 100644 --- a/src/Augmentation/AugmentationHelpers.jsx +++ b/src/Augmentation/AugmentationHelpers.jsx @@ -35,13 +35,28 @@ function getRandomMultiplier(min, max) { } function getRandomModifier() { - var multiplierTypes = [ - "hacking_chance_mult", + var multiplierTypes = ["hacking_chance_mult", "hacking_speed_mult", - "hacking_money_mult" + "hacking_money_mult", "hacking_grow_mult", "hacking_mult", - "hacking_exp_mult"]; + "strength_mult", + "defense_mult", + "dexterity_mult", + "agility_mult", + "charisma_mult", + "hacking_exp_mult", + "strength_exp_mult", + "defense_exp_mult", + "dexterity_exp_mult", + "agility_exp_mult", + "charisma_exp_mult", + "company_rep_mult", + "faction_rep_mult", + "crime_money_mult", + "crime_success_mult", + "hacknet_node_money_mult", + "work_money_mult"]; var randomNumber = (new WHRNG(Player.lastUpdate)); randomNumber.step(); @@ -63,7 +78,7 @@ function initAugmentations() { name:AugmentationNames.CircadianRhythm, moneyCost: 1e12, repCost:450e3, info:"An injection which improves your perception by a variable amount.

" + "This augmentation increases the player's hacking skill by a variable amount.", - getRandomModifier(): getRandomMultiplier(0.9, 2), + getRandomModifier(): getRandomMultiplier(0.85, 1.5), }); CircadianRhythm.addToFactions(["Illuminati"]); if (augmentationExists(AugmentationNames.CircadianRhythm)) { From b88990444b703d17a4a0940d0df3166e4c2a0a18 Mon Sep 17 00:00:00 2001 From: Tesseract1234567890 Date: Thu, 3 Jun 2021 12:25:35 -0400 Subject: [PATCH 11/20] Swapped faction to speakers for the dead, modified price + rep cost, modified lore --- src/Augmentation/AugmentationHelpers.jsx | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/src/Augmentation/AugmentationHelpers.jsx b/src/Augmentation/AugmentationHelpers.jsx index f7a5bbff8..e7e36cfca 100644 --- a/src/Augmentation/AugmentationHelpers.jsx +++ b/src/Augmentation/AugmentationHelpers.jsx @@ -29,7 +29,7 @@ function AddToAugmentations(aug) { } function getRandomMultiplier(min, max) { - var randomNumber = (new WHRNG(Player.lastUpdate)); + let randomNumber = (new WHRNG(new Date().getHours())); randomNumber.step(); return (min + (max - min) * (randomNumber.random())); } @@ -55,12 +55,12 @@ function getRandomModifier() { "faction_rep_mult", "crime_money_mult", "crime_success_mult", - "hacknet_node_money_mult", "work_money_mult"]; - var randomNumber = (new WHRNG(Player.lastUpdate)); + let randomNumber = (new WHRNG(new Date().getHours())); + randomNumber.step(); - return (multiplierTypes[Math.floor(multiplierTypes.length() * randomNumber.random())]); + return (multiplierTypes[Math.floor(multiplierTypes.length * randomNumber.random())]); } function initAugmentations() { @@ -74,13 +74,16 @@ function initAugmentations() { clearObject(Augmentations); //Time-Based Augment Test + var randomMod = getRandomModifier(); + const CircadianRhythm = new Augmentation({ name:AugmentationNames.CircadianRhythm, moneyCost: 1e12, repCost:450e3, - info:"An injection which improves your perception by a variable amount.

" + - "This augmentation increases the player's hacking skill by a variable amount.", - getRandomModifier(): getRandomMultiplier(0.85, 1.5), + info:"An prototype injection which modifies your circadian rhythm, leading to unexpected effects.

" + + "This augmentation increases or decreases a random skill by a random amount depending on install time.
" + + "Debug:" + randomMod + " by " + getRandomMultiplier(0.85, 1.5) + " " + Math.floor(Player.lastUpdate/360000), + [randomMod]: getRandomMultiplier(0.85, 1.5), }); - CircadianRhythm.addToFactions(["Illuminati"]); + CircadianRhythm.addToFactions(["Speakers for the Dead"]); if (augmentationExists(AugmentationNames.CircadianRhythm)) { delete Augmentations[AugmentationNames.CircadianRhythm]; } From a3496cdfa9796021352c8f0e076f05c10f654532 Mon Sep 17 00:00:00 2001 From: Tesseract1234567890 Date: Thu, 3 Jun 2021 13:25:20 -0400 Subject: [PATCH 12/20] changed rng method to based on hour of install, changes every 360000 ms --- src/Augmentation/AugmentationHelpers.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Augmentation/AugmentationHelpers.jsx b/src/Augmentation/AugmentationHelpers.jsx index e7e36cfca..90f2954eb 100644 --- a/src/Augmentation/AugmentationHelpers.jsx +++ b/src/Augmentation/AugmentationHelpers.jsx @@ -29,7 +29,7 @@ function AddToAugmentations(aug) { } function getRandomMultiplier(min, max) { - let randomNumber = (new WHRNG(new Date().getHours())); + let randomNumber = (new WHRNG(Math.floor(Player.lastUpdate/360000))); randomNumber.step(); return (min + (max - min) * (randomNumber.random())); } @@ -57,7 +57,7 @@ function getRandomModifier() { "crime_success_mult", "work_money_mult"]; - let randomNumber = (new WHRNG(new Date().getHours())); + let randomNumber = (new WHRNG(Math.floor(Player.lastUpdate/360000))); randomNumber.step(); return (multiplierTypes[Math.floor(multiplierTypes.length * randomNumber.random())]); From 4ac91f5599c3b4726fb0b1787a5e579725e00e8f Mon Sep 17 00:00:00 2001 From: Tesseract1234567890 Date: Thu, 3 Jun 2021 15:27:08 -0400 Subject: [PATCH 13/20] set to hour instead of 6 mins --- src/Augmentation/AugmentationHelpers.jsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Augmentation/AugmentationHelpers.jsx b/src/Augmentation/AugmentationHelpers.jsx index 90f2954eb..c63b9f3a8 100644 --- a/src/Augmentation/AugmentationHelpers.jsx +++ b/src/Augmentation/AugmentationHelpers.jsx @@ -29,7 +29,7 @@ function AddToAugmentations(aug) { } function getRandomMultiplier(min, max) { - let randomNumber = (new WHRNG(Math.floor(Player.lastUpdate/360000))); + let randomNumber = (new WHRNG(Math.floor(Player.lastUpdate/3600000))); randomNumber.step(); return (min + (max - min) * (randomNumber.random())); } @@ -57,7 +57,7 @@ function getRandomModifier() { "crime_success_mult", "work_money_mult"]; - let randomNumber = (new WHRNG(Math.floor(Player.lastUpdate/360000))); + let randomNumber = (new WHRNG(Math.floor(Player.lastUpdate/3600000))); randomNumber.step(); return (multiplierTypes[Math.floor(multiplierTypes.length * randomNumber.random())]); @@ -80,7 +80,7 @@ function initAugmentations() { name:AugmentationNames.CircadianRhythm, moneyCost: 1e12, repCost:450e3, info:"An prototype injection which modifies your circadian rhythm, leading to unexpected effects.

" + "This augmentation increases or decreases a random skill by a random amount depending on install time.
" + - "Debug:" + randomMod + " by " + getRandomMultiplier(0.85, 1.5) + " " + Math.floor(Player.lastUpdate/360000), + "Debug:" + randomMod + " by " + getRandomMultiplier(0.85, 1.5) + " " + Math.floor(Player.lastUpdate/3600000), [randomMod]: getRandomMultiplier(0.85, 1.5), }); CircadianRhythm.addToFactions(["Speakers for the Dead"]); From 29d7134859317aeb57ab1e77eaa36b26cc8be0ef Mon Sep 17 00:00:00 2001 From: Tesseract1234567890 Date: Thu, 3 Jun 2021 15:41:19 -0400 Subject: [PATCH 14/20] testing --- src/Augmentation/AugmentationHelpers.jsx | 71 ++++++++++++++++++++++-- 1 file changed, 67 insertions(+), 4 deletions(-) diff --git a/src/Augmentation/AugmentationHelpers.jsx b/src/Augmentation/AugmentationHelpers.jsx index c63b9f3a8..bdced65ab 100644 --- a/src/Augmentation/AugmentationHelpers.jsx +++ b/src/Augmentation/AugmentationHelpers.jsx @@ -35,7 +35,8 @@ function getRandomMultiplier(min, max) { } function getRandomModifier() { - var multiplierTypes = ["hacking_chance_mult", + var multiplierTypes = + ["hacking_chance_mult", "hacking_speed_mult", "hacking_money_mult", "hacking_grow_mult", @@ -63,6 +64,61 @@ function getRandomModifier() { return (multiplierTypes[Math.floor(multiplierTypes.length * randomNumber.random())]); } +function getRandomBonus() { + var bonuses = + [ + [ + ["hacking_chance_mult", 1.25], + ["hacking_speed_mult", 1.15], + ["hacking_money_mult", 1.25], + ["hacking_grow_mult", 1.1], + + ], + [ + ["strength_exp_mult", 1.15], + ["strength_exp_mult", 2] + ], + [ + ["defense_mult", 1.15], + ["defense_exp_mult", 2] + ], + [ + ["dexterity_mult", 1.15], + ["dexterity_exp_mult", 2] + ], + [ + ["agility_mult", 1.15], + ["agility_exp_mult", 2] + ], + [ + ["charisma_mult", 1.15], + ["charisma_exp_mult", 2] + ], + [ + ["hacknet_node_money_mult", 1.2], + ["hacknet_node_purchase_cost_mult", 0.85], + ["hacknet_node_ram_cost_mult", 0.85], + ["hacknet_node_core_cost_mult", 0.85], + ["hacknet_node_level_cost_mult", 0.85] + ], + [ + ["company_rep_mult", 1.25], + ["faction_rep_mult", 1.15], + ["work_money_mult", 1.3] + ], + [ + ["crime_success_mult", 2], + ["crime_money_mult", 2], + ], + ] + + + let randomNumber = (new WHRNG(Math.floor(Player.lastUpdate/360))); + + randomNumber.step(); + return (bonuses[Math.floor(bonuses.length * randomNumber.random())]); +} + function initAugmentations() { for (var name in Factions) { if (Factions.hasOwnProperty(name)) { @@ -75,14 +131,21 @@ function initAugmentations() { //Time-Based Augment Test var randomMod = getRandomModifier(); + var randomBonuses = getRandomBonus(); const CircadianRhythm = new Augmentation({ name:AugmentationNames.CircadianRhythm, moneyCost: 1e12, repCost:450e3, info:"An prototype injection which modifies your circadian rhythm, leading to unexpected effects.

" + - "This augmentation increases or decreases a random skill by a random amount depending on install time.
" + - "Debug:" + randomMod + " by " + getRandomMultiplier(0.85, 1.5) + " " + Math.floor(Player.lastUpdate/3600000), - [randomMod]: getRandomMultiplier(0.85, 1.5), + "This augmentation increases or decreases a random skill by a random amount depending on install time.
" }); + + for (let i = 0; i < randomBonuses.length; i++) { + console.log(`${randomBonuses[i]}`); + CircadianRhythm.mults[randomBonuses[i][0]] = randomBonuses[i][1]; + } + + console.log(CircadianRhythm.mults); + CircadianRhythm.addToFactions(["Speakers for the Dead"]); if (augmentationExists(AugmentationNames.CircadianRhythm)) { delete Augmentations[AugmentationNames.CircadianRhythm]; From 17315733a7340a5a7fb3cc511b014cfee7c671bb Mon Sep 17 00:00:00 2001 From: Tesseract1234567890 Date: Thu, 3 Jun 2021 16:17:34 -0400 Subject: [PATCH 15/20] deleted unnecessary functions --- src/Augmentation/AugmentationHelpers.jsx | 37 ------------------------ 1 file changed, 37 deletions(-) diff --git a/src/Augmentation/AugmentationHelpers.jsx b/src/Augmentation/AugmentationHelpers.jsx index bdced65ab..a75541f0b 100644 --- a/src/Augmentation/AugmentationHelpers.jsx +++ b/src/Augmentation/AugmentationHelpers.jsx @@ -28,42 +28,6 @@ function AddToAugmentations(aug) { Augmentations[name] = aug; } -function getRandomMultiplier(min, max) { - let randomNumber = (new WHRNG(Math.floor(Player.lastUpdate/3600000))); - randomNumber.step(); - return (min + (max - min) * (randomNumber.random())); -} - -function getRandomModifier() { - var multiplierTypes = - ["hacking_chance_mult", - "hacking_speed_mult", - "hacking_money_mult", - "hacking_grow_mult", - "hacking_mult", - "strength_mult", - "defense_mult", - "dexterity_mult", - "agility_mult", - "charisma_mult", - "hacking_exp_mult", - "strength_exp_mult", - "defense_exp_mult", - "dexterity_exp_mult", - "agility_exp_mult", - "charisma_exp_mult", - "company_rep_mult", - "faction_rep_mult", - "crime_money_mult", - "crime_success_mult", - "work_money_mult"]; - - let randomNumber = (new WHRNG(Math.floor(Player.lastUpdate/3600000))); - - randomNumber.step(); - return (multiplierTypes[Math.floor(multiplierTypes.length * randomNumber.random())]); -} - function getRandomBonus() { var bonuses = [ @@ -130,7 +94,6 @@ function initAugmentations() { clearObject(Augmentations); //Time-Based Augment Test - var randomMod = getRandomModifier(); var randomBonuses = getRandomBonus(); const CircadianRhythm = new Augmentation({ From 1427a0f1ae431604c59af13351bf89230b807f69 Mon Sep 17 00:00:00 2001 From: Tesseract1234567890 Date: Thu, 3 Jun 2021 16:20:35 -0400 Subject: [PATCH 16/20] Modified RNG gen for testing --- src/Augmentation/AugmentationHelpers.jsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/Augmentation/AugmentationHelpers.jsx b/src/Augmentation/AugmentationHelpers.jsx index a75541f0b..d125d4a1d 100644 --- a/src/Augmentation/AugmentationHelpers.jsx +++ b/src/Augmentation/AugmentationHelpers.jsx @@ -77,9 +77,12 @@ function getRandomBonus() { ] - let randomNumber = (new WHRNG(Math.floor(Player.lastUpdate/360))); + let randomNumber = (new WHRNG(Math.floor(Player.lastUpdate/36))); + + for(let i = 0; i < 3; i++){ + randomNumber.step(); + } - randomNumber.step(); return (bonuses[Math.floor(bonuses.length * randomNumber.random())]); } From e320a8339a8d45e102766f86bd142e125496d17e Mon Sep 17 00:00:00 2001 From: Tesseract1234567890 Date: Thu, 3 Jun 2021 16:23:09 -0400 Subject: [PATCH 17/20] added extended info to augment --- src/Augmentation/AugmentationHelpers.jsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/Augmentation/AugmentationHelpers.jsx b/src/Augmentation/AugmentationHelpers.jsx index d125d4a1d..d9ae50add 100644 --- a/src/Augmentation/AugmentationHelpers.jsx +++ b/src/Augmentation/AugmentationHelpers.jsx @@ -102,15 +102,18 @@ function initAugmentations() { const CircadianRhythm = new Augmentation({ name:AugmentationNames.CircadianRhythm, moneyCost: 1e12, repCost:450e3, info:"An prototype injection which modifies your circadian rhythm, leading to unexpected effects.

" + - "This augmentation increases or decreases a random skill by a random amount depending on install time.
" + "This augmentation currently modifies these values:
" }); + for (let i = 0; i < randomBonuses.length; i++) { console.log(`${randomBonuses[i]}`); CircadianRhythm.mults[randomBonuses[i][0]] = randomBonuses[i][1]; + CircadianRhythm.info += `${randomBonuses[i][0]} by ${Math.round(100 * randomBonuses[i][1].toFixed(2))}%
` } - console.log(CircadianRhythm.mults); + + console.log(CircadianRhythm.info); CircadianRhythm.addToFactions(["Speakers for the Dead"]); if (augmentationExists(AugmentationNames.CircadianRhythm)) { From c793a076dbd7bee5d092a8f6f9de9b6261df247c Mon Sep 17 00:00:00 2001 From: Tesseract1234567890 Date: Thu, 3 Jun 2021 16:30:06 -0400 Subject: [PATCH 18/20] Changed price and rep. cost of augment --- src/Augmentation/AugmentationHelpers.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Augmentation/AugmentationHelpers.jsx b/src/Augmentation/AugmentationHelpers.jsx index d9ae50add..489d1ac90 100644 --- a/src/Augmentation/AugmentationHelpers.jsx +++ b/src/Augmentation/AugmentationHelpers.jsx @@ -100,7 +100,7 @@ function initAugmentations() { var randomBonuses = getRandomBonus(); const CircadianRhythm = new Augmentation({ - name:AugmentationNames.CircadianRhythm, moneyCost: 1e12, repCost:450e3, + name:AugmentationNames.CircadianRhythm, moneyCost: 1e9, repCost:4.5e3, info:"An prototype injection which modifies your circadian rhythm, leading to unexpected effects.

" + "This augmentation currently modifies these values:
" }); From 8259c1a5b96c8e2f3e1fb2d5eb98191e3e966e9a Mon Sep 17 00:00:00 2001 From: Tesseract1234567890 Date: Thu, 3 Jun 2021 16:54:43 -0400 Subject: [PATCH 19/20] Reset RNG to reload every hour --- src/Augmentation/AugmentationHelpers.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Augmentation/AugmentationHelpers.jsx b/src/Augmentation/AugmentationHelpers.jsx index 489d1ac90..784962004 100644 --- a/src/Augmentation/AugmentationHelpers.jsx +++ b/src/Augmentation/AugmentationHelpers.jsx @@ -77,7 +77,7 @@ function getRandomBonus() { ] - let randomNumber = (new WHRNG(Math.floor(Player.lastUpdate/36))); + let randomNumber = (new WHRNG(Math.floor(Player.lastUpdate/3600000))); for(let i = 0; i < 3; i++){ randomNumber.step(); From 49cc25479e87fabc1c555af1115d45cf90558901 Mon Sep 17 00:00:00 2001 From: Tesseract1234567890 Date: Fri, 4 Jun 2021 08:55:06 -0400 Subject: [PATCH 20/20] Modified flavortext --- src/Augmentation/AugmentationHelpers.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Augmentation/AugmentationHelpers.jsx b/src/Augmentation/AugmentationHelpers.jsx index 784962004..aceb384d6 100644 --- a/src/Augmentation/AugmentationHelpers.jsx +++ b/src/Augmentation/AugmentationHelpers.jsx @@ -101,7 +101,7 @@ function initAugmentations() { const CircadianRhythm = new Augmentation({ name:AugmentationNames.CircadianRhythm, moneyCost: 1e9, repCost:4.5e3, - info:"An prototype injection which modifies your circadian rhythm, leading to unexpected effects.

" + + info:"A prototype injection which modifies your circadian rhythm, leading to varied effects.

" + "This augmentation currently modifies these values:
" });