Checking for known / shrouded units now calculated with actual total_minted at that moment
This commit is contained in:
parent
84c0aeff03
commit
54b370f41b
@ -106,7 +106,7 @@ const Army = () => {
|
|||||||
|
|
||||||
const setAvailabilities = useCallback(() => {
|
const setAvailabilities = useCallback(() => {
|
||||||
if (isRegistered) {
|
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> = {
|
const n_units: Record<UnitType, number> = {
|
||||||
0: army?.moloch_denier.level ?? 0,
|
0: army?.moloch_denier.level ?? 0,
|
||||||
1: army?.apprentice.level ?? 0,
|
1: army?.apprentice.level ?? 0,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user