mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-10 09:43:54 +01:00
fix selfFund was reversed
This commit is contained in:
parent
9c579e294a
commit
b224321222
@ -976,7 +976,7 @@ export function NetscriptCorporation(): InternalAPI<NSCorporation> {
|
|||||||
(ctx: NetscriptContext) =>
|
(ctx: NetscriptContext) =>
|
||||||
(_corporationName: unknown, _selfFund: unknown = true): boolean => {
|
(_corporationName: unknown, _selfFund: unknown = true): boolean => {
|
||||||
const corporationName = helpers.string(ctx, "corporationName", _corporationName);
|
const corporationName = helpers.string(ctx, "corporationName", _corporationName);
|
||||||
const selfFund = !_selfFund;
|
const selfFund = !!_selfFund;
|
||||||
return createCorporation(corporationName, selfFund);
|
return createCorporation(corporationName, selfFund);
|
||||||
},
|
},
|
||||||
hasUnlockUpgrade:
|
hasUnlockUpgrade:
|
||||||
|
Loading…
Reference in New Issue
Block a user