`);
return;
}
-
- // Direct payment mode
- if (config.directModeEnabled) {
- const price = config.singleGamePriceFormatted || '1';
- const multipliers = config.payoutMultipliers?.direct || {};
- const escapeMulti = multipliers.escape || 2;
- const treasureMulti = multipliers.treasure || 3;
-
- $container.append(`
-
-
β‘ Direct Payment
-
Pay ${price} ${currency} per game.
-
Escape: ${escapeMulti}Γ payout | With treasure: ${treasureMulti}Γ payout
+
+ const directOn = config.directModeEnabled;
+ const creditsOn = config.creditsModeEnabled;
+ if (!directOn && !creditsOn) {
+ $container.html('
Loadingβ¦
');
+ return;
+ }
+
+ // Unified model: everything is CREDITS. Buy one at the base price, or a bundle at a
+ // discount; 1 credit = 1 run either way.
+ const price = config.singleGamePriceFormatted || '1';
+ const packages = config.creditPackages || [];
+ const payoutsOn = !!(config.payoutsEnabled || config.directPayoutsEnabled || config.creditsPayoutsEnabled);
+
+ const buy = [];
+ if (directOn) buy.push(`
1 credit β ${price} ${currency}`);
+ if (creditsOn && packages.length > 0) {
+ const bundles = packages.map(pkg => {
+ const bonus = pkg.bonus > 0 ? ` +${pkg.bonus}` : '';
+ return `${pkg.credits}${bonus} for ${pkg.priceFormatted}`;
+ }).join(' Β· ');
+ buy.push(`
Bundles β ${bundles} ${currency}
(cheaper per run)`);
+ }
+
+ // Reward line is config-driven so it stays honest on prestige (no-payout) deployments.
+ let reward;
+ if (payoutsOn) {
+ const m = (config.payoutMultipliers && (config.payoutMultipliers.direct || config.payoutMultipliers.credits)) || {};
+ const esc = m.escape || 2;
+ const tre = m.escapeWithTreasure || m.treasure || 3;
+ reward = `
π° Escape pays ${esc}Γ Β· with treasure ${tre}Γ.`;
+ } else {
+ reward = `
π
No crypto payout β escape for the win; top scores enter the Hall of Champions.`;
+ }
+
+ const freeLine = config.freePlayEnabled
+ ? `
Prefer no stakes? Free runs are available too (Pleb leaderboard).
`
+ : '';
+
+ $container.html(`
+
+
π« 1 credit = 1 run
+
+ Buy credits with ${currency}:
+ ${buy.map(b => ' β’ ' + b).join('
')}
- `);
- }
-
- // Credits mode
- if (config.creditsModeEnabled) {
- const packages = config.creditPackages || [];
- const creditsPayoutEnabled = config.creditsPayoutsEnabled;
-
- let packagesInfo = '';
- if (packages.length > 0) {
- packagesInfo = packages.map(pkg => {
- const bonus = pkg.bonus > 0 ? ` +${pkg.bonus} bonus` : '';
- return `${pkg.credits}${bonus} credits for ${pkg.priceFormatted} ${currency}`;
- }).join(', ');
- }
-
- $container.append(`
-
-
π« Credits Mode
-
Buy credits in bulk and use them to play.
- ${packagesInfo ? `
Packages: ${packagesInfo}` : ''}
- ${creditsPayoutEnabled
- ? '
β Payouts enabled for credit games'
- : '
Payouts not available for credit games'}
+
+ Spend a credit to enter β jump in immediately, or on the next block. Block timing
+ is random, so your average wait is the same either way.
- `);
- }
-
- // If no paid modes are shown but payments enabled
- if (!config.directModeEnabled && !config.creditsModeEnabled && config.paymentsEnabled) {
- $container.html(`
-
Payment configuration is loading...
- `);
- }
+
${reward}
+ ${freeLine}
+
+ `);
}
};