Checking for known / shrouded units now calculated with actual total_minted at that moment

This commit is contained in:
mic0 2024-10-26 13:53:23 +02:00
parent 84c0aeff03
commit 54b370f41b
Signed by: mico
GPG Key ID: A3F8023524CF1C8D

View File

@ -106,7 +106,7 @@ const Army = () => {
const setAvailabilities = useCallback(() => {
if (isRegistered) {
const totalMinted = player?.total_minted ?? BigInt(0);
const totalMinted = (player?.total_minted ?? BigInt(0)) + (balanceCount.current - (balance ?? BigInt(0)));
const n_units: Record<UnitType, number> = {
0: army?.moloch_denier.level ?? 0,
1: army?.apprentice.level ?? 0,