mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-30 03:23:48 +01:00
changed rng method to based on hour of install, changes every 360000 ms
This commit is contained in:
parent
b88990444b
commit
a3496cdfa9
@ -29,7 +29,7 @@ function AddToAugmentations(aug) {
|
||||
}
|
||||
|
||||
function getRandomMultiplier(min, max) {
|
||||
let randomNumber = (new WHRNG(new Date().getHours()));
|
||||
let randomNumber = (new WHRNG(Math.floor(Player.lastUpdate/360000)));
|
||||
randomNumber.step();
|
||||
return (min + (max - min) * (randomNumber.random()));
|
||||
}
|
||||
@ -57,7 +57,7 @@ function getRandomModifier() {
|
||||
"crime_success_mult",
|
||||
"work_money_mult"];
|
||||
|
||||
let randomNumber = (new WHRNG(new Date().getHours()));
|
||||
let randomNumber = (new WHRNG(Math.floor(Player.lastUpdate/360000)));
|
||||
|
||||
randomNumber.step();
|
||||
return (multiplierTypes[Math.floor(multiplierTypes.length * randomNumber.random())]);
|
||||
|
Loading…
Reference in New Issue
Block a user