Exemple #1
0
            public override Procent howIsItGoodForPop(PopUnit pop)
            {
                Procent result;

                if (pop.getVotingPower(this) > pop.getVotingPower(pop.Country.government.typedValue))
                {
                    //if (this == Tribal)
                    //    result = new Procent(0.8f);
                    //else
                    result = new Procent(1f);
                }
                else if (this == ProletarianDictatorship)
                {
                    result = new Procent(0.5f);
                }
                else if (this == Despotism && pop.needsFulfilled.get() < 0.1f)
                {
                    result = new Procent(1f);
                }
                else if (this == Tribal)
                {
                    result = new Procent(0.3f);
                }
                else
                {
                    result = new Procent(0f);
                }
                return(result);
            }