fix selfFund was reversed

This commit is contained in:
Risenafis 2022-08-20 23:37:39 +09:00
parent 9c579e294a
commit b224321222
No known key found for this signature in database
GPG Key ID: BE384EF55246A3F8

@ -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: