mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-22 15:43:49 +01:00
Merge pull request #2764 from zeddrak/patch-1
HacknetServer Grow/Weaken error messages
This commit is contained in:
commit
64662df91e
@ -143,7 +143,7 @@ export class Terminal implements ITerminal {
|
||||
startGrow(player: IPlayer): void {
|
||||
const server = player.getCurrentServer();
|
||||
if (server instanceof HacknetServer) {
|
||||
this.error("Cannot hack this kind of server");
|
||||
this.error("Cannot grow this kind of server");
|
||||
return;
|
||||
}
|
||||
if (!(server instanceof Server)) throw new Error("server should be normal server");
|
||||
@ -152,7 +152,7 @@ export class Terminal implements ITerminal {
|
||||
startWeaken(player: IPlayer): void {
|
||||
const server = player.getCurrentServer();
|
||||
if (server instanceof HacknetServer) {
|
||||
this.error("Cannot hack this kind of server");
|
||||
this.error("Cannot weaken this kind of server");
|
||||
return;
|
||||
}
|
||||
if (!(server instanceof Server)) throw new Error("server should be normal server");
|
||||
@ -241,7 +241,7 @@ export class Terminal implements ITerminal {
|
||||
if (cancelled) return;
|
||||
|
||||
if (server instanceof HacknetServer) {
|
||||
this.error("Cannot hack this kind of server");
|
||||
this.error("Cannot grow this kind of server");
|
||||
return;
|
||||
}
|
||||
if (!(server instanceof Server)) throw new Error("server should be normal server");
|
||||
@ -268,7 +268,7 @@ export class Terminal implements ITerminal {
|
||||
if (cancelled) return;
|
||||
|
||||
if (server instanceof HacknetServer) {
|
||||
this.error("Cannot hack this kind of server");
|
||||
this.error("Cannot weaken this kind of server");
|
||||
return;
|
||||
}
|
||||
if (!(server instanceof Server)) throw new Error("server should be normal server");
|
||||
|
Loading…
Reference in New Issue
Block a user