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
-3
View File
@@ -18,14 +18,11 @@ interface CreateProgramWorkParams {
export class CreateProgramWork extends Work {
programName: string;
// amount of cycles spent doing this task
cyclesWorked: number;
// amount of effective work completed on the program (time boosted by skills).
unitCompleted: number;
constructor(params?: CreateProgramWorkParams) {
super(WorkType.CREATE_PROGRAM, params?.singularity ?? true);
this.cyclesWorked = 0;
this.unitCompleted = 0;
this.programName = params?.programName ?? "";