2022-11-20 18:07:22 +01:00
|
|
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
|
|
|
|
|
|
[Home](./index.md) > [bitburner](./bitburner.md) > [WorkFormulas](./bitburner.workformulas.md) > [companyGains](./bitburner.workformulas.companygains.md)
|
|
|
|
|
|
|
|
## WorkFormulas.companyGains() method
|
|
|
|
|
2023-02-11 19:18:50 +01:00
|
|
|
**Signature:**
|
2022-11-20 18:07:22 +01:00
|
|
|
|
|
|
|
```typescript
|
2023-08-16 23:31:41 +02:00
|
|
|
companyGains(
|
|
|
|
person: Person,
|
|
|
|
companyName: CompanyName | `${CompanyName}`,
|
|
|
|
workType: JobName | `${JobName}`,
|
|
|
|
favor: number,
|
|
|
|
): WorkStats;
|
2022-11-20 18:07:22 +01:00
|
|
|
```
|
|
|
|
|
|
|
|
## Parameters
|
|
|
|
|
|
|
|
| Parameter | Type | Description |
|
|
|
|
| --- | --- | --- |
|
|
|
|
| person | [Person](./bitburner.person.md) | |
|
2023-08-16 23:31:41 +02:00
|
|
|
| companyName | [CompanyName](./bitburner.companyname.md) \| \`${[CompanyName](./bitburner.companyname.md)<!-- -->}\` | |
|
2022-12-30 02:28:53 +01:00
|
|
|
| workType | [JobName](./bitburner.jobname.md) \| \`${[JobName](./bitburner.jobname.md)<!-- -->}\` | |
|
2022-11-20 18:07:22 +01:00
|
|
|
| favor | number | |
|
|
|
|
|
2023-02-11 19:18:50 +01:00
|
|
|
**Returns:**
|
2022-11-20 18:07:22 +01:00
|
|
|
|
|
|
|
[WorkStats](./bitburner.workstats.md)
|
|
|
|
|
|
|
|
The WorkStats applied every game cycle (200ms) by performing the specified company work.
|
|
|
|
|