def __init__(self, **kwargs): self.firm_name = kwargs['name'] self.cash = kwargs['cash'] self.debt = kwargs['debt'] self.cannons = kwargs['cannons'] self.bank = 0 self.maxshiphold = kwargs['shiphold'] self.currentshiphold = 0 Product.create_products() City.create_cities() self.current_city = City.cities[0] self.current_date = datetime.datetime(1820, 1, 1)
def __init__(self, **args): self.cash = args['cash'] self.debt = args['debt'] self.cannons = args['cannons'] self.bank = 0 self.maxshiphold = args['shiphold'] self.ship_health = 100 self.currentshiphold = 0 # Create Products Product.create_products() # Create Cities load_city_data(City) self.currentcity = City.cities[0] self.current_date = datetime.datetime(2020, 5, 20, 13, 20, 59, 55) self.firm_name = args['firm_name']