From 81e9c27e866ef164c2749157b406f46cf1bdfb79 Mon Sep 17 00:00:00 2001 From: Luke <17146677+LukeFZ@users.noreply.github.com> Date: Tue, 25 Jul 2023 21:55:11 +0200 Subject: [PATCH] Fix issues with score missions (#320) --- .../MasterAsset/Models/QuestRewards/QuestScoreMissionData.cs | 1 + DragaliaAPI/Features/Dungeon/QuestCompletionService.cs | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/DragaliaAPI.Shared/MasterAsset/Models/QuestRewards/QuestScoreMissionData.cs b/DragaliaAPI.Shared/MasterAsset/Models/QuestRewards/QuestScoreMissionData.cs index 93bd8bfc9..960d448bd 100644 --- a/DragaliaAPI.Shared/MasterAsset/Models/QuestRewards/QuestScoreMissionData.cs +++ b/DragaliaAPI.Shared/MasterAsset/Models/QuestRewards/QuestScoreMissionData.cs @@ -16,6 +16,7 @@ int BaseScore10 { public readonly int[] Scores = { + 0, BaseScore1, BaseScore2, BaseScore3, diff --git a/DragaliaAPI/Features/Dungeon/QuestCompletionService.cs b/DragaliaAPI/Features/Dungeon/QuestCompletionService.cs index 04700aa45..cdaf71a2b 100644 --- a/DragaliaAPI/Features/Dungeon/QuestCompletionService.cs +++ b/DragaliaAPI/Features/Dungeon/QuestCompletionService.cs @@ -180,8 +180,7 @@ DungeonSession session QuestCompleteType.WeaponRequired => party.All(x => x.equip_weapon_body_id == (WeaponBodies)completionValue), QuestCompleteType.MaxTraps => record.trap_count <= completionValue, - QuestCompleteType.MaxAfflicted - => record.damage_record.Count(x => x.enchant != 0) <= completionValue, + QuestCompleteType.MaxAfflicted => record.bad_status <= completionValue, QuestCompleteType.TreasureChestCount => record.treasure_record.Count() >= completionValue, QuestCompleteType.AllTreasureChestsOpened => true, // TODO