fix: additional checks in bounty rewards #1626
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "AMelonInsideLemon/SpaceNinjaServer:check-locationTag"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #1623
I don't see what this is good for. Plus, this doesn't seem remotely related to the linked issue.
I added it to my server and it fixes the issue I had described in #1623.
Well, that's probably because of the
&& locationTag
condition, but the rest of this PR...Yeah, lets keep
TypeError: Cannot read properties of undefined (reading 'length') while processing /api/missionInventoryUpdate.php request
TypeError: Cannot read properties of undefined (reading '0') while processing /api/missionInventoryUpdate.php request
instead of the more readable error
@ -1000,2 +1000,2 @@
rewardManifests.push(job.rewards);
rotations.push(ExportRewards[job.rewards].length - 1);
if (ExportRewards[job.rewards]) {
rewardManifests.push(job.rewards);
Sorry, this line just confuses the fuck out of me. Why are you doing
rewardManifests.push(job.rewards);
when just a few lines earlier you haverewardManifests = [job.rewards];
? Surely this is not intentional?When player doesn't fail any bonus objective
Q
stays true, and if this is lastJobStage
then we should giveadditional
reward for thatJobStage
. That why there is push