Sync
This commit is contained in:
7
Ramses/home/corp/CreateCorp.js
Normal file
7
Ramses/home/corp/CreateCorp.js
Normal 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);
|
||||
}
|
||||
|
||||
5
Ramses/home/corp/HasCorp.js
Normal file
5
Ramses/home/corp/HasCorp.js
Normal file
@@ -0,0 +1,5 @@
|
||||
/** @param {NS} ns */
|
||||
export async function main(ns) {
|
||||
ns.writePort(ns.pid,ns.corporation.hasCorporation());
|
||||
}
|
||||
|
||||
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