Created
November 7, 2019 19:02
-
-
Save andrewvaughan/7bcb5aa6e9ae3349d2e448ebff9393b8 to your computer and use it in GitHub Desktop.
My Colony Assist
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* MyColony Asssist | |
* | |
* Provides overlay and helpful hints for the My Colony game by ApeWebApps. Play at: | |
* | |
* https://www.apewebapps.com/my-colony/ | |
* | |
* @author Andrew Vaughan | |
* | |
* @since 0.1.0 - Initial release | |
*/ | |
(function(){ | |
var MCA_GAME_VERSION = '0.98.0'; | |
// Check to ensure that MyColony is even loaded | |
if (typeof(ColonyGame) !== "object") { | |
alert("MyColony not loaded or unable to attach. Exiting."); | |
return; | |
} | |
// Check that the version is compatible | |
if (ColonyGame.meta.buildVersion !== MCA_GAME_VERSION) { | |
if (!confirm("Expected build version to be " + MCA_GAME_VERSION + ", but was actually " + MCA_GAME_VERSION + ". This may result in unintended functionality, incorrect values, and possibly corruption of save files. Continue loading MyColony Assist?")) { | |
return; | |
} | |
} | |
// @TODO - Load the assist UI | |
}()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment