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: {
VersionString: string;
isDevBranch: boolean;
VersionNumber: number;
MaxSkillLevel: number;
MilliPerCycle: number;
@ -88,6 +89,7 @@ export const CONSTANTS: {
LatestUpdate: string;
} = {
VersionString: "2.3.0",
isDevBranch: true,
VersionNumber: 30,
/** 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 {
const ver = JSON.parse(saveObj.VersionSave, Reviver);
evaluateVersionCompatibility(ver);
if (window.location.href.toLowerCase().includes("bitburner-src")) {
if (CONSTANTS.isDevBranch) {
// Beta branch, always show changes
createBetaUpdateText();
} else if (ver !== CONSTANTS.VersionNumber) {