mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-27 16:37:33 +01:00
more fixes
This commit is contained in:
parent
f17870926b
commit
b941753e1b
@ -349,13 +349,13 @@ export const FactionInfos: IMap<FactionInfo> = {
|
||||
{" ; d' o `b ; "}<br />
|
||||
{" / d; `b| "}<br />
|
||||
{" /, $; @ `: "}<br />
|
||||
{" /' $$ ; "}<br />
|
||||
{" .' $$b o | "}<br />
|
||||
{" .' d$$$; : "}<br />
|
||||
{" / .d$$$$; , ; "}<br />
|
||||
{" /' $/ ; "}<br />
|
||||
{" .' $/b o | "}<br />
|
||||
{" .' d$/$; : "}<br />
|
||||
{" / .d/$/$; , ; "}<br />
|
||||
{" d .dNITESEC $ | "}<br />
|
||||
{" :bp.__.gNITESEC$$ :$ ; "}<br />
|
||||
{" NITESECNITESECNIT $$b : "}<br /></>,
|
||||
{" :bp.__.gNITESEC/$ :$ ; "}<br />
|
||||
{" NITESECNITESECNIT /$b : "}<br /></>,
|
||||
[],
|
||||
true,
|
||||
true,
|
||||
|
@ -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");
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user