mirror of
https://github.com/tobspr-games/shapez.io.git
synced 2025-12-06 02:30:37 -08:00
Promote current discount
This commit is contained in:
parent
6a0254b358
commit
7e198f2a72
9 changed files with 113 additions and 25 deletions
|
|
@ -117,6 +117,13 @@ export const globalConfig = {
|
|||
rendering: {},
|
||||
debug: require("./config.local").default,
|
||||
|
||||
currentDiscount: {
|
||||
amount: 50,
|
||||
until: Date.parse("April 25 2022 23:59 +2:00"),
|
||||
|
||||
active: false, // computed later
|
||||
},
|
||||
|
||||
// Secret vars
|
||||
info: {
|
||||
// Binary file salt
|
||||
|
|
@ -161,3 +168,5 @@ if (G_IS_DEV && globalConfig.debug.noArtificialDelays) {
|
|||
globalConfig.warmupTimeSecondsFast = 0;
|
||||
globalConfig.warmupTimeSecondsRegular = 0;
|
||||
}
|
||||
|
||||
globalConfig.currentDiscount.active = new Date().getTime() < globalConfig.currentDiscount.until;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue