mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-18 12:15:44 +01:00
Fixed bug with Advert Inc upgrade not working properly because I used Math.random instead of getRandomInt.
This commit is contained in:
parent
d89b804b00
commit
920bfb7913
4
dist/bundle.js
vendored
4
dist/bundle.js
vendored
@ -39837,7 +39837,7 @@ var IndustryUpgrades = {
|
||||
"AdVert.Inc", "Hire AdVert.Inc to advertise your company. Each level of " +
|
||||
"this upgrade grants your company a static increase of 4 and 1 to its awareness and " +
|
||||
"popularity, respectively. It will then increase your company's awareness by 1%, and its popularity " +
|
||||
"by a random percentage between 5% and 15%. These effects are increased by other upgrades " +
|
||||
"by a random percentage between 5% and 10%. These effects are increased by other upgrades " +
|
||||
"that increase the power of your advertising."]
|
||||
}
|
||||
|
||||
@ -40736,7 +40736,7 @@ Industry.prototype.upgrade = function(upgrade, refs) {
|
||||
this.awareness += (4 * advMult);
|
||||
this.popularity += (1 * advMult);
|
||||
this.awareness *= (1.01 * advMult);
|
||||
this.popularity *= ((1 + Math.random(5, 15) / 100) * advMult);
|
||||
this.popularity *= ((1 + Object(__WEBPACK_IMPORTED_MODULE_5__utils_HelperFunctions_js__["g" /* getRandomInt */])(5, 10) / 100) * advMult);
|
||||
break;
|
||||
default:
|
||||
console.log("ERROR: Un-implemented function index: " + upgN);
|
||||
|
@ -537,7 +537,7 @@ var IndustryUpgrades = {
|
||||
"AdVert.Inc", "Hire AdVert.Inc to advertise your company. Each level of " +
|
||||
"this upgrade grants your company a static increase of 4 and 1 to its awareness and " +
|
||||
"popularity, respectively. It will then increase your company's awareness by 1%, and its popularity " +
|
||||
"by a random percentage between 5% and 15%. These effects are increased by other upgrades " +
|
||||
"by a random percentage between 5% and 10%. These effects are increased by other upgrades " +
|
||||
"that increase the power of your advertising."]
|
||||
}
|
||||
|
||||
@ -1436,7 +1436,7 @@ Industry.prototype.upgrade = function(upgrade, refs) {
|
||||
this.awareness += (4 * advMult);
|
||||
this.popularity += (1 * advMult);
|
||||
this.awareness *= (1.01 * advMult);
|
||||
this.popularity *= ((1 + Math.random(5, 15) / 100) * advMult);
|
||||
this.popularity *= ((1 + getRandomInt(5, 10) / 100) * advMult);
|
||||
break;
|
||||
default:
|
||||
console.log("ERROR: Un-implemented function index: " + upgN);
|
||||
|
Loading…
Reference in New Issue
Block a user