convert company work to new work system

This commit is contained in:
Olivier Gagnon
2022-07-12 22:43:03 -04:00
parent 2d73f546b0
commit 598e47766e
14 changed files with 233 additions and 140 deletions
-2
View File
@@ -128,14 +128,12 @@ export const isClassWork = (w: Work | null): w is ClassWork => w !== null && w.t
export class ClassWork extends Work {
classType: ClassType;
location: LocationName;
cyclesWorked: number;
earnings = newWorkStats();
constructor(params?: ClassWorkParams) {
super(WorkType.CLASS, params?.singularity ?? true);
this.classType = params?.classType ?? ClassType.StudyComputerScience;
this.location = params?.location ?? LocationName.Sector12RothmanUniversity;
this.cyclesWorked = 0;
}
isGym(): boolean {