mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-08 08:43:53 +01:00
DOCUMENTATION: Fix wrong description of ns.singularity.applyToCompany (#1561)
This commit is contained in:
parent
23f98c1ff6
commit
5427ae71ca
@ -23,7 +23,7 @@ applyToCompany(companyName: CompanyName | `${CompanyName}`, field: JobField | `$
|
||||
|
||||
[JobName](./bitburner.jobname.md) \| null
|
||||
|
||||
True if the player successfully get a job/promotion, and false otherwise.
|
||||
Job name if the player successfully get a job/promotion, and null otherwise.
|
||||
|
||||
## Remarks
|
||||
|
||||
@ -31,5 +31,5 @@ RAM cost: 3 GB \* 16/4/1
|
||||
|
||||
This function will automatically try to apply to the specified company for a position in the specified field. This function can also be used to apply for promotions by specifying the company and field you are already employed at.
|
||||
|
||||
This function will return true if you successfully get a job/promotion, and false otherwise. Note that if you are trying to use this function to apply for a promotion and don’t get one, the function will return false.
|
||||
This function will return the job name if you successfully get a job/promotion, and null otherwise. Note that if you are trying to use this function to apply for a promotion and don’t get one, the function will return null.
|
||||
|
||||
|
8
src/ScriptEditor/NetscriptDefinitions.d.ts
vendored
8
src/ScriptEditor/NetscriptDefinitions.d.ts
vendored
@ -2046,13 +2046,13 @@ export interface Singularity {
|
||||
* apply for promotions by specifying the company and field you are already
|
||||
* employed at.
|
||||
*
|
||||
* This function will return true if you successfully get a job/promotion,
|
||||
* and false otherwise. Note that if you are trying to use this function to
|
||||
* apply for a promotion and don’t get one, the function will return false.
|
||||
* This function will return the job name if you successfully get a job/promotion,
|
||||
* and null otherwise. Note that if you are trying to use this function to
|
||||
* apply for a promotion and don’t get one, the function will return null.
|
||||
*
|
||||
* @param companyName - Name of company to apply to.
|
||||
* @param field - Field to which you want to apply.
|
||||
* @returns True if the player successfully get a job/promotion, and false otherwise.
|
||||
* @returns Job name if the player successfully get a job/promotion, and null otherwise.
|
||||
*/
|
||||
applyToCompany(companyName: CompanyName | `${CompanyName}`, field: JobField | `${JobField}`): JobName | null;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user