feat: daily tribute #1241
@ -22,6 +22,9 @@ export const loginRewardsSelectionController: RequestHandler = async (req, res)
|
||||
StoreItemType: body.ChosenReward
|
||||
};
|
||||
inventoryChanges = (await handleStoreItemAcquisition(body.ChosenReward, inventory)).InventoryChanges;
|
||||
if (!evergreenRewards.find(x => x == body.ChosenReward)) {
|
||||
inventory.LoginMilestoneRewards.push(body.ChosenReward);
|
||||
}
|
||||
} else {
|
||||
const randomRewards = getRandomLoginRewards(account, inventory);
|
||||
chosenReward = randomRewards.find(x => x.StoreItemType == body.ChosenReward)!;
|
||||
@ -40,3 +43,15 @@ interface ILoginRewardsSelectionRequest {
|
||||
ChosenReward: string;
|
||||
IsMilestoneReward: boolean;
|
||||
}
|
||||
|
||||
const evergreenRewards = [
|
||||
"/Lotus/Types/StoreItems/Packages/EvergreenTripleForma",
|
||||
"/Lotus/Types/StoreItems/Packages/EvergreenTripleRifleRiven",
|
||||
"/Lotus/Types/StoreItems/Packages/EvergreenTripleMeleeRiven",
|
||||
"/Lotus/Types/StoreItems/Packages/EvergreenTripleSecondaryRiven",
|
||||
"/Lotus/Types/StoreItems/Packages/EvergreenWeaponSlots",
|
||||
"/Lotus/Types/StoreItems/Packages/EvergreenKuva",
|
||||
"/Lotus/Types/StoreItems/Packages/EvergreenBoosters",
|
||||
"/Lotus/Types/StoreItems/Packages/EvergreenEndo",
|
||||
"/Lotus/Types/StoreItems/Packages/EvergreenExilus"
|
||||
];
|
||||
|
@ -1366,7 +1366,7 @@ const inventorySchema = new Schema<IInventoryDatabase, InventoryDocumentProps>(
|
||||
ThemeSounds: String,
|
||||
|
||||
//Daily LoginRewards
|
||||
LoginMilestoneRewards: [String],
|
||||
LoginMilestoneRewards: { type: [String], default: [] },
|
||||
|
||||
//You first Dialog with NPC or use new Item
|
||||
NodeIntrosCompleted: [String],
|
||||
|
Loading…
x
Reference in New Issue
Block a user