Skip to content

Commit

Permalink
prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
bob0005 committed Jul 26, 2024
1 parent eb49a8e commit bf44827
Showing 1 changed file with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions client/src/hooks/helpers/useQuests.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -135,24 +135,24 @@ const useQuestDependencies = () => {
status: questClaimStatus[QuestId.BuildFarm]
? QuestStatus.Claimed
: buildingQuantities.farms > 0
? QuestStatus.Completed
: QuestStatus.InProgress,
? QuestStatus.Completed
: QuestStatus.InProgress,
},
[QuestId.BuildResource]: {
value: questClaimStatus[QuestId.BuildResource] ? null : buildingQuantities.resource,
status: questClaimStatus[QuestId.BuildResource]
? QuestStatus.Claimed
: buildingQuantities.resource > 0
? QuestStatus.Completed
: QuestStatus.InProgress,
? QuestStatus.Completed
: QuestStatus.InProgress,
},
[QuestId.CreateTrade]: {
value: questClaimStatus[QuestId.CreateTrade] ? null : orders.length,
status: questClaimStatus[QuestId.CreateTrade]
? QuestStatus.Claimed
: orders.length > 0
? QuestStatus.Completed
: QuestStatus.InProgress,
? QuestStatus.Completed
: QuestStatus.InProgress,
},
[QuestId.CreateArmy]: {
value: questClaimStatus[QuestId.CreateArmy]
Expand All @@ -161,64 +161,64 @@ const useQuestDependencies = () => {
status: questClaimStatus[QuestId.CreateArmy]
? QuestStatus.Claimed
: entityArmies.length > 0 && hasTroops
? QuestStatus.Completed
: QuestStatus.InProgress,
? QuestStatus.Completed
: QuestStatus.InProgress,
},
[QuestId.Travel]: {
value: questClaimStatus[QuestId.Travel] ? null : hasTraveled,
status: questClaimStatus[QuestId.Travel]
? QuestStatus.Claimed
: hasTraveled
? QuestStatus.Completed
: QuestStatus.InProgress,
? QuestStatus.Completed
: QuestStatus.InProgress,
},
[QuestId.BuildWorkersHut]: {
value: questClaimStatus[QuestId.BuildWorkersHut] ? null : buildingQuantities.workersHut,
status: questClaimStatus[QuestId.BuildWorkersHut]
? QuestStatus.Claimed
: buildingQuantities.workersHut > 0
? QuestStatus.Completed
: QuestStatus.InProgress,
? QuestStatus.Completed
: QuestStatus.InProgress,
},
[QuestId.Market]: {
value: questClaimStatus[QuestId.Market] ? null : buildingQuantities.markets,
status: questClaimStatus[QuestId.Market]
? QuestStatus.Claimed
: buildingQuantities.markets > 0
? QuestStatus.Completed
: QuestStatus.InProgress,
? QuestStatus.Completed
: QuestStatus.InProgress,
},
[QuestId.Pillage]: {
value: questClaimStatus[QuestId.Pillage] ? null : pillageHistoryLength,
status: questClaimStatus[QuestId.Pillage]
? QuestStatus.Claimed
: pillageHistoryLength > 0
? QuestStatus.Completed
: QuestStatus.InProgress,
? QuestStatus.Completed
: QuestStatus.InProgress,
},
[QuestId.Mine]: {
value: questClaimStatus[QuestId.Mine] ? null : fragmentMines,
status: questClaimStatus[QuestId.Mine]
? QuestStatus.Claimed
: fragmentMines > 0
? QuestStatus.Completed
: QuestStatus.InProgress,
? QuestStatus.Completed
: QuestStatus.InProgress,
},
[QuestId.Contribution]: {
value: questClaimStatus[QuestId.Contribution] ? null : hyperstructureContributions,
status: questClaimStatus[QuestId.Contribution]
? QuestStatus.Claimed
: hyperstructureContributions > 0
? QuestStatus.Completed
: QuestStatus.InProgress,
? QuestStatus.Completed
: QuestStatus.InProgress,
},
[QuestId.Hyperstructure]: {
value: questClaimStatus[QuestId.Hyperstructure] ? null : hyperstructures,
status: questClaimStatus[QuestId.Hyperstructure]
? QuestStatus.Claimed
: hyperstructures > 0
? QuestStatus.Completed
: QuestStatus.InProgress,
? QuestStatus.Completed
: QuestStatus.InProgress,
},
}),
[questClaimStatus, unclaimedQuestsCount > 0 ? entityUpdate : null, unclaimedQuestsCount > 0 ? orders : null],
Expand Down Expand Up @@ -311,4 +311,4 @@ const armyHasTraveled = (entityArmies: ArmyInfo[], realmPosition: { x: number; y
return entityArmies[0].position.x != realmPosition.x || entityArmies[0].position.y != realmPosition.y;
}
return false;
};
};

0 comments on commit bf44827

Please sign in to comment.