2022-10-21 17:16:00 +02:00
|
|
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
|
|
|
|
|
|
[Home](./index.md) > [bitburner](./bitburner.md) > [HackingFormulas](./bitburner.hackingformulas.md) > [hackExp](./bitburner.hackingformulas.hackexp.md)
|
|
|
|
|
|
|
|
## HackingFormulas.hackExp() method
|
|
|
|
|
|
|
|
Calculate hack exp for one thread.
|
|
|
|
|
|
|
|
<b>Signature:</b>
|
|
|
|
|
|
|
|
```typescript
|
2022-11-20 18:07:22 +01:00
|
|
|
hackExp(server: Server, player: Person): number;
|
2022-10-21 17:16:00 +02:00
|
|
|
```
|
|
|
|
|
|
|
|
## Parameters
|
|
|
|
|
|
|
|
| Parameter | Type | Description |
|
|
|
|
| --- | --- | --- |
|
|
|
|
| server | [Server](./bitburner.server.md) | Server info from [getServer](./bitburner.ns.getserver.md) |
|
2022-11-20 18:07:22 +01:00
|
|
|
| player | [Person](./bitburner.person.md) | Player info from [getPlayer](./bitburner.ns.getplayer.md) |
|
2022-10-21 17:16:00 +02:00
|
|
|
|
|
|
|
<b>Returns:</b>
|
|
|
|
|
|
|
|
number
|
|
|
|
|
|
|
|
The calculated hack exp.
|
|
|
|
|
|
|
|
## Remarks
|
|
|
|
|
|
|
|
Multiply by thread to get total exp
|
|
|
|
|