mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-30 04:47:03 +02:00
plenty of bf
This commit is contained in:
@@ -86,7 +86,7 @@ export function SellMaterial(mat: Material, amt: string, price: string): void {
|
||||
if (price === "") price = "0";
|
||||
if (amt === "") amt = "0";
|
||||
let cost = price.replace(/\s+/g, "");
|
||||
cost = cost.replace(/[^-()\d/*+.MP]/g, ""); //Sanitize cost
|
||||
cost = cost.replace(/[^-()\d/*+.MPe]/g, ""); //Sanitize cost
|
||||
let temp = cost.replace(/MP/g, mat.bCost + "");
|
||||
try {
|
||||
temp = eval(temp);
|
||||
|
||||
Reference in New Issue
Block a user