From 46873e3d459bb55908a317d0bfa631760304ea6d Mon Sep 17 00:00:00 2001 From: zzhhaa Date: Wed, 27 Nov 2024 16:58:25 +0100 Subject: [PATCH] feat: make calculateDepreciatedBuildPrice() method public --- app/models/Property.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/Property.ts b/app/models/Property.ts index d8fe7d1d..6476a180 100644 --- a/app/models/Property.ts +++ b/app/models/Property.ts @@ -84,7 +84,7 @@ export class Property { return newBuildPrice; } - private calculateDepreciatedBuildPrice() { + public calculateDepreciatedBuildPrice() { if (this.age === 0) return this.newBuildPrice; // If newbuild, return newBuildPrice and don't depreciate let depreciatedBuildPrice = 0;