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); } }
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; }
internal override void setValue(AbstractReformValue selectedReform) { status = (LocalReformValue)selectedReform; }
public UnemploymentSubsidies(Country country) : base("Unemployment Subsidies", "", country) { status = None; }
public MinimalWage(Country country) : base("Minimal wage", "", country) { status = None; }