The kingdom shares a common treasury (panel on the right of the screen).
• Money ◆: every emerald picked up goes into it. « Withdraw 10 ◆ » (Monolith) turns it back into emeralds for merchants. • Stone, Wood, Iron: +1 per natural block broken (placed blocks don't count). A destroyed deposit gives Stone and Iron, a felled tree gives Wood (based on size). • Breach Essence: Catalyst destroyed +3, Guardians defeated +5, breach exhausted +5, boss +3. Deposits and trees give some too.
These resources pay for upgrades, defenses, walls, traps and the Town Hall.