diff --git a/README.md b/README.md index 394ee05..c8a7547 100644 --- a/README.md +++ b/README.md @@ -41,6 +41,7 @@ Portions of Befuddle are unofficial Fan Content permitted under the Wizards of t # Changelog ``` +12/07/2024: Added new error message when Daily needs an update 10/23/2024: Routine card update; new Dailies 8/19/2024: New Dailies 8/12/2024: Card update; added TCGPlayer URL to Free Mode diff --git a/scripts/index.js b/scripts/index.js index ab3f9b4..b01c85d 100644 --- a/scripts/index.js +++ b/scripts/index.js @@ -1,5 +1,5 @@ const canVibrate = window.navigator.vibrate; -const befuddleAppVersion = "2024.10.23"; +const befuddleAppVersion = "2024.12.07"; const tcgSVG = ''; @@ -1706,6 +1706,20 @@ function loadGame() { }); if (getDateNumber() - data.start >= data.list.length) { console.error('Daily Befuddle needs to be updated, please report a bug to Suitangi'); + $.dialog({ + title: 'Error', + content: 'Daily Befuddle needs to be updated, please contact us on Twitter or on discord!', + type: 'red', + theme: window.game.theme, + animation: 'top', + closeAnimation: 'top', + animateFromElement: false, + boxWidth: 'min(400px, 80%)', + draggable: false, + useBootstrap: false, + typeAnimated: true, + backgroundDismiss: true + }); } console.log(`Needs update in ${data.start + data.list.length - getDateNumber()} days.`) loadCard(data.list[getDateNumber() - data.start]);