mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-23 09:42:53 +02:00
CORPORATION: Corp changes prior to 2.3 finalization (#503)
This commit is contained in:
@@ -55,19 +55,17 @@ export function Corporation(): React.ReactElement {
|
||||
|
||||
function finishCorporationProducts(): void {
|
||||
if (!Player.corporation) return;
|
||||
Player.corporation.divisions.forEach((div) => {
|
||||
Object.keys(div.products).forEach((prod) => {
|
||||
const product = div.products[prod];
|
||||
if (product === undefined) throw new Error("Impossible product undefined");
|
||||
product.prog = 99.9;
|
||||
});
|
||||
});
|
||||
for (const division of Player.corporation.divisions.values()) {
|
||||
for (const product of division.products.values()) {
|
||||
product.developmentProgress = 99.9;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function addCorporationResearch(): void {
|
||||
if (!Player.corporation) return;
|
||||
Player.corporation.divisions.forEach((div) => {
|
||||
div.sciResearch += 1e10;
|
||||
div.researchPoints += 1e10;
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user