def __init__(self, unitName, unitLocality, unitLocationTuple, business): Unit.__init__(self, unitName, unitLocality, unitLocationTuple, business) self.missions[d.MANU_INDEX] = True d.addUnit(self) if self.business is not None: self.business.addUnit(self)
def __init__(self, unitName, unitLocality, unitLocationTuple, business): Manufactury.__init__(self, unitName, unitLocality, unitLocationTuple, business) self.can_make[d.GRAIN_INDEX] = True self.tech[d.GRAIN_INDEX] = 4.5 self.stock[d.GRAIN_INDEX] = 50 # self.DMC[d.GRAIN_INDEX] = 1 self.failSales[d.GRAIN_INDEX] = 500 d.addUnit(self) if self.business is not None: self.business.addUnit(self)
def __init__(self, unitLocality, unitLocationTuple, business=None, unitName="House"): Unit.__init__(self, unitName, unitLocality, unitLocationTuple, business) self.missions[d.HOME_INDEX] = True self.tenants = set() d.addUnit(self) if self.business is not None: self.business.addUnit(self)
def __init__(self, unitName, unitLocality, unitLocationTuple, business): Manufactury.__init__(self, unitName, unitLocality, unitLocationTuple, business) self.can_make[d.BREAD_INDEX] = True self.tech[d.BREAD_INDEX] = 60 self.missions[d.MANU_INDEX] = True self.missions[d.STORE_INDEX] = True self.stock[d.FLOUR_INDEX] = 50 # self.DMC[d.FLOUR_INDEX] = 1 self.failSales[d.BREAD_INDEX] = 500 d.addUnit(self) if self.business is not None: self.business.addUnit(self)