mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-26 01:23:49 +01:00
Dev branch always show changelog regardless of location
This commit is contained in:
parent
df237b0842
commit
6c730d46f4
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user