mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-30 03:23:48 +01:00
dc9b1050bf
Includes my change and a bunch of prior changes
26 lines
710 B
Markdown
26 lines
710 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
|
|
[Home](./index.md) > [bitburner](./bitburner.md) > [ReputationFormulas](./bitburner.reputationformulas.md) > [repFromDonation](./bitburner.reputationformulas.repfromdonation.md)
|
|
|
|
## ReputationFormulas.repFromDonation() method
|
|
|
|
Calculate how much rep would be gained.
|
|
|
|
**Signature:**
|
|
|
|
```typescript
|
|
repFromDonation(amount: number, player: Person): number;
|
|
```
|
|
|
|
## Parameters
|
|
|
|
| Parameter | Type | Description |
|
|
| --- | --- | --- |
|
|
| amount | number | Amount of money donated |
|
|
| player | [Person](./bitburner.person.md) | Player info, typically from [getPlayer](./bitburner.ns.getplayer.md) |
|
|
|
|
**Returns:**
|
|
|
|
number
|
|
|