Add [F] to title when Fortune Cookie is present (remove when it's not)

This commit is contained in:
Eric Olsen
2019-10-05 15:33:36 -06:00
parent 431b1e6cd0
commit b5eac1ce22
2 changed files with 16 additions and 2 deletions

View File

@@ -915,6 +915,7 @@ CM.Disp.UpdateTitle = function() {
var addSP = false;
var titleGC;
var titleFC = '';
var titleSP;
if (CM.Disp.lastGoldenCookieState) {
if (CM.Disp.goldenShimmer.wrath) {
@@ -930,6 +931,9 @@ CM.Disp.UpdateTitle = function() {
else {
titleGC = '[GS]'
}
if (CM.Disp.lastTickerFortuneState) {
titleFC = '[F]';
}
if (Game.season == 'christmas') {
addSP = true;
if (CM.Disp.lastSeasonPopupState) {
@@ -945,11 +949,14 @@ CM.Disp.UpdateTitle = function() {
str = str.substring(str.lastIndexOf(']') + 1);
}
document.title = titleGC + (addSP ? titleSP : '') + ' ' + str;
document.title = titleFC + titleGC + (addSP ? titleSP : '') + ' ' + str;
}
else if (CM.Config.Title == 2) {
var str = '';
var spawn = false;
if (CM.Disp.lastTickerFortuneState) {
str += '[F]';
}
if (CM.Disp.lastGoldenCookieState) {
spawn = true;
if (CM.Disp.goldenShimmer.wrath) {