示例#1
0
        public override void SetValue(IReformValue selectedReform)
        {
            base.SetValue(selectedReform);
            typedValue = selectedReform as GovernmentReformValue;
            owner.setPrefix();

            if (typedValue == Tribal)
            {
                owner.economy.SetValue(Economy.StateCapitalism);
                //owner.serfdom.setValue(Serfdom.AbolishedAndNationalized);
                owner.minimalWage.SetValue(MinimalWage.None);
                owner.unemploymentSubsidies.SetValue(UnemploymentSubsidies.None);
                owner.minorityPolicy.SetValue(MinorityPolicy.Residency);
                owner.taxationForPoor.SetValue(Tribal.defaultPoorTax);
                //owner.taxationForRich.setValue(TaxationForRich.PossibleStatuses[10]);
            }
            else
            if (typedValue == Aristocracy)
            {
                owner.economy.SetValue(Economy.StateCapitalism);
                //owner.serfdom.setValue(Serfdom.AbolishedAndNationalizated);
                owner.minimalWage.SetValue(MinimalWage.None);
                owner.unemploymentSubsidies.SetValue(UnemploymentSubsidies.None);
                owner.minorityPolicy.SetValue(MinorityPolicy.Residency);
                //owner.taxationForPoor.setValue(TaxationForPoor.PossibleStatuses[5]);
                owner.taxationForRich.SetValue(Aristocracy.defaultRichTax);
            }
            else
            if (typedValue == Polis)
            {
                if (owner.economy == Economy.PlannedEconomy)
                {
                    owner.economy.SetValue(Economy.StateCapitalism);
                }
                //owner.serfdom.setValue(Serfdom.AbolishedAndNationalizated);
                //owner.minimalWage.setValue(MinimalWage.None);
                //owner.unemploymentSubsidies.setValue(UnemploymentSubsidies.None);
                //owner.minorityPolicy.setValue(MinorityPolicy.Residency);
                //owner.taxationForPoor.setValue(TaxationForPoor.PossibleStatuses[5]);
                //owner.taxationForRich.setValue(TaxationForRich.PossibleStatuses[10]);
            }
            else
            if (typedValue == Despotism)
            {
                owner.economy.SetValue(Economy.StateCapitalism);
                //owner.serfdom.setValue(Serfdom.AbolishedAndNationalizated);
                //owner.minimalWage.setValue(MinimalWage.None);
                //owner.unemploymentSubsidies.setValue(UnemploymentSubsidies.None);
                //owner.minorityPolicy.setValue(MinorityPolicy.Equality);
                //owner.taxationForPoor.setValue(TaxationForPoor.PossibleStatuses[5]);
                //owner.taxationForRich.setValue(TaxationForRich.PossibleStatuses[10]);
            }
            else
            if (typedValue == Theocracy)
            {
                owner.economy.SetValue(Economy.StateCapitalism);
                //owner.serfdom.setValue(Serfdom.AbolishedAndNationalizated);
                //owner.minimalWage.setValue(MinimalWage.None);
                //owner.unemploymentSubsidies.setValue(UnemploymentSubsidies.None);
                owner.minorityPolicy.SetValue(MinorityPolicy.Equality);
                //owner.taxationForPoor.setValue(TaxationForPoor.PossibleStatuses[5]);
                //owner.taxationForRich.setValue(TaxationForRich.PossibleStatuses[10]);
            }
            else
            if (typedValue == WealthDemocracy)
            {
                owner.economy.SetValue(Economy.Interventionism);
                //owner.serfdom.setValue(Serfdom.AbolishedAndNationalizated);
                //owner.minimalWage.setValue(MinimalWage.None);
                //owner.unemploymentSubsidies.setValue(UnemploymentSubsidies.None);
                //owner.minorityPolicy.setValue(MinorityPolicy.Equality);
                //owner.taxationForPoor.setValue(TaxationForPoor.PossibleStatuses[5]);
                //owner.taxationForRich.setValue(TaxationForRich.PossibleStatuses[10]);
            }
            else
            if (typedValue == Democracy)
            {
                if (owner.economy == Economy.PlannedEconomy)
                {
                    owner.economy.SetValue(Economy.LaissezFaire);
                }
                //owner.serfdom.setValue(Serfdom.AbolishedAndNationalizated);
                //owner.minimalWage.setValue(MinimalWage.None);
                //owner.unemploymentSubsidies.setValue(UnemploymentSubsidies.None);
                //owner.minorityPolicy.setValue(MinorityPolicy.Equality);
                //owner.taxationForPoor.setValue(TaxationForPoor.PossibleStatuses[5]);
                //owner.taxationForRich.setValue(TaxationForRich.PossibleStatuses[10]);
            }
            else
            if (typedValue == BourgeoisDictatorship)
            {
                owner.economy.SetValue(Economy.LaissezFaire);
                //owner.serfdom.setValue(Serfdom.AbolishedAndNationalizated);
                owner.minimalWage.SetValue(MinimalWage.None);
                owner.unemploymentSubsidies.SetValue(UnemploymentSubsidies.None);
                owner.minorityPolicy.SetValue(MinorityPolicy.Equality);
                owner.taxationForPoor.SetValue(BourgeoisDictatorship.defaultPoorTax);
                owner.taxationForRich.SetValue(BourgeoisDictatorship.defaultRichTax);
            }
            else
            if (typedValue == Junta)
            {
                owner.economy.SetValue(Economy.StateCapitalism);
                //owner.serfdom.setValue(Serfdom.AbolishedAndNationalizated);
                //owner.minimalWage.setValue(MinimalWage.None);
                //owner.unemploymentSubsidies.setValue(UnemploymentSubsidies.None);
                //owner.minorityPolicy.setValue(MinorityPolicy.Equality);
                //owner.taxationForPoor.setValue(TaxationForPoor.PossibleStatuses[5]);
                //owner.taxationForRich.setValue(TaxationForRich.PossibleStatuses[10]);
            }
            else
            if (typedValue == ProletarianDictatorship)
            {
                owner.economy.SetValue(Economy.PlannedEconomy);
                //owner.serfdom.setValue(Serfdom.AbolishedAndNationalizated);
                owner.minimalWage.SetValue(MinimalWage.None);
                owner.unemploymentSubsidies.SetValue(UnemploymentSubsidies.None);
                owner.minorityPolicy.SetValue(MinorityPolicy.Equality);
                owner.taxationForPoor.SetValue(ProletarianDictatorship.defaultPoorTax);
                owner.taxationForRich.SetValue(ProletarianDictatorship.defaultRichTax);

                //nationalization
                owner.Bank.Nationalize();

                foreach (var province in owner.AllProvinces)
                {
                    OnReformEnactedInProvince(province);
                }
            }
            if (owner == Game.Player)
            {
                //MainCamera.refreshAllActive();
                UIEvents.RiseSomethingVisibleToPlayerChangedInWorld(EventArgs.Empty, this);
            }
        }