Fixed minor bug with Chocolate Egg stat and fixed how undefined was checked (Thanks The_omniscent_pie)

This commit is contained in:
Aktanusa
2014-09-09 20:13:56 -04:00
parent fb83f6679a
commit e5ce8e5ebd
6 changed files with 31 additions and 29 deletions

View File

@@ -45,7 +45,7 @@ CM.ReplaceNative = function() {
CM.Backup.UpdateMenu = Game.UpdateMenu;
Game.UpdateMenu = function() {
if (jscolor.picker == undefined || jscolor.picker.owner == undefined) {
if (typeof jscolor.picker === 'undefined' || typeof jscolor.picker.owner === 'undefined') {
CM.Backup.UpdateMenu();
CM.Disp.AddMenu();
}
@@ -71,7 +71,7 @@ CM.Loop = function() {
CM.Cache.RemakeLucky();
CM.Cache.RemakeChain();
CM.Cache.RemakeSeaSpec();
CM.Cache.RemakeChoEgg();
CM.Cache.RemakeSellAllTotal();
CM.Disp.UpdateBotBarOther();
CM.Disp.UpdateBuildings();
@@ -110,7 +110,7 @@ CM.Init = function() {
CM.Disp.AddJscolor();
var delay = setInterval(function() {
if (jscolor != undefined) {
if (typeof jscolor !== 'undefined') {
CM.DelayInit();
clearInterval(delay);
}