fix a bunch of small v2 related bugs

This commit is contained in:
Olivier Gagnon
2022-07-26 08:08:51 -04:00
parent 5d2b81053d
commit faa3e212f3
11 changed files with 234 additions and 61 deletions
+2 -2
View File
@@ -27,8 +27,8 @@ export class GraftingWork extends Work {
super(WorkType.GRAFTING, params?.singularity ?? true);
this.unitCompleted = 0;
this.augmentation = params?.augmentation ?? AugmentationNames.Targeting1;
if (params?.player) params.player.loseMoney(GraftableAugmentations[this.augmentation].cost, "augmentations");
const gAugs = GraftableAugmentations();
if (params?.player) params.player.loseMoney(gAugs[this.augmentation].cost, "augmentations");
}
unitNeeded(): number {