Ejemplo n.º 1
0
 def extra(self):
     return self.nation.healthcare < 100 and utils.econsystem(
         self.nation.economy) > 0
Ejemplo n.º 2
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"
Ejemplo n.º 3
0
 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!"
Ejemplo n.º 4
0
 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"
Ejemplo n.º 5
0
 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!"
Ejemplo n.º 6
0
 def extra(self):
     return utils.econsystem(self.nation.economy) > 0
Ejemplo n.º 7
0
 def extra(self):
     return utils.econsystem(self.nation.economy) > 0  #no commies allowed
Ejemplo n.º 8
0
 def extra(self):
     return utils.econsystem(
         self.nation.economy) < 2 and self.nation.approval < 100
Ejemplo n.º 9
0
 def extra(self):
     return utils.econsystem(
         self.nation.economy) > 0 and self.nation.farmland(
         ) >= self.nation.landcost('wells')
Ejemplo n.º 10
0
 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"
Ejemplo n.º 11
0
 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!"
Ejemplo n.º 12
0
 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
Ejemplo n.º 13
0
def econsystem(econ):
    return mark_safe('<span>%s</span>' % v.economy[utils.econsystem(econ)])