Ejemplo n.º 1
0
        internal override bool isAvailable(Country country)
        {
            LocalReformValue requested = this;

            //alowed
            if ((requested.ID == 4) && country.isInvented(InventionType.collectivism) && (country.serfdom.status.ID == 0 || country.serfdom.status.ID == 1 || country.serfdom.status.ID == 4))
            {
                return(true);
            }
            else
            if ((requested.ID == 3) && country.isInvented(InventionType.banking) && (country.serfdom.status.ID == 0 || country.serfdom.status.ID == 1 || country.serfdom.status.ID == 3))
            {
                return(true);
            }
            else
            if ((requested.ID == 2) && (country.serfdom.status.ID == 0 || country.serfdom.status.ID == 1 || country.serfdom.status.ID == 2))
            {
                return(true);
            }
            else
            if ((requested.ID == 1) && (country.serfdom.status.ID == 0 || country.serfdom.status.ID == 1))
            {
                return(true);
            }
            else
            if ((requested.ID == 0))
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }
Ejemplo n.º 2
0
 public Serfdom(Country country) : base("Serfdom", "Aristocrats privilegies", country)
 {
     Allowed = new LocalReformValue("Allowed", "Peasants and other plebs pay 10% of income to Aristocrats", 0,
                                    new ConditionsList(new List <Condition>()
     {
         Economy.isNotMarket
     }));
     Brutal = new LocalReformValue("Brutal", "Peasants and other plebs pay 20% of income to Aristocrats", 1,
                                   new ConditionsList(new List <Condition>()
     {
         Economy.isNotMarket
     }));
     status = Allowed;
 }
Ejemplo n.º 3
0
 internal override void setValue(AbstractReformValue selectedReform)
 {
     status = (LocalReformValue)selectedReform;
 }
Ejemplo n.º 4
0
 public UnemploymentSubsidies(Country country) : base("Unemployment Subsidies", "", country)
 {
     status = None;
 }
Ejemplo n.º 5
0
 public MinimalWage(Country country) : base("Minimal wage", "", country)
 {
     status = None;
 }