public Government BranchGovernment(Government gov, CultureParser culture) { var newGov = gov.Mutate(10); { if (newGov.type == "nomadic") { newGov.type = "tribal"; newGov.SetType(newGov.type); } } do { newGov.name = culture.dna.GetMaleName(); } while (LanguageManager.instance.Get(StarNames.SafeName(newGov.name) + "_government") != null); string s = newGov.name; newGov.name = StarNames.SafeName(newGov.name) + "_government"; LanguageManager.instance.Add(newGov.name, s); culture.Governments.Add(newGov); if (!newGov.cultureAllow.Contains(culture.Name)) newGov.cultureAllow.Add(culture.Name); return newGov; }
public Government BranchGovernment(Government gov, CultureParser culture) { var newGov = gov.Mutate(10); { if (newGov.type == "nomadic") { newGov.type = "tribal"; newGov.SetType(newGov.type); } } do { newGov.name = culture.dna.GetMaleName(); } while (LanguageManager.instance.Get(StarNames.SafeName(newGov.name) + "_government") != null); string s = newGov.name; newGov.name = StarNames.SafeName(newGov.name) + "_government"; LanguageManager.instance.Add(newGov.name, s); culture.Governments.Add(newGov); if (!newGov.cultureAllow.Contains(culture.Name)) { newGov.cultureAllow.Add(culture.Name); } return(newGov); }
public Government CreateNewGovernment(CultureParser culture) { Government g = new Government(); g.type = "tribal"; Government r = g.Mutate(8); r.name = culture.dna.GetMaleName(); string s = r.name; r.name = StarNames.SafeName(r.name) + "_government"; LanguageManager.instance.Add(r.name, s); culture.Governments.Add(r); r.SetType(r.type); if (!r.cultureAllow.Contains(culture.Name)) { r.cultureAllow.Add(culture.Name); // governments.Add(r); } return(r); }
public Government CreateNewGovernment(CultureParser culture) { Government g = new Government(); g.type = "tribal"; Government r = g.Mutate(8); r.name = culture.dna.GetMaleName(); string s = r.name; r.name = StarNames.SafeName(r.name) + "_government"; LanguageManager.instance.Add(r.name, s); culture.Governments.Add(r); r.SetType(r.type); if (!r.cultureAllow.Contains(culture.Name)) r.cultureAllow.Add(culture.Name); // governments.Add(r); return r; }