mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-29 04:17:05 +02:00
convert company work to new work system
This commit is contained in:
@@ -29,13 +29,11 @@ export const isFactionWork = (w: Work | null): w is FactionWork => w !== null &&
|
||||
export class FactionWork extends Work {
|
||||
factionWorkType: FactionWorkType;
|
||||
factionName: string;
|
||||
cyclesWorked: number;
|
||||
|
||||
constructor(params?: FactionWorkParams) {
|
||||
super(WorkType.FACTION, params?.singularity ?? true);
|
||||
this.factionWorkType = params?.factionWorkType ?? FactionWorkType.HACKING;
|
||||
this.factionName = params?.faction ?? FactionNames.Sector12;
|
||||
this.cyclesWorked = 0;
|
||||
}
|
||||
|
||||
getFaction(): Faction {
|
||||
|
||||
Reference in New Issue
Block a user