Sync
This commit is contained in:
7
Ramses/home/corp/SetSalePrices.js
Normal file
7
Ramses/home/corp/SetSalePrices.js
Normal file
@@ -0,0 +1,7 @@
|
||||
/** @param {NS} ns */
|
||||
export async function main(ns) {
|
||||
let [sDivName, sCity, oCurrentGoods] = ns.args;
|
||||
oCurrentGoods = JSON.parse(oCurrentGoods);
|
||||
ns.corporation.sellMaterial(sDivName,sCity,oCurrentGoods.sMaterialName,oCurrentGoods.yAmount,oCurrentGoods.yPrice);
|
||||
ns.writePort(ns.pid, true);
|
||||
}
|
||||
Reference in New Issue
Block a user