Weekly prizes: top three of the Monday-to-Sunday Central week with 10+ finds get 3/2/1 POL as due prize drips (never finds, never against the pool), awarded once on the first tick after Sunday; Top Hunter badge; /api/prizes + winners on /leaders; admin award-by-hand

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
martbost
2026-09-19 19:53:03 -05:00
parent 5025056446
commit 7b2f71f2f7
5 changed files with 80 additions and 7 deletions
+2 -1
View File
@@ -25,8 +25,9 @@ function draw(min, max) {
return Math.round(Math.max(min, Math.min(max, v)) * 10000) / 10000;
}
// prize drips (weekly prizes) are paid from the same wallet but never count against the daily pool
function paidToday(day) {
return store.read('payouts', []).filter(p => p.day === day && p.status !== 'failed').reduce((n, p) => n + p.pol, 0);
return store.read('payouts', []).filter(p => p.day === day && p.status !== 'failed' && !p.prize).reduce((n, p) => n + p.pol, 0);
}
// has this member completed this mission already?