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); }
private int GetPolicyImpact(ReligionPolicy policy) { return(policy.Value * GetBaseImpact(policy)); }