feat: lock worldState time via config #1361
@ -38,7 +38,7 @@
 | 
				
			|||||||
  "noDojoResearchTime": false,
 | 
					  "noDojoResearchTime": false,
 | 
				
			||||||
  "fastClanAscension": false,
 | 
					  "fastClanAscension": false,
 | 
				
			||||||
  "spoofMasteryRank": -1,
 | 
					  "spoofMasteryRank": -1,
 | 
				
			||||||
  "events": {
 | 
					  "worldState": {
 | 
				
			||||||
    "creditBoost": false,
 | 
					    "creditBoost": false,
 | 
				
			||||||
    "affinityBoost": false,
 | 
					    "affinityBoost": false,
 | 
				
			||||||
    "resourceBoost": false,
 | 
					    "resourceBoost": false,
 | 
				
			||||||
 | 
				
			|||||||
@ -68,7 +68,7 @@ export const worldStateController: RequestHandler = (req, res) => {
 | 
				
			|||||||
        ...staticWorldState
 | 
					        ...staticWorldState
 | 
				
			||||||
    };
 | 
					    };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if (config.events?.starDays) {
 | 
					    if (config.worldState?.starDays) {
 | 
				
			||||||
        worldState.Goals.push({
 | 
					        worldState.Goals.push({
 | 
				
			||||||
            _id: { $oid: "67a4dcce2a198564d62e1647" },
 | 
					            _id: { $oid: "67a4dcce2a198564d62e1647" },
 | 
				
			||||||
            Activation: { $date: { $numberLong: "1738868400000" } },
 | 
					            Activation: { $date: { $numberLong: "1738868400000" } },
 | 
				
			||||||
@ -117,7 +117,7 @@ export const worldStateController: RequestHandler = (req, res) => {
 | 
				
			|||||||
        Nodes: []
 | 
					        Nodes: []
 | 
				
			||||||
    };
 | 
					    };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if (config.events?.creditBoost) {
 | 
					    if (config.worldState?.creditBoost) {
 | 
				
			||||||
        worldState.GlobalUpgrades.push({
 | 
					        worldState.GlobalUpgrades.push({
 | 
				
			||||||
            _id: { $oid: "5b23106f283a555109666672" },
 | 
					            _id: { $oid: "5b23106f283a555109666672" },
 | 
				
			||||||
            Activation: { $date: { $numberLong: "1740164400000" } },
 | 
					            Activation: { $date: { $numberLong: "1740164400000" } },
 | 
				
			||||||
@ -129,7 +129,7 @@ export const worldStateController: RequestHandler = (req, res) => {
 | 
				
			|||||||
            LocalizeDescTag: ""
 | 
					            LocalizeDescTag: ""
 | 
				
			||||||
        });
 | 
					        });
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    if (config.events?.affinityBoost) {
 | 
					    if (config.worldState?.affinityBoost) {
 | 
				
			||||||
        worldState.GlobalUpgrades.push({
 | 
					        worldState.GlobalUpgrades.push({
 | 
				
			||||||
            _id: { $oid: "5b23106f283a555109666673" },
 | 
					            _id: { $oid: "5b23106f283a555109666673" },
 | 
				
			||||||
            Activation: { $date: { $numberLong: "1740164400000" } },
 | 
					            Activation: { $date: { $numberLong: "1740164400000" } },
 | 
				
			||||||
@ -141,7 +141,7 @@ export const worldStateController: RequestHandler = (req, res) => {
 | 
				
			|||||||
            LocalizeDescTag: ""
 | 
					            LocalizeDescTag: ""
 | 
				
			||||||
        });
 | 
					        });
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    if (config.events?.resourceBoost) {
 | 
					    if (config.worldState?.resourceBoost) {
 | 
				
			||||||
        worldState.GlobalUpgrades.push({
 | 
					        worldState.GlobalUpgrades.push({
 | 
				
			||||||
            _id: { $oid: "5b23106f283a555109666674" },
 | 
					            _id: { $oid: "5b23106f283a555109666674" },
 | 
				
			||||||
            Activation: { $date: { $numberLong: "1740164400000" } },
 | 
					            Activation: { $date: { $numberLong: "1740164400000" } },
 | 
				
			||||||
 | 
				
			|||||||
@ -64,7 +64,7 @@ interface IConfig {
 | 
				
			|||||||
    noDojoResearchTime?: boolean;
 | 
					    noDojoResearchTime?: boolean;
 | 
				
			||||||
    fastClanAscension?: boolean;
 | 
					    fastClanAscension?: boolean;
 | 
				
			||||||
    spoofMasteryRank?: number;
 | 
					    spoofMasteryRank?: number;
 | 
				
			||||||
    events?: {
 | 
					    worldState?: {
 | 
				
			||||||
        creditBoost?: boolean;
 | 
					        creditBoost?: boolean;
 | 
				
			||||||
        affinityBoost?: boolean;
 | 
					        affinityBoost?: boolean;
 | 
				
			||||||
        resourceBoost?: boolean;
 | 
					        resourceBoost?: boolean;
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user