diff --git a/src/Message/MessageHelpers.ts b/src/Message/MessageHelpers.ts
index f0f1dce80..688d31161 100644
--- a/src/Message/MessageHelpers.ts
+++ b/src/Message/MessageHelpers.ts
@@ -1,5 +1,4 @@
import { Message } from "./Message";
-import { Augmentations } from "../Augmentation/Augmentations";
import { AugmentationNames } from "../Augmentation/data/AugmentationNames";
import { Router } from "../ui/GameRoot";
import { Programs } from "../Programs/Programs";
@@ -63,18 +62,9 @@ function checkForMessagesToSend(): void {
const bitrunnersTest = Messages[MessageFilenames.BitRunnersTest];
const redpill = Messages[MessageFilenames.RedPill];
- let redpillOwned = false;
- if (Augmentations[AugmentationNames.TheRedPill].owned) {
- redpillOwned = true;
- }
-
- if (redpillOwned && Player.sourceFiles.length === 0 && Router.page() !== Page.BitVerse) {
- sendMessage(redpill, true);
- } else if (redpillOwned) {
- //If player has already destroyed a BitNode, message is not forced
- if (Router.page() !== Page.BitVerse) {
- sendMessage(redpill);
- }
+ if (Player.hasAugmentation(AugmentationNames.TheRedPill)) {
+ //Force the message if the player has never destroyed a BitNode
+ sendMessage(redpill, (Player.sourceFiles.length === 0));
} else if (!jumper0.recvd && Player.hacking >= 25) {
sendMessage(jumper0);
const flightName = Programs.Flight.name;
@@ -130,48 +120,48 @@ function initMessages(): void {
new Message(
MessageFilenames.Jumper0,
"I know you can sense it. I know you're searching for it. " +
- "It's why you spend night after " +
- "night at your computer.
It's real, I've seen it. And I can " +
- "help you find it. But not right now. You're not ready yet.
" +
- "Use this program to track your progress
" +
- "The fl1ght.exe program was added to your home computer
" +
- "-jump3R",
+ "It's why you spend night after " +
+ "night at your computer.
It's real, I've seen it. And I can " +
+ "help you find it. But not right now. You're not ready yet.
" +
+ "Use this program to track your progress
" +
+ "The fl1ght.exe program was added to your home computer
" +
+ "-jump3R",
),
);
AddToAllMessages(
new Message(
MessageFilenames.Jumper1,
`Soon you will be contacted by a hacking group known as ${FactionNames.NiteSec}. ` +
- "They can help you with your search.
" +
- "You should join them, garner their favor, and " +
- "exploit them for their Augmentations. But do not trust them. " +
- "They are not what they seem. No one is.
" +
- "-jump3R",
+ "They can help you with your search.
" +
+ "You should join them, garner their favor, and " +
+ "exploit them for their Augmentations. But do not trust them. " +
+ "They are not what they seem. No one is.
" +
+ "-jump3R",
),
);
AddToAllMessages(
new Message(
MessageFilenames.Jumper2,
"Do not try to save the world. There is no world to save. If " +
- "you want to find the truth, worry only about yourself. Ethics and " +
- `morals will get you killed.
Watch out for a hacking group known as ${FactionNames.NiteSec}.` +
- "
-jump3R",
+ "you want to find the truth, worry only about yourself. Ethics and " +
+ `morals will get you killed.
Watch out for a hacking group known as ${FactionNames.NiteSec}.` +
+ "
-jump3R",
),
);
AddToAllMessages(
new Message(
MessageFilenames.Jumper3,
"You must learn to walk before you can run. And you must " +
- `run before you can fly. Look for ${FactionNames.TheBlackHand}.
` +
- "I.I.I.I
-jump3R",
+ `run before you can fly. Look for ${FactionNames.TheBlackHand}.
` +
+ "I.I.I.I
-jump3R",
),
);
AddToAllMessages(
new Message(
MessageFilenames.Jumper4,
"To find what you are searching for, you must understand the bits. " +
- "The bits are all around us. The runners will help you.
" +
- "-jump3R",
+ "The bits are all around us. The runners will help you.
" +
+ "-jump3R",
),
);
@@ -180,31 +170,31 @@ function initMessages(): void {
new Message(
MessageFilenames.CyberSecTest,
"We've been watching you. Your skills are very impressive. But you're wasting " +
- "your talents. If you join us, you can put your skills to good use and change " +
- "the world for the better. If you join us, we can unlock your full potential.
" +
- "But first, you must pass our test. Find and install the backdoor on our server.
" +
- `-${FactionNames.CyberSec}`,
+ "your talents. If you join us, you can put your skills to good use and change " +
+ "the world for the better. If you join us, we can unlock your full potential.
" +
+ "But first, you must pass our test. Find and install the backdoor on our server.
" +
+ `-${FactionNames.CyberSec}`,
),
);
AddToAllMessages(
new Message(
MessageFilenames.NiteSecTest,
"People say that the corrupted governments and corporations rule the world. " +
- "Yes, maybe they do. But do you know who everyone really fears? People " +
- "like us. Because they can't hide from us. Because they can't fight shadows " +
- "and ideas with bullets.
" +
- "Join us, and people will fear you, too.
" +
- "Find and install the backdoor on our server. Then, we will contact you again." +
- `
-${FactionNames.NiteSec}`,
+ "Yes, maybe they do. But do you know who everyone really fears? People " +
+ "like us. Because they can't hide from us. Because they can't fight shadows " +
+ "and ideas with bullets.
" +
+ "Join us, and people will fear you, too.
" +
+ "Find and install the backdoor on our server. Then, we will contact you again." +
+ `
-${FactionNames.NiteSec}`,
),
);
AddToAllMessages(
new Message(
MessageFilenames.BitRunnersTest,
"We know what you are doing. We know what drives you. We know " +
- "what you are looking for.
" +
- "We can help you find the answers.
" +
- "run4theh111z",
+ "what you are looking for.
" +
+ "We can help you find the answers.
" +
+ "run4theh111z",
),
);
@@ -212,9 +202,9 @@ function initMessages(): void {
new Message(
MessageFilenames.RedPill,
"@)(#V%*N)@(#*)*C)@#%*)*V)@#(*%V@)(#VN%*)@#(*%
" +
- ")@B(*#%)@)M#B*%V)____FIND___#$@)#%(B*)@#(*%B)
" +
- "@_#(%_@#M(BDSPOMB__THE-CAVE_#)$(*@#$)@#BNBEGB
" +
- "DFLSMFVMV)#@($*)@#*$MV)@#(*$V)M#(*$)M@(#*VM$)",
+ ")@B(*#%)@)M#B*%V)____FIND___#$@)#%(B*)@#(*%B)
" +
+ "@_#(%_@#M(BDSPOMB__THE-CAVE_#)$(*@#$)@#BNBEGB
" +
+ "DFLSMFVMV)#@($*)@#*$MV)@#(*$V)M#(*$)M@(#*VM$)",
),
);
}