mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-27 01:53:48 +01:00
commit
615f40cebb
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -185,11 +185,12 @@ export class Product {
|
||||
0.05 * employeeProd[EmployeePositions.Business]);
|
||||
this.calculateRating(industry);
|
||||
const advMult = 1 + Math.pow(this.advCost, 0.1) / 100;
|
||||
this.mku = 100 / (advMult * Math.pow(this.qlt + 0.001, 0.65) * (busRatio + mgmtRatio));
|
||||
const busmgtgRatio = Math.max(busRatio + mgmtRatio, 1 / employeeProd["total"]);
|
||||
this.mku = 100 / (advMult * Math.pow(this.qlt + 0.001, 0.65) * busmgtgRatio);
|
||||
|
||||
// I actually don't understand well enough to know if this is right.
|
||||
// I'm adding this to prevent a crash.
|
||||
if (this.mku === 0) this.mku = 1;
|
||||
if (this.mku === 0 || !isFinite(this.mku)) this.mku = 1;
|
||||
|
||||
this.dmd =
|
||||
industry.awareness === 0 ? 20 : Math.min(100, advMult * (100 * (industry.popularity / industry.awareness)));
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -24,7 +24,10 @@ export function nano(
|
||||
if (script == null) {
|
||||
let code = "";
|
||||
if (filename.endsWith(".ns") || filename.endsWith(".js")) {
|
||||
code = `export async function main(ns) {
|
||||
code = `/**
|
||||
* @param {NS} ns
|
||||
**/
|
||||
export async function main(ns) {
|
||||
|
||||
}`;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user