-
Beta Was this translation helpful? Give feedback.
Answered by
taradinoc
Jul 8, 2023
Replies: 1 comment
-
To calculate homebase power level, you need to fetch the profile ( |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
LeleDerGrasshalmi
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.