Added an indication in the title bar on the type of golden cookie spawned (Issue #39) and tiny cleanup of code
This commit is contained in:
@@ -682,8 +682,12 @@ CM.Disp.UpdateTitle = function() {
|
||||
var titleGC;
|
||||
var titleSP;
|
||||
if (l('goldenCookie').style.display != 'none') {
|
||||
addGC = true;
|
||||
titleGC = '[G ' + Math.ceil(Game.goldenCookie.life / Game.fps) + ']';
|
||||
if (Game.goldenCookie.wrath) {
|
||||
titleGC = '[W ' + Math.ceil(Game.goldenCookie.life / Game.fps) + ']';
|
||||
}
|
||||
else {
|
||||
titleGC = '[G ' + Math.ceil(Game.goldenCookie.life / Game.fps) + ']';
|
||||
}
|
||||
}
|
||||
else {
|
||||
titleGC = '[' + Math.ceil((Game.goldenCookie.maxTime - Game.goldenCookie.time) / Game.fps) + ']';
|
||||
|
||||
Reference in New Issue
Block a user