Dev branch always show changelog regardless of location

This commit is contained in:
omuretsu 2023-05-15 23:05:36 -04:00
parent df237b0842
commit 6c730d46f4
2 changed files with 3 additions and 1 deletions

@ -5,6 +5,7 @@
*/ */
export const CONSTANTS: { export const CONSTANTS: {
VersionString: string; VersionString: string;
isDevBranch: boolean;
VersionNumber: number; VersionNumber: number;
MaxSkillLevel: number; MaxSkillLevel: number;
MilliPerCycle: number; MilliPerCycle: number;
@ -88,6 +89,7 @@ export const CONSTANTS: {
LatestUpdate: string; LatestUpdate: string;
} = { } = {
VersionString: "2.3.0", VersionString: "2.3.0",
isDevBranch: true,
VersionNumber: 30, VersionNumber: 30,
/** Max level for any skill, assuming no multipliers. Determined by max numerical value in javascript for experience /** Max level for any skill, assuming no multipliers. Determined by max numerical value in javascript for experience

@ -794,7 +794,7 @@ function loadGame(saveString: string): boolean {
try { try {
const ver = JSON.parse(saveObj.VersionSave, Reviver); const ver = JSON.parse(saveObj.VersionSave, Reviver);
evaluateVersionCompatibility(ver); evaluateVersionCompatibility(ver);
if (window.location.href.toLowerCase().includes("bitburner-src")) { if (CONSTANTS.isDevBranch) {
// Beta branch, always show changes // Beta branch, always show changes
createBetaUpdateText(); createBetaUpdateText();
} else if (ver !== CONSTANTS.VersionNumber) { } else if (ver !== CONSTANTS.VersionNumber) {