2021-11-04 01:19:52 +01:00
|
|
|
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
|
|
|
|
|
|
|
|
[Home](./index.md) > [bitburner](./bitburner.md) > [Singularity](./bitburner.singularity.md) > [getStats](./bitburner.singularity.getstats.md)
|
|
|
|
|
|
|
|
|
|
## Singularity.getStats() method
|
|
|
|
|
|
|
|
|
|
> Warning: This API is now obsolete.
|
|
|
|
|
>
|
2021-12-03 20:12:32 +01:00
|
|
|
|
> use getPlayer
|
2021-11-04 01:19:52 +01:00
|
|
|
|
>
|
|
|
|
|
|
2022-01-16 00:39:37 +01:00
|
|
|
|
Returns an object with the Player’s stats.
|
2021-12-03 20:12:32 +01:00
|
|
|
|
|
2021-11-04 01:19:52 +01:00
|
|
|
|
<b>Signature:</b>
|
|
|
|
|
|
|
|
|
|
```typescript
|
|
|
|
|
getStats(): PlayerSkills;
|
|
|
|
|
```
|
|
|
|
|
<b>Returns:</b>
|
|
|
|
|
|
|
|
|
|
[PlayerSkills](./bitburner.playerskills.md)
|
|
|
|
|
|
|
|
|
|
Object with the Player’s stats.
|
|
|
|
|
|
|
|
|
|
## Remarks
|
|
|
|
|
|
2022-01-16 00:39:37 +01:00
|
|
|
|
RAM cost: 0.5 GB \* 16/4/1
|
2021-11-04 01:19:52 +01:00
|
|
|
|
|
|
|
|
|
## Example
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
```ts
|
|
|
|
|
res = getStats();
|
|
|
|
|
print('My charisma level is: ' + res.charisma);
|
|
|
|
|
```
|
|
|
|
|
|