Skip to content

Get STW Power level? #127

Closed Answered by taradinoc
mirronake asked this question in Q&A
Discussion options

You must be logged in to vote

To calculate homebase power level, you need to fetch the profile (QueryPublicProfile endpoint), calculate its FORT stats based on its slotted survivors and research upgrades, then convert the FORT stats to power level. See https://github.com/fnbrjs/fnbr.js/blob/0cfe1edacdd185c10ca05c837e6e9fb989b7b167/src/structures/stw/STWProfile.ts#L235-L242 for an implementation.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by LeleDerGrasshalmi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants