DOCUMENTATION: Fix wrong description of ns.singularity.applyToCompany (#1561)

This commit is contained in:
catloversg 2024-08-14 05:28:02 +07:00 committed by GitHub
parent 23f98c1ff6
commit 5427ae71ca
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 6 deletions

@ -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 dont 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 dont get one, the function will return null.

@ -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 dont 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 dont 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;