How to obtain a Citadel

A citadel is being obtained by fully building everything in the castle. The upgrade costs 100,000 gold.