mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-19 14:13:48 +01:00
#2709: Generate contracts while offline
This commit is contained in:
parent
cb4fd4cf90
commit
e7a9273c80
@ -272,20 +272,20 @@ const Engine: {
|
|||||||
const numCyclesOffline = Math.floor(timeOffline / CONSTANTS._idleSpeed);
|
const numCyclesOffline = Math.floor(timeOffline / CONSTANTS._idleSpeed);
|
||||||
|
|
||||||
// Generate coding contracts
|
// Generate coding contracts
|
||||||
// let numContracts = 0;
|
let numContracts = 0;
|
||||||
// if (numCyclesOffline < 3000 * 100) {
|
if (numCyclesOffline < 3000 * 100) {
|
||||||
// // if we have less than 100 rolls, just roll them exactly.
|
// if we have less than 100 rolls, just roll them exactly.
|
||||||
// for (let i = 0; i < numCyclesOffline / 3000; i++) {
|
for (let i = 0; i < numCyclesOffline / 3000; i++) {
|
||||||
// if (Math.random() < 0.25) numContracts++;
|
if (Math.random() < 0.25) numContracts++;
|
||||||
// }
|
}
|
||||||
// } else {
|
} else {
|
||||||
// // just average it.
|
// just average it.
|
||||||
// numContracts = (numCyclesOffline / 3000) * 0.25;
|
numContracts = (numCyclesOffline / 3000) * 0.25;
|
||||||
// }
|
}
|
||||||
// console.log(`${numCyclesOffline} ${numContracts}`);
|
console.log(`${numCyclesOffline} ${numContracts}`);
|
||||||
// for (let i = 0; i < numContracts; i++) {
|
for (let i = 0; i < numContracts; i++) {
|
||||||
// generateRandomContract();
|
generateRandomContract();
|
||||||
// }
|
}
|
||||||
|
|
||||||
let offlineReputation = 0;
|
let offlineReputation = 0;
|
||||||
const offlineHackingIncome = (Player.moneySourceA.hacking / Player.playtimeSinceLastAug) * timeOffline * 0.75;
|
const offlineHackingIncome = (Player.moneySourceA.hacking / Player.playtimeSinceLastAug) * timeOffline * 0.75;
|
||||||
|
Loading…
Reference in New Issue
Block a user