Commit Graph

15 Commits

Author SHA1 Message Date
martbost b69086aaac Tiers (Marty 2026-11-02, every game must fund itself): guests earn nothing (a guest's chapters, drips and best follow them at sign-in, the POL does not; no more collected= payout on /auth), a free InstantAdPay account earns freeSharePct (25, admin) of the chapter drip with the note "Game Pass holders earn the full amount.", Game Pass holders earn the full drip plus the shield perk, GAMEPASS off = everyone full. /api/me carries tier, freeSharePct and yourDrip; landing, lobby, clear card, tester briefing and share preview say play free, sign in to earn a taste, Game Pass for the full table. Tests: guest 0 at sign-in, free 25%, pass 100%, gp off full, settings key.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-11-02 17:01:10 -06:00
martbost b70ecf6f75 Pay game POL to any signature-linked wallet, on chain or not (2026-10-27)
InstantAdPay now pushes a member's signature-linked wallet whether or not it is activated (memberId 0 when not on chain).
- POST /api/iap/wallet accepts memberId 0/missing: the wallet fills the email-keyed player (sso.emailId) and its account;
  a player with no account row yet gets one holding the wallet. Signature check, fill-empty-only (different wallet 409),
  same wallet no-op and 404 for an unknown player are unchanged; a real memberId still adopts the email history first.
- /auth: a hand-off wallet fills an EMPTY account wallet so POL earned so far pays on the next sweep (never replaces one).
- game.adopt carries the wallet when the target account has none.
- /api/me: me.hasWallet (own wallet on file, also when it arrived by the push after the session began).
- play.js: no-wallet players see "Link your wallet to receive this POL" (IAP /my#wallet, new tab) on the chapter-clear
  result, the lobby member line and the balance card (which also lost a line that always overwrote the waiting-POL note);
  players with a wallet see the same text as before. play.js?v=20261027lw.
- test/run.js: memberId 0 push -> 200 changed:true -> sweep pays it; /auth memberId 0 wallet; 409; activation later.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 09:18:09 -05:00
martbost cc3db3833f Game Pass bridge (GAMEPASS=on): chapter first clears via InstantAdPay polgrant (wallet-less members by email), shield at run start perk, lobby line + clear note, tests
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-22 06:50:39 -05:00
martbost 1bace54bc2 Faucet: treat connection-level failures (socket hang up, EPIPE, fetch failed, ...) as transient: leave the drip due and rotate RPC instead of marking it failed (PolHunter #7, 2026-10-09)
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-09 04:30:10 -05:00
martbost 09692de8c6 Member welcome offer + member perk: after a chapter clear, a signed-in non-member (IAP memberId 0) sees a dismissible "Become an InstantAdPay member" card once per Central day (bonus from IAP /api/starter/public, cached 10 min, skipped when off); a member's first hand-off grants one free hangar upgrade (token on the player, next purchase costs nothing, no POL moved), with a one-time lobby message
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-05 06:24:20 -05:00
martbost 08e70d6a16 Refuel income: a reported 0 credits (house-ad visit) stays 0, never falls back to the visit price
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 15:48:08 -05:00
martbost 60f1148efa Paid-traffic source tracking: ?utm_source/src + clickid -> dr.src cookie, per-source visits/guests/runs/sign-ins/new accounts, BeMob postback on a new account (DR_POSTBACK_URL), /api/admin/srcstats
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 11:30:22 -05:00
martbost 06daa4ef0a Referral layer: guest play from share links (/r/<username>), guest clears paid on sign-in, sharer's link via their IAP join page, 10% referrer slice of each referral refuel's pool income (IAP sponsor), share buttons + stats in the lobby and on chapter clears, wallet-less progress follows the member once a wallet is linked; 11 new checks
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-30 17:14:08 -05:00
martbost 83da8c33f2 Facts you learn as you play (SkyCash): tips priced from the live IAP catalog on the lobby, run-over and chapter-cleared cards; Level up on InstantAdPay button in the lobby
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-30 15:35:32 -05:00
martbost a4d6597f9a Chapter 5 panel position corrected
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-30 15:25:54 -05:00
martbost 37e92077c3 Badge artwork: 14 kie.ai renders (each its own shape and scene), name/earnings/tag stamped onto each piece's measured glass panel; tools/render-badges.mjs kept for reference
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-30 15:23:51 -05:00
martbost 505f5cdae4 Badge cards posted to Telegram: hangar unlocks, chapter milestones (1,3,5,10,15,20), refuel milestones (5,25,100), payouts; neon artwork + ffmpeg-stamped name/earnings; trial wording (coming soon, would have earned) until the admin flips it; admin announce route
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-30 15:04:38 -05:00
martbost ecfe97b90a Sign-in mode 'key': anyone whose browser holds the curtain pass (opened the key link) may play; tester list still honoured
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-30 14:31:19 -05:00
martbost 90a56bce74 Hand-off: free members without an on-chain id are keyed on their email; tester page wording
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-30 13:29:33 -05:00
martbost 903b5065b9 Drip Runner trial: IAP hand-off, seeded runs with server replay check, self-funding POL pool (refuel ad share + hangar spends), chapter drips, threshold payouts via faucet (dry run), tester allowlist + briefing page, admin page, e2e test
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-30 13:21:39 -05:00