Skip to content

Commit

Permalink
Fix issues with score missions (#320)
Browse files Browse the repository at this point in the history
  • Loading branch information
LukeFZ authored Jul 25, 2023
1 parent 44a089c commit 81e9c27
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ int BaseScore10
{
public readonly int[] Scores =
{
0,
BaseScore1,
BaseScore2,
BaseScore3,
Expand Down
3 changes: 1 addition & 2 deletions DragaliaAPI/Features/Dungeon/QuestCompletionService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 81e9c27

Please sign in to comment.