MISC: Do not round return value of getBonusTime APIs (#1961)

This commit is contained in:
catloversg
2025-02-16 16:42:11 +07:00
committed by GitHub
parent 23bc4e8804
commit 13990fbe4c
4 changed files with 4 additions and 4 deletions

View File

@@ -334,7 +334,7 @@ export function NetscriptBladeburner(): InternalAPI<INetscriptBladeburner> {
},
getBonusTime: (ctx) => () => {
const bladeburner = getBladeburner(ctx);
return Math.round(bladeburner.storedCycles / 5) * 1000;
return bladeburner.storedCycles * 200;
},
nextUpdate: (ctx) => () => {
checkBladeburnerAccess(ctx);

View File

@@ -785,7 +785,7 @@ export function NetscriptCorporation(): InternalAPI<NSCorporation> {
},
getBonusTime: (ctx) => () => {
checkAccess(ctx);
return Math.round(getCorporation().storedCycles / 5) * 1000;
return getCorporation().storedCycles * 200;
},
nextUpdate: (ctx) => () => {
checkAccess(ctx);

View File

@@ -331,7 +331,7 @@ export function NetscriptGang(): InternalAPI<IGang> {
},
getBonusTime: (ctx) => () => {
const gang = getGang(ctx);
return Math.round(gang.storedCycles / 5) * 1000;
return gang.storedCycles * 200;
},
nextUpdate: (ctx) => () => {
getGang(ctx);

View File

@@ -396,7 +396,7 @@ export function NetscriptStockMarket(): InternalAPI<TIX> {
},
getBonusTime: (ctx) => () => {
checkTixApiAccess(ctx);
return Math.round(StockMarket.storedCycles / 5) * 1000;
return StockMarket.storedCycles * 200;
},
nextUpdate: (ctx) => () => {
checkTixApiAccess(ctx);