Compare commits
11 Commits
9da1f58433
...
d69fd5d83f
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d69fd5d83f | ||
|
|
48790be49b | ||
|
|
12db09ade1 | ||
|
|
3944e551c8 | ||
|
|
478b6a22f9 | ||
|
|
c614e33f39 | ||
|
|
54cb82a17c | ||
|
|
03ba05313b | ||
|
|
ff625ab8c0 | ||
|
|
62c48c4e76 | ||
|
|
091e7c00b9 |
@ -95,16 +95,6 @@ export const missionInventoryUpdateController: RequestHandler = async (req, res)
|
||||
ConquestCompletedMissionsCount
|
||||
} = await addMissionRewards(account, inventory, missionReport, firstCompletion);
|
||||
|
||||
const extraMissionRewards = inventory.extraMissionRewards ?? 0;
|
||||
if (extraMissionRewards >= 1) {
|
||||
for (let i = 0; i < extraMissionRewards; i++) {
|
||||
const rngMissionReport = missionReport;
|
||||
rngMissionReport.RewardInfo!.rewardSeed = generateRewardSeed();
|
||||
logger.debug("extra mission rewards with new seed, this might mismatch the mission report.");
|
||||
await addMissionRewards(account, inventory, rngMissionReport, firstCompletion);
|
||||
}
|
||||
}
|
||||
|
||||
if (missionReport.EndOfMatchUpload) {
|
||||
inventory.RewardSeed = generateRewardSeed();
|
||||
}
|
||||
|
||||
@ -1475,7 +1475,6 @@ const inventorySchema = new Schema<IInventoryDatabase, InventoryDocumentProps>(
|
||||
playerSkillGainsMultiplierSpace: Number,
|
||||
playerSkillGainsMultiplierDrifter: Number,
|
||||
extraRelicRewards: Number,
|
||||
crackRelicForPlatinum: Boolean,
|
||||
relicPlatinumCommon: Number,
|
||||
relicPlatinumUncommon: Number,
|
||||
relicPlatinumRare: Number,
|
||||
|
||||
@ -1346,10 +1346,6 @@ export const addStanding = (
|
||||
let syndicate = inventory.Affiliations.find(x => x.Tag == syndicateTag);
|
||||
const syndicateMeta = ExportSyndicates[syndicateTag];
|
||||
|
||||
if (inventory.gainNoNegativeSyndicateStanding) {
|
||||
gainedStanding = Math.max(gainedStanding, 0);
|
||||
}
|
||||
|
||||
if (!syndicate) {
|
||||
syndicate =
|
||||
inventory.Affiliations[inventory.Affiliations.push({ Tag: syndicateTag, Standing: 0, Title: 0 }) - 1];
|
||||
@ -2186,6 +2182,9 @@ export const updateSyndicate = (
|
||||
syndicateUpdate?.forEach(affiliation => {
|
||||
const syndicate = inventory.Affiliations.find(x => x.Tag == affiliation.Tag);
|
||||
if (syndicate !== undefined) {
|
||||
if (inventory.gainNoNegativeSyndicateStanding) {
|
||||
affiliation.Standing = Math.max(0, affiliation.Standing);
|
||||
}
|
||||
syndicate.Standing += affiliation.Standing;
|
||||
syndicate.Title = syndicate.Title === undefined ? affiliation.Title : syndicate.Title + affiliation.Title;
|
||||
} else {
|
||||
|
||||
@ -1173,6 +1173,22 @@ export const addMissionRewards = async (
|
||||
firstCompletion
|
||||
);
|
||||
logger.debug("random mission drops:", MissionRewards);
|
||||
|
||||
const extraMissionRewards = inventory.extraMissionRewards ?? 0;
|
||||
if (extraMissionRewards >= 1) {
|
||||
for (let i = 0; i < extraMissionRewards; i++) {
|
||||
logger.debug("generating extra mission rewards with new seed, this will mismatch the mission report.");
|
||||
const extraDrops = getRandomMissionDrops(
|
||||
inventory,
|
||||
{ ...rewardInfo, rewardSeed: generateRewardSeed() },
|
||||
missions,
|
||||
wagerTier,
|
||||
firstCompletion
|
||||
);
|
||||
MissionRewards.push(...extraDrops);
|
||||
}
|
||||
}
|
||||
|
||||
const inventoryChanges: IInventoryChanges = {};
|
||||
let SyndicateXPItemReward;
|
||||
let ConquestCompletedMissionsCount;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user