mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-18 13:43:49 +01:00
Add parens to replacement for IINV and EINV
This commit is contained in:
parent
61c8026bd0
commit
c7d05cae58
@ -628,10 +628,10 @@ export class Division {
|
||||
/MAX/g,
|
||||
(mat.stored / (corpConstants.secondsPerMarketCycle * marketCycles)).toString(),
|
||||
);
|
||||
amtStr = amtStr.replace(/EPROD/g, "(" + mat.productionAmount + ")");
|
||||
amtStr = amtStr.replace(/IPROD/g, "(" + tempMaterial.productionAmount + ")");
|
||||
amtStr = amtStr.replace(/EINV/g, mat.stored.toString());
|
||||
amtStr = amtStr.replace(/IINV/g, tempMaterial.stored.toString());
|
||||
amtStr = amtStr.replace(/EPROD/g, `(${mat.productionAmount})`);
|
||||
amtStr = amtStr.replace(/IPROD/g, `(${tempMaterial.productionAmount})`);
|
||||
amtStr = amtStr.replace(/EINV/g, `(${mat.stored})`);
|
||||
amtStr = amtStr.replace(/IINV/g, `(${tempMaterial.stored})`);
|
||||
let amt = 0;
|
||||
try {
|
||||
amt = eval(amtStr);
|
||||
|
Loading…
Reference in New Issue
Block a user