TYPESAFETY: FactionName (#644)

This commit is contained in:
Snarling
2023-06-25 22:53:35 -04:00
committed by GitHub
parent 1de676972f
commit 9a0a843ffc
31 changed files with 295 additions and 751 deletions
+3 -2
View File
@@ -23,9 +23,10 @@ import { GangMember } from "./GangMember";
import { WorkerScript } from "../Netscript/WorkerScript";
import { Player } from "@player";
import { PowerMultiplier } from "./data/power";
import { FactionName } from "@enums";
export class Gang {
facName: string;
facName: FactionName;
members: GangMember[];
wanted: number;
respect: number;
@@ -48,7 +49,7 @@ export class Gang {
notifyMemberDeath: boolean;
constructor(facName = "", hacking = false) {
constructor(facName = FactionName.SlumSnakes, hacking = false) {
this.facName = facName;
this.members = [];
this.wanted = 1;