mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-20 05:05:47 +01:00
CCT: inconsistent probability for generation between online and offline
Fixes #4110. While online, there is 25% chance for a Coding Contract to appear. The same should apply when a player loads the game after being offline for a period of time. Currently, loading the game after being offline would give a generation probability of less than 25%. The mismatch between offline and online gives an unfair advantage to having the game running for an extended period of time.
This commit is contained in:
parent
b8f8246294
commit
5f47536d54
@ -262,7 +262,7 @@ const Engine: {
|
||||
if (numCyclesOffline < 3000 * 100) {
|
||||
// if we have less than 100 rolls, just roll them exactly.
|
||||
for (let i = 0; i < numCyclesOffline / 3000; i++) {
|
||||
if (Math.random() < 0.25) numContracts++;
|
||||
if (Math.random() <= 0.25) numContracts++;
|
||||
}
|
||||
} else {
|
||||
// just average it.
|
||||
|
Loading…
Reference in New Issue
Block a user