コード例 #1
0
        static public string GetRandomAdjective(GameplayAffinityType iAffinity)
        {
            var adjectiveList = _adjectiveList[(int)iAffinity];

            if (adjectiveList.Count() == 0)
            {
                return("");
            }

            return(adjectiveList[_rand.Next(adjectiveList.Count())]);
        }
コード例 #2
0
        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;
            }
        }