changed rng method to based on hour of install, changes every 360000 ms

This commit is contained in:
Tesseract1234567890 2021-06-03 13:25:20 -04:00
parent b88990444b
commit a3496cdfa9

@ -29,7 +29,7 @@ function AddToAugmentations(aug) {
} }
function getRandomMultiplier(min, max) { function getRandomMultiplier(min, max) {
let randomNumber = (new WHRNG(new Date().getHours())); let randomNumber = (new WHRNG(Math.floor(Player.lastUpdate/360000)));
randomNumber.step(); randomNumber.step();
return (min + (max - min) * (randomNumber.random())); return (min + (max - min) * (randomNumber.random()));
} }
@ -57,7 +57,7 @@ function getRandomModifier() {
"crime_success_mult", "crime_success_mult",
"work_money_mult"]; "work_money_mult"];
let randomNumber = (new WHRNG(new Date().getHours())); let randomNumber = (new WHRNG(Math.floor(Player.lastUpdate/360000)));
randomNumber.step(); randomNumber.step();
return (multiplierTypes[Math.floor(multiplierTypes.length * randomNumber.random())]); return (multiplierTypes[Math.floor(multiplierTypes.length * randomNumber.random())]);