mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-29 19:13:49 +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' o `b ; "}<br />
|
||||||
{" / d; `b| "}<br />
|
{" / d; `b| "}<br />
|
||||||
{" /, $; @ `: "}<br />
|
{" /, $; @ `: "}<br />
|
||||||
{" /' $$ ; "}<br />
|
{" /' $/ ; "}<br />
|
||||||
{" .' $$b o | "}<br />
|
{" .' $/b o | "}<br />
|
||||||
{" .' d$$$; : "}<br />
|
{" .' d$/$; : "}<br />
|
||||||
{" / .d$$$$; , ; "}<br />
|
{" / .d/$/$; , ; "}<br />
|
||||||
{" d .dNITESEC $ | "}<br />
|
{" d .dNITESEC $ | "}<br />
|
||||||
{" :bp.__.gNITESEC$$ :$ ; "}<br />
|
{" :bp.__.gNITESEC/$ :$ ; "}<br />
|
||||||
{" NITESECNITESECNIT $$b : "}<br /></>,
|
{" NITESECNITESECNIT /$b : "}<br /></>,
|
||||||
[],
|
[],
|
||||||
true,
|
true,
|
||||||
true,
|
true,
|
||||||
|
@ -47,7 +47,7 @@ export function purchaseHacknet(player: IPlayer): number {
|
|||||||
throw new Error(`Calculated cost of purchasing HacknetServer is NaN`);
|
throw new Error(`Calculated cost of purchasing HacknetServer is NaN`);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!player.canAfford(cost)) {
|
if (!player.canAfford(cost) || numOwned >= HacknetServerConstants.MaxServers) {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
player.loseMoney(cost, "hacknet_expenses");
|
player.loseMoney(cost, "hacknet_expenses");
|
||||||
|
@ -5,7 +5,7 @@ export const recentScripts: RecentScript[] = [];
|
|||||||
|
|
||||||
export function AddRecentScript(workerScript: WorkerScript): void {
|
export function AddRecentScript(workerScript: WorkerScript): void {
|
||||||
if (recentScripts.find((r) => r.pid === workerScript.pid)) return;
|
if (recentScripts.find((r) => r.pid === workerScript.pid)) return;
|
||||||
recentScripts.push({
|
recentScripts.unshift({
|
||||||
filename: workerScript.name,
|
filename: workerScript.name,
|
||||||
args: workerScript.args,
|
args: workerScript.args,
|
||||||
pid: workerScript.pid,
|
pid: workerScript.pid,
|
||||||
|
Loading…
Reference in New Issue
Block a user