Sleeve work type changes (#412)

This commit is contained in:
Snarling
2023-03-07 18:03:13 -05:00
committed by GitHub
parent 51bf0d1904
commit 401bfe9f31
13 changed files with 142 additions and 226 deletions
@@ -7,9 +7,7 @@ export const isSleeveRecoveryWork = (w: Work | null): w is SleeveRecoveryWork =>
w !== null && w.type === WorkType.RECOVERY;
export class SleeveRecoveryWork extends Work {
constructor() {
super(WorkType.RECOVERY);
}
type: WorkType.RECOVERY = WorkType.RECOVERY;
process(sleeve: Sleeve, cycles: number) {
sleeve.shock = Math.max(