예제 #1
0
        private int GetBaseImpact(ReligionPolicy policy)
        {
            if (policy.Religion != Religion)
            {
                return(0);
            }

            int value = MediumImpactPopularity;

            if (HasMentality(MentalityType.Religious))
            {
                value *= 2;
            }
            if (HasMentality(MentalityType.Secular))
            {
                value /= 2;
            }
            return(value);
        }
예제 #2
0
 private int GetPolicyImpact(ReligionPolicy policy)
 {
     return(policy.Value * GetBaseImpact(policy));
 }