static public string GetRandomAdjective(GameplayAffinityType iAffinity) { var adjectiveList = _adjectiveList[(int)iAffinity]; if (adjectiveList.Count() == 0) { return(""); } return(adjectiveList[_rand.Next(adjectiveList.Count())]); }
public GameplayAffinity(GameplayAffinityType iType, int iScoreModifier) : base((int)iType, iType.ToString(), iScoreModifier) { _type = iType; _factionTraitExclusionList = new List <int>(); if (iType == GameplayAffinityType.AffinityGameplayVampirilis || iType == GameplayAffinityType.AffinityGameplayUmbralChoir) { _canHaveMinorPop = false; } else { _canHaveMinorPop = true; } }