From e377abeb6c4f0187b37d2b46adee2aa3c9a58e79 Mon Sep 17 00:00:00 2001 From: Jay Malhotra <5047192+SapiensAnatis@users.noreply.github.com> Date: Mon, 26 Aug 2024 03:24:06 +0100 Subject: [PATCH] Fix smithywyrm cost (#1042) The cost of the final smithywyrm has always been incorrect at 750. The wiki confirms it is 700. This has started to cause errors in the logs about failed payments now that diamantium is available and wyrmite is limited. --- DragaliaAPI/DragaliaAPI.Test/Features/Fort/FortServiceTest.cs | 2 +- DragaliaAPI/DragaliaAPI/Features/Fort/FortService.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/DragaliaAPI/DragaliaAPI.Test/Features/Fort/FortServiceTest.cs b/DragaliaAPI/DragaliaAPI.Test/Features/Fort/FortServiceTest.cs index 7b193d831..4265f1fa6 100644 --- a/DragaliaAPI/DragaliaAPI.Test/Features/Fort/FortServiceTest.cs +++ b/DragaliaAPI/DragaliaAPI.Test/Features/Fort/FortServiceTest.cs @@ -157,7 +157,7 @@ public async Task GetBuildList_ReturnsBuildList() [Theory] [InlineData(2, 250)] [InlineData(3, 400)] - [InlineData(4, 750)] + [InlineData(4, 700)] public async Task AddCarpenter_Success_AddsCarpenterWithExpectedCost( int existingCarpenters, int expectedCost diff --git a/DragaliaAPI/DragaliaAPI/Features/Fort/FortService.cs b/DragaliaAPI/DragaliaAPI/Features/Fort/FortService.cs index d9671095a..b7be4ef6f 100644 --- a/DragaliaAPI/DragaliaAPI/Features/Fort/FortService.cs +++ b/DragaliaAPI/DragaliaAPI/Features/Fort/FortService.cs @@ -53,7 +53,7 @@ public async Task AddCarpenter(PaymentTypes paymentType) < 2 => 0, 2 => 250, 3 => 400, - 4 => 750, + 4 => 700, _ => throw new DragaliaException( ResultCode.FortExtendCarpenterLimit,