feat: daily tribute #1241

Merged
Sainan merged 3 commits from daily-tribute into main 2025-03-21 05:19:42 -07:00
Showing only changes of commit d90ba6d309 - Show all commits

View File

@ -46,7 +46,7 @@ const scaleAmount = (day: number, amount: number, scalingMultiplier: number): nu
return amount + Math.min(day, 3000) / divisor; return amount + Math.min(day, 3000) / divisor;
}; };
// Always produces the same result if used the same account and day. // Always produces the same result for the same account _id & LoginDays pair.
export const getRandomLoginRewards = ( export const getRandomLoginRewards = (
account: TAccountDocument, account: TAccountDocument,
inventory: TInventoryDatabaseDocument inventory: TInventoryDatabaseDocument