This commit is contained in:
Philipp
2024-10-13 23:07:09 +02:00
parent a9579764cd
commit 15bf3332af
5 changed files with 45 additions and 2 deletions

View File

@@ -0,0 +1,7 @@
/** @param {NS} ns */
export async function main(ns) {
let [sCorpName] = ns.args;
ns.corporation.createCorporation(sCorpName,false)
ns.writePort(ns.pid, true);
}

View File

@@ -0,0 +1,5 @@
/** @param {NS} ns */
export async function main(ns) {
ns.writePort(ns.pid,ns.corporation.hasCorporation());
}

View 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);
}