Finished rudimentary filesystem implementation for Terminal

This commit is contained in:
danielyxie
2019-04-09 23:07:12 -07:00
parent 3241945452
commit 3ce2e83dd8
15 changed files with 1232 additions and 690 deletions
+8 -8
View File
@@ -136,14 +136,6 @@ export class Server extends BaseServer {
this.minDifficulty = Math.max(1, this.minDifficulty);
}
/**
* Strengthens a server's security level (difficulty) by the specified amount
*/
fortify(amt: number): void {
this.hackDifficulty += amt;
this.capDifficulty();
}
/**
* Change this server's maximum money
* @param n - Value by which to change the server's maximum money
@@ -157,6 +149,14 @@ export class Server extends BaseServer {
}
}
/**
* Strengthens a server's security level (difficulty) by the specified amount
*/
fortify(amt: number): void {
this.hackDifficulty += amt;
this.capDifficulty();
}
/**
* Lowers the server's security level (difficulty) by the specified amount)
*/