def extra(self): return self.nation.healthcare < 100 and utils.econsystem( self.nation.economy) > 0
def errors(self): if self.nation.healthcare == 100: return "We've run out of guinea pigs!" elif utils.econsystem(self.nation.economy) == 0: return "Not available to communists"
def errors(self): if utils.econsystem(self.nation.economy) == 0: return "As an egalitarian paradise we have abolished wages!" elif self.nation.growth < self.requirements['growth']: return "Not enough growth to support higher wages!"
def errors(self): if self.nation.healthcare == 100: return "Our healthcare is already the best in the world!" elif utils.econsystem(self.nation.economy) == 2: return "Not available to free markets"
def errors(self): if utils.econsystem(self.nation.economy) == 2: return "Not available in free markets" elif self.nation.approval == 100: return "We already have more houses than people!"
def extra(self): return utils.econsystem(self.nation.economy) > 0
def extra(self): return utils.econsystem(self.nation.economy) > 0 #no commies allowed
def extra(self): return utils.econsystem( self.nation.economy) < 2 and self.nation.approval < 100
def extra(self): return utils.econsystem( self.nation.economy) > 0 and self.nation.farmland( ) >= self.nation.landcost('wells')
def errors(self): if self.nation.farmland() < self.nation.landcost('mines'): return "Not enough unused land!" elif utils.econsystem(self.nation.economy) == 0: return "Foreign corporations refuse to invest in communist economies"
def errors(self): if self.nation.econdata.nationalize > 0: return "You can only nationalize or privatize once per turn!" elif utils.econsystem(self.nation.economy) == 0: return "There is nothing left to nationalize!"
def extra(self): #base class is not set up for related models return self.nation.econdata.nationalize == 0 and utils.econsystem( self.nation.economy) != 0
def econsystem(econ): return mark_safe('<span>%s</span>' % v.economy[utils.econsystem(econ)])