mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-22 14:12:27 +01:00
27 lines
851 B
Markdown
27 lines
851 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
|
|
[Home](./index.md) > [bitburner](./bitburner.md) > [WorkFormulas](./bitburner.workformulas.md) > [factionGains](./bitburner.workformulas.factiongains.md)
|
|
|
|
## WorkFormulas.factionGains() method
|
|
|
|
**Signature:**
|
|
|
|
```typescript
|
|
factionGains(person: Person, workType: FactionWorkType | `${FactionWorkType}`, favor: number): WorkStats;
|
|
```
|
|
|
|
## Parameters
|
|
|
|
| Parameter | Type | Description |
|
|
| --- | --- | --- |
|
|
| person | [Person](./bitburner.person.md) | |
|
|
| workType | [FactionWorkType](./bitburner.factionworktype.md) \| \`${[FactionWorkType](./bitburner.factionworktype.md)<!-- -->}\` | |
|
|
| favor | number | |
|
|
|
|
**Returns:**
|
|
|
|
[WorkStats](./bitburner.workstats.md)
|
|
|
|
The WorkStats applied every game cycle (200ms) by performing the specified faction work.
|
|
|