mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-26 17:43:48 +01:00
typo
This commit is contained in:
parent
f6f023eeb4
commit
0fdf74ceeb
@ -207,7 +207,7 @@ export function NetscriptCorporation(): InternalAPI<NSCorporation> {
|
|||||||
function bribe(factionName: string, amountCash: number): boolean {
|
function bribe(factionName: string, amountCash: number): boolean {
|
||||||
if (!player.factions.includes(factionName)) throw new Error("Invalid faction name");
|
if (!player.factions.includes(factionName)) throw new Error("Invalid faction name");
|
||||||
if (isNaN(amountCash) || amountCash < 0)
|
if (isNaN(amountCash) || amountCash < 0)
|
||||||
throw new Error("Invalid value for amount field! Must be numeric, grater than 0.");
|
throw new Error("Invalid value for amount field! Must be numeric, greater than 0.");
|
||||||
|
|
||||||
const corporation = getCorporation();
|
const corporation = getCorporation();
|
||||||
if (corporation.funds < amountCash) return false;
|
if (corporation.funds < amountCash) return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user