diff --git a/src/Faction/FactionInfo.tsx b/src/Faction/FactionInfo.tsx index 1e97db336..25493c7f8 100644 --- a/src/Faction/FactionInfo.tsx +++ b/src/Faction/FactionInfo.tsx @@ -349,13 +349,13 @@ export const FactionInfos: IMap = { {" ; d' o `b ; "}
{" / d; `b| "}
{" /, $; @ `: "}
-{" /' $$ ; "}
-{" .' $$b o | "}
-{" .' d$$$; : "}
-{" / .d$$$$; , ; "}
+{" /' $/ ; "}
+{" .' $/b o | "}
+{" .' d$/$; : "}
+{" / .d/$/$; , ; "}
{" d .dNITESEC $ | "}
-{" :bp.__.gNITESEC$$ :$ ; "}
-{" NITESECNITESECNIT $$b : "}
, +{" :bp.__.gNITESEC/$ :$ ; "}
+{" NITESECNITESECNIT /$b : "}
, [], true, true, diff --git a/src/Hacknet/HacknetHelpers.tsx b/src/Hacknet/HacknetHelpers.tsx index 4ff3d2a10..2e4a29354 100644 --- a/src/Hacknet/HacknetHelpers.tsx +++ b/src/Hacknet/HacknetHelpers.tsx @@ -47,7 +47,7 @@ export function purchaseHacknet(player: IPlayer): number { throw new Error(`Calculated cost of purchasing HacknetServer is NaN`); } - if (!player.canAfford(cost)) { + if (!player.canAfford(cost) || numOwned >= HacknetServerConstants.MaxServers) { return -1; } player.loseMoney(cost, "hacknet_expenses"); diff --git a/src/Netscript/RecentScripts.ts b/src/Netscript/RecentScripts.ts index 6ec53d82d..02e584b0d 100644 --- a/src/Netscript/RecentScripts.ts +++ b/src/Netscript/RecentScripts.ts @@ -5,7 +5,7 @@ export const recentScripts: RecentScript[] = []; export function AddRecentScript(workerScript: WorkerScript): void { if (recentScripts.find((r) => r.pid === workerScript.pid)) return; - recentScripts.push({ + recentScripts.unshift({ filename: workerScript.name, args: workerScript.args, pid: workerScript.pid,