public int GetCost()
        {
            if (EntryCostDatabase.IsUnlocked(name))
            {
                return(0);
            }

            int c = cost;

            foreach (string s in children)
            {
                c += EntryCostDatabase.GetCost(s);
            }

            return(c);
        }
Exemplo n.º 2
0
 public bool ConfigUnlocked(string cfgName)
 {
     return(EntryCostDatabase.IsUnlocked(cfgName));
 }