Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7fa5becd07 | ||
|
|
39c37ef10b | ||
|
|
6555c1cc34 | ||
|
|
3a2cb23be3 | ||
|
|
f6a70c5655 | ||
|
|
ef90f9725e |
@@ -133,7 +133,7 @@ CM.Sim.CalculateGains = function() {
|
|||||||
if (CM.Sim.Has('Ant larva')) eggMult++;
|
if (CM.Sim.Has('Ant larva')) eggMult++;
|
||||||
if (CM.Sim.Has('Century egg')) {
|
if (CM.Sim.Has('Century egg')) {
|
||||||
// The boost increases a little every day, with diminishing returns up to +10% on the 100th day
|
// The boost increases a little every day, with diminishing returns up to +10% on the 100th day
|
||||||
var day = Math.floor((new Date().getTime() - Game.startDate) / 1000 / 10) * 10 / 60 / 60 / 24;
|
var day = Math.floor((CM.Sim.Date - Game.startDate) / 1000 / 10) * 10 / 60 / 60 / 24;
|
||||||
day = Math.min(day,100);
|
day = Math.min(day,100);
|
||||||
eggMult += (1 - Math.pow(1 - day / 100, 3)) * 10;
|
eggMult += (1 - Math.pow(1 - day / 100, 3)) * 10;
|
||||||
}
|
}
|
||||||
@@ -1373,6 +1373,7 @@ CM.ReplaceNative = function() {
|
|||||||
Game.CalculateGains = function() {
|
Game.CalculateGains = function() {
|
||||||
CM.Backup.CalculateGains();
|
CM.Backup.CalculateGains();
|
||||||
CM.Sim.DoSims = 1;
|
CM.Sim.DoSims = 1;
|
||||||
|
CM.Sim.Date = new Date().getTime();
|
||||||
}
|
}
|
||||||
|
|
||||||
CM.Backup.seasonPopup = {};
|
CM.Backup.seasonPopup = {};
|
||||||
@@ -1494,8 +1495,9 @@ CM.Init = function() {
|
|||||||
CM.Disp.CreateTooltipWarnCaut();
|
CM.Disp.CreateTooltipWarnCaut();
|
||||||
CM.Disp.AddTooltipBuild();
|
CM.Disp.AddTooltipBuild();
|
||||||
CM.ReplaceNative();
|
CM.ReplaceNative();
|
||||||
|
Game.CalculateGains();
|
||||||
CM.LoadConfig(); // Must be after all things are created!
|
CM.LoadConfig(); // Must be after all things are created!
|
||||||
|
|
||||||
if (Game.prefs.popups) Game.Popup('Cookie Monster version ' + CM.VersionMajor + '.' + CM.VersionMinor + ' loaded!');
|
if (Game.prefs.popups) Game.Popup('Cookie Monster version ' + CM.VersionMajor + '.' + CM.VersionMinor + ' loaded!');
|
||||||
else Game.Notify('Cookie Monster version ' + CM.VersionMajor + '.' + CM.VersionMinor + ' loaded!','','',1);
|
else Game.Notify('Cookie Monster version ' + CM.VersionMajor + '.' + CM.VersionMinor + ' loaded!','','',1);
|
||||||
|
|
||||||
@@ -1503,7 +1505,7 @@ CM.Init = function() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
CM.Sim.DoSims = 1;
|
//CM.Sim.DoSims = 1;
|
||||||
//CM.Sim.DoUpgradesSim = 1;
|
//CM.Sim.DoUpgradesSim = 1;
|
||||||
|
|
||||||
CM.Cache.Lucky = 0;
|
CM.Cache.Lucky = 0;
|
||||||
@@ -1552,7 +1554,6 @@ CM.ConfigData.SayTime = { label : [ 'Format Time OFF', 'Format Time ON' ], func
|
|||||||
CM.ConfigData.Scale = { label : [ 'Game\'s Setting Scale', 'Metric', 'Short Scale', 'Scientific Notation' ], func : function() { CM.Disp.RefreshScale(); } };
|
CM.ConfigData.Scale = { label : [ 'Game\'s Setting Scale', 'Metric', 'Short Scale', 'Scientific Notation' ], func : function() { CM.Disp.RefreshScale(); } };
|
||||||
|
|
||||||
CM.VersionMajor = '1.0465';
|
CM.VersionMajor = '1.0465';
|
||||||
CM.VersionMinor = '2';
|
CM.VersionMinor = '3';
|
||||||
|
|
||||||
|
|
||||||
CM.Init();
|
CM.Init();
|
||||||
Reference in New Issue
Block a user