fix: track FreeFavorsEarned when ranking up
This commit is contained in:
parent
d8845bc478
commit
8c5225886e
@ -50,6 +50,13 @@ export const syndicateSacrificeController: RequestHandler = async (request, resp
|
||||
syndicate.Title ??= 0;
|
||||
syndicate.Title += 1;
|
||||
|
||||
if (syndicate.Title > 0 && manifest.favours.length != 0) {
|
||||
syndicate.FreeFavorsEarned ??= [];
|
||||
if (!syndicate.FreeFavorsEarned.includes(syndicate.Title)) {
|
||||
syndicate.FreeFavorsEarned.push(syndicate.Title);
|
||||
}
|
||||
}
|
||||
|
||||
await inventory.save();
|
||||
|
||||
if (reward) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user