Add [F] to title when Fortune Cookie is present (remove when it's not)
This commit is contained in:
@@ -1502,6 +1502,7 @@ CM.Disp.UpdateTitle = function() {
|
|||||||
var addSP = false;
|
var addSP = false;
|
||||||
|
|
||||||
var titleGC;
|
var titleGC;
|
||||||
|
var titleFC = '';
|
||||||
var titleSP;
|
var titleSP;
|
||||||
if (CM.Disp.lastGoldenCookieState) {
|
if (CM.Disp.lastGoldenCookieState) {
|
||||||
if (CM.Disp.goldenShimmer.wrath) {
|
if (CM.Disp.goldenShimmer.wrath) {
|
||||||
@@ -1517,6 +1518,9 @@ CM.Disp.UpdateTitle = function() {
|
|||||||
else {
|
else {
|
||||||
titleGC = '[GS]'
|
titleGC = '[GS]'
|
||||||
}
|
}
|
||||||
|
if (CM.Disp.lastTickerFortuneState) {
|
||||||
|
titleFC = '[F]';
|
||||||
|
}
|
||||||
if (Game.season == 'christmas') {
|
if (Game.season == 'christmas') {
|
||||||
addSP = true;
|
addSP = true;
|
||||||
if (CM.Disp.lastSeasonPopupState) {
|
if (CM.Disp.lastSeasonPopupState) {
|
||||||
@@ -1532,11 +1536,14 @@ CM.Disp.UpdateTitle = function() {
|
|||||||
str = str.substring(str.lastIndexOf(']') + 1);
|
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) {
|
else if (CM.Config.Title == 2) {
|
||||||
var str = '';
|
var str = '';
|
||||||
var spawn = false;
|
var spawn = false;
|
||||||
|
if (CM.Disp.lastTickerFortuneState) {
|
||||||
|
str += '[F]';
|
||||||
|
}
|
||||||
if (CM.Disp.lastGoldenCookieState) {
|
if (CM.Disp.lastGoldenCookieState) {
|
||||||
spawn = true;
|
spawn = true;
|
||||||
if (CM.Disp.goldenShimmer.wrath) {
|
if (CM.Disp.goldenShimmer.wrath) {
|
||||||
|
|||||||
@@ -915,6 +915,7 @@ CM.Disp.UpdateTitle = function() {
|
|||||||
var addSP = false;
|
var addSP = false;
|
||||||
|
|
||||||
var titleGC;
|
var titleGC;
|
||||||
|
var titleFC = '';
|
||||||
var titleSP;
|
var titleSP;
|
||||||
if (CM.Disp.lastGoldenCookieState) {
|
if (CM.Disp.lastGoldenCookieState) {
|
||||||
if (CM.Disp.goldenShimmer.wrath) {
|
if (CM.Disp.goldenShimmer.wrath) {
|
||||||
@@ -930,6 +931,9 @@ CM.Disp.UpdateTitle = function() {
|
|||||||
else {
|
else {
|
||||||
titleGC = '[GS]'
|
titleGC = '[GS]'
|
||||||
}
|
}
|
||||||
|
if (CM.Disp.lastTickerFortuneState) {
|
||||||
|
titleFC = '[F]';
|
||||||
|
}
|
||||||
if (Game.season == 'christmas') {
|
if (Game.season == 'christmas') {
|
||||||
addSP = true;
|
addSP = true;
|
||||||
if (CM.Disp.lastSeasonPopupState) {
|
if (CM.Disp.lastSeasonPopupState) {
|
||||||
@@ -945,11 +949,14 @@ CM.Disp.UpdateTitle = function() {
|
|||||||
str = str.substring(str.lastIndexOf(']') + 1);
|
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) {
|
else if (CM.Config.Title == 2) {
|
||||||
var str = '';
|
var str = '';
|
||||||
var spawn = false;
|
var spawn = false;
|
||||||
|
if (CM.Disp.lastTickerFortuneState) {
|
||||||
|
str += '[F]';
|
||||||
|
}
|
||||||
if (CM.Disp.lastGoldenCookieState) {
|
if (CM.Disp.lastGoldenCookieState) {
|
||||||
spawn = true;
|
spawn = true;
|
||||||
if (CM.Disp.goldenShimmer.wrath) {
|
if (CM.Disp.goldenShimmer.wrath) {
|
||||||
|
|||||||
Reference in New Issue
Block a user