feat: conquest progression & rewards #1791
@ -789,7 +789,7 @@ export const addMissionRewards = async (
|
|||||||
inventory.EchoesHexConquestCacheScoreMission = score;
|
inventory.EchoesHexConquestCacheScoreMission = score;
|
||||||
} else {
|
} else {
|
||||||
inventory.EntratiLabConquestCacheScoreMission ??= 0;
|
inventory.EntratiLabConquestCacheScoreMission ??= 0;
|
||||||
|
if (score > inventory.EntratiLabConquestCacheScoreMission) {
|
||||||
for (const reward of labConquestRewards) {
|
for (const reward of labConquestRewards) {
|
||||||
if (score >= reward.at && inventory.EntratiLabConquestCacheScoreMission < reward.at) {
|
if (score >= reward.at && inventory.EntratiLabConquestCacheScoreMission < reward.at) {
|
||||||
const rolled = getRandomReward(reward.pool)!;
|
const rolled = getRandomReward(reward.pool)!;
|
||||||
@ -800,10 +800,9 @@ export const addMissionRewards = async (
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (score > inventory.EntratiLabConquestCacheScoreMission)
|
|
||||||
inventory.EntratiLabConquestCacheScoreMission = score;
|
inventory.EntratiLabConquestCacheScoreMission = score;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
ConquestCompletedMissionsCount = rewardInfo.ConquestCompleted == 2 ? 0 : rewardInfo.ConquestCompleted + 1;
|
ConquestCompletedMissionsCount = rewardInfo.ConquestCompleted == 2 ? 0 : rewardInfo.ConquestCompleted + 1;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user