fix sleeve memory bug

This commit is contained in:
Olivier Gagnon
2021-09-08 23:47:34 -04:00
parent bada8a5f39
commit 2a13db39c7
360 changed files with 5424 additions and 15764 deletions
+2 -7
View File
@@ -59,8 +59,7 @@ function listAllDarkwebItems(): void {
const item = DarkWebItems[key];
postElement(
<>
{item.program} - <Money money={item.price} player={Player} /> -{" "}
{item.description}
{item.program} - <Money money={item.price} player={Player} /> - {item.description}
</>,
);
}
@@ -99,9 +98,5 @@ function buyDarkwebItem(itemName: string): void {
// buy and push
Player.loseMoney(item.price);
Player.getHomeComputer().programs.push(item.program);
post(
"You have purchased the " +
item.program +
" program. The new program can be found on your home computer.",
);
post("You have purchased the " + item.program + " program. The new program can be found on your home computer.");
}
+8 -40
View File
@@ -3,46 +3,14 @@ import { IMap } from "../types";
import { Programs } from "../Programs/Programs";
export const DarkWebItems: IMap<DarkWebItem> = {
BruteSSHProgram: new DarkWebItem(
Programs.BruteSSHProgram.name,
500e3,
"Opens up SSH Ports",
),
FTPCrackProgram: new DarkWebItem(
Programs.FTPCrackProgram.name,
1500e3,
"Opens up FTP Ports",
),
RelaySMTPProgram: new DarkWebItem(
Programs.RelaySMTPProgram.name,
5e6,
"Opens up SMTP Ports",
),
HTTPWormProgram: new DarkWebItem(
Programs.HTTPWormProgram.name,
30e6,
"Opens up HTTP Ports",
),
SQLInjectProgram: new DarkWebItem(
Programs.SQLInjectProgram.name,
250e6,
"Opens up SQL Ports",
),
DeepscanV1: new DarkWebItem(
Programs.DeepscanV1.name,
500000,
"Enables 'scan-analyze' with a depth up to 5",
),
DeepscanV2: new DarkWebItem(
Programs.DeepscanV2.name,
25e6,
"Enables 'scan-analyze' with a depth up to 10",
),
AutolinkProgram: new DarkWebItem(
Programs.AutoLink.name,
1e6,
"Enables direct connect via 'scan-analyze'",
),
BruteSSHProgram: new DarkWebItem(Programs.BruteSSHProgram.name, 500e3, "Opens up SSH Ports"),
FTPCrackProgram: new DarkWebItem(Programs.FTPCrackProgram.name, 1500e3, "Opens up FTP Ports"),
RelaySMTPProgram: new DarkWebItem(Programs.RelaySMTPProgram.name, 5e6, "Opens up SMTP Ports"),
HTTPWormProgram: new DarkWebItem(Programs.HTTPWormProgram.name, 30e6, "Opens up HTTP Ports"),
SQLInjectProgram: new DarkWebItem(Programs.SQLInjectProgram.name, 250e6, "Opens up SQL Ports"),
DeepscanV1: new DarkWebItem(Programs.DeepscanV1.name, 500000, "Enables 'scan-analyze' with a depth up to 5"),
DeepscanV2: new DarkWebItem(Programs.DeepscanV2.name, 25e6, "Enables 'scan-analyze' with a depth up to 10"),
AutolinkProgram: new DarkWebItem(Programs.AutoLink.name, 1e6, "Enables direct connect via 'scan-analyze'"),
ServerProfilerProgram: new DarkWebItem(
Programs.ServerProfiler.name,
1e6,