mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-16 06:18:42 +02:00
MISC: Do not round return value of getBonusTime APIs (#1961)
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user