mirror of
https://github.com/Such-Software/wownerogue.git
synced 2026-10-18 22:58:32 +02:00
completeGame only gated PAID_CREDITS payouts (on creditsPayoutEnabled); a PAID_SINGLE win paid out unconditionally, so DIRECT_PAYOUTS_ENABLED=false did NOT actually stop direct payouts — a no-payout instance (mainnet legitimacy) would still send crypto on an entry-fee win. Caught during deploy verification. - Add this.directPayoutEnabled (from DIRECT_PAYOUTS_ENABLED env / direct rule enabled in the config snapshot), mirroring creditsPayoutEnabled. - completeGame now gates the PAID_SINGLE payout on directPayoutEnabled. - The derived directPayoutsEnabled flags (getGameModeInfo / effective mode) and /api/game-modes PAID_SINGLE.payoutMultiplier now respect it (show 0 when off) instead of inferring from multipliers > 0. Adds a regression test: a PAID_SINGLE win with directPayoutEnabled=false queues no payout. Full suite: 22 suites / 159 tests.