def cadastrarCargo(): try: cargo = Cargo(tela.lineCargo.text()) database.inserirCargo(tela.lineCargo.text()) tela.lineCargo.setText("") #msg = QMessageBox(None) #msg.setWindowTitle("Cadastro Realizado") #msg.setIcon(QMessageBox.Information) #msg.setText("Cadastro realizado com sucesso!") #msg.exec_() #msg.show() print("Cadastro realizado com sucesso") except ValueError: #msg = QMessageBox(None) #msg.setWindowTitle("Erro") #msg.setIcon(QMessageBox.Critical) #msg.setText("Por favor, primeiro digite o nome do cargo.") #msg.exec_() #msg.show() print("Por favor, primeiro digite o nome do cargo") except Warning: #msg = QMessageBox(None) #msg.setWindowTitle("Erro") #msg.setIcon(QMessageBox.Critical) #msg.setText("Cargo já cadastrado. Tente novamente.") #msg.exec_() #msg.show() print("Cargo já cadastrado. Tente novamente")
def FramMarketRefresh(): #先清空 for child in fram_market.winfo_children(): if (child.cget('text')!='货物') & (child.cget('text')!='价格'): child.destroy() for index,c in enumerate(person.market_cargos): if c['code'] == 'null': ttk.Label(fram_market, text="空",anchor=tk.W).grid(column=0, row=index+1,sticky='W') break ttk.Button(fram_market, text=Cargo().GetName(c['code']),width=12, command=lambda code=c['code']: click_market_cargo(code)).grid(column=0, row=index+1) ttk.Label(fram_market, text=c['price_cur'],width=8,anchor=tk.E).grid(column=1, row=index+1, sticky='E')
def __init__(self, nombre, apellido, duracion, nombreCargo, numeroLista, partidoPolitico, departamento, provincia): Persona.__init__(self, nombre, apellido, dni=None, anioNac=None, direccion=None) self.cargo = Cargo(duracion, nombreCargo) self.lista = Lista(numeroLista, partidoPolitico) self.distrito = Distrito(departamento, provincia)
def simple_sim(): routes = [ new_depot("Bluefield", [ Cargo('Utensils', "Washington"), Cargo('TVs', "Carrington") ]), new_depot("Jamestown", [ Cargo('Phones', "Dartfield"), Cargo('Computers', "Bloomington") ]), new_depot("Washington", []), new_depot("Carrington", [ Cargo('Toys', 'Bloomington') ]), new_depot("Bloomington", []), new_depot("Dartfield", []) ] t1 = Truck("Iron Giant", 4, [routes[0], routes[2], routes[4], routes[5]]) t2 = Truck("The Train", 2, [routes[0], routes[1], routes[3], routes[4], routes[5]]) trucks = [t1, t2] iteration = 1 all_trucks_stopped = False while not all_trucks_stopped: all_trucks_stopped = True # assume true output_all(routes, trucks, iteration) for t in trucks: if not t.has_stopped(): all_trucks_stopped = False # at least one truck is still moving d = t.current_depot() # get the current depot of the truck d.take_cargo(t) # the depot will take cargo to the truck d.give_cargo(t) # the depot will give cargo to the truck t.move() # the truck will move to the next depot # output_all(routes, trucks, iteration) iteration += 1
def FramRoomRefresh(): room_str='出租屋'+'('+str(person.cargo_cur)+'/'+str(person.cargo_max)+')' fram_room.configure(text=room_str) #先清空 for child in fram_room.winfo_children(): if (child.cget('text')!='货物') & (child.cget('text')!='买入价') & (child.cget('text')!='数量'): child.destroy() for index,c in enumerate(person.room_cargos): if c['code'] == 'null': ttk.Label(fram_room, text="空",anchor=tk.W).grid(column=0, row=index+1,sticky='W') break ttk.Button(fram_room, text=Cargo().GetName(c['code']),width=12, command=lambda code=c['code']: click_room_cargo(code)).grid(column=0, row=index+1) ttk.Label(fram_room, text=c['price_buy'],width=8,anchor=tk.E).grid(column=1, row=index+1, sticky='E') ttk.Label(fram_room, text=c['num'],width=8,anchor=tk.E).grid(column=2, row=index+1, sticky='E')
def click_market1(): global person #市场随机货物 person.market_cargos.clear() Cargo().Random(person.market_cargos) #存款计算利息 Interest() #天气随机 person.week += 1 person.weather = Weather().Random(person.weather) #健康 person.health -= random.randrange(0,3) if person.health < 0: person.health = 0 #面板刷新 FramTopRefresh() FramPersonRefresh() FramMarketRefresh() ArchiveShow() IsDead()
from cargo import Cargo cargo = Cargo( id="nuts", type_name="string(STR_CARGO_NAME_NUTS)", unit_name="string(STR_CARGO_NAME_NUTS)", type_abbreviation="string(STR_CID_NUTS)", sprite="NEW_CARGO_SPRITE", weight="0.25", # IRL sacks of nuts are lighter even than this, but eh is_freight="1", cargo_classes="bitmask(CC_PIECE_GOODS)", cargo_label="NUTS", # apart from TOWNGROWTH_PASSENGERS and TOWNGROWTH_MAIL, FIRS does not set any town growth effects; this has the intended effect of disabling food / water requirements for towns in desert and above snowline town_growth_effect="TOWNGROWTH_NONE", town_growth_multiplier="1.0", units_of_cargo="TTD_STR_BAGS", items_of_cargo="string(STR_CARGO_UNIT_NUTS)", penalty_lowerbound="4", single_penalty_length="40", price_factor=113, capacity_multiplier="1", icon_indices=(12, 2), )
from cargo import Cargo cargo = Cargo(id='gold', type_name='TTD_STR_CARGO_PLURAL_GOLD', unit_name='TTD_STR_CARGO_SINGULAR_GOLD', type_abbreviation='TTD_STR_ABBREV_GOLD', sprite='NEW_CARGO_SPRITE', weight='1.0', cargo_payment_list_colour='202', is_freight='1', cargo_classes='bitmask(CC_ARMOURED)', cargo_label='GOLD', town_growth_effect='TOWNGROWTH_NONE', town_growth_multiplier='1.0', units_of_cargo='TTD_STR_TONS', items_of_cargo='TTD_STR_QUANTITY_GOLD', penalty_lowerbound='30', single_penalty_length='255', price_factor='152', capacity_multiplier='1', icon_indices=(3, 2))
from cargo import Cargo cargo = Cargo( id="beans", type_name="string(STR_CARGO_NAME_BEANS)", unit_name="string(STR_CARGO_NAME_BEANS)", type_abbreviation="string(STR_CID_BEANS)", sprite="NEW_CARGO_SPRITE", weight="1.0", is_freight="1", cargo_classes="bitmask(CC_BULK)", cargo_label="BEAN", town_growth_effect="TOWNGROWTH_NONE", town_growth_multiplier="1.0", units_of_cargo="TTD_STR_TONS", items_of_cargo="string(STR_CARGO_UNIT_BEANS)", penalty_lowerbound="4", single_penalty_length="40", price_factor=119, capacity_multiplier="1", icon_indices=(6, 2), )
from cargo import Cargo cargo = Cargo( id="steel_sheet", type_name="string(STR_CARGO_NAME_STEEL_SHEET)", unit_name="string(STR_CARGO_NAME_STEEL_SHEET)", type_abbreviation="string(STR_CID_STEEL_SHEET)", sprite="NEW_CARGO_SPRITE", weight="1.0", is_freight="1", cargo_classes="bitmask(CC_PIECE_GOODS)", cargo_label="STSH", town_growth_effect="TOWNGROWTH_NONE", town_growth_multiplier="1.0", units_of_cargo="TTD_STR_TONS", items_of_cargo="string(STR_CARGO_UNIT_STEEL_SHEET)", penalty_lowerbound="14", single_penalty_length="255", capacity_multiplier="1", price_factor=139, icon_indices=(6, 5), )
from cargo import Cargo cargo = Cargo( id='slag', type_name='string(STR_CARGO_NAME_SLAG)', unit_name='string(STR_CARGO_NAME_SLAG)', type_abbreviation='string(STR_CID_SLAG)', sprite='NEW_CARGO_SPRITE', weight='1.0', cargo_payment_list_colour='24', is_freight='1', cargo_classes='bitmask(CC_BULK)', cargo_label='SLAG', town_growth_effect='TOWNGROWTH_NONE', town_growth_multiplier='1.0', units_of_cargo='TTD_STR_TONS', items_of_cargo='string(STR_CARGO_UNIT_SLAG)', penalty_lowerbound='30', single_penalty_length='255', price_factor= '50', # deliberately low, needed to space out cargo payments to allow unique rates capacity_multiplier='1', allow_animated_pixels= True, # slag uses fire cycle pixels, by design, so suppress NML pixel warnings icon_indices=(11, 3))
from cargo import Cargo cargo = Cargo( id="electrical_parts", type_name="string(STR_CARGO_NAME_ELECTRICAL_PARTS)", unit_name="string(STR_CARGO_NAME_ELECTRICAL_PARTS)", type_abbreviation="string(STR_CID_ELECTRICAL_PARTS)", sprite="NEW_CARGO_SPRITE", weight="1.0", is_freight="1", cargo_classes="bitmask(CC_PIECE_GOODS)", cargo_label="POWR", # apart from TOWNGROWTH_PASSENGERS and TOWNGROWTH_MAIL, FIRS does not set any town growth effects; this has the intended effect of disabling food / water requirements for towns in desert and above snowline town_growth_effect="TOWNGROWTH_NONE", town_growth_multiplier="1.0", units_of_cargo="TTD_STR_TONS", items_of_cargo="string(STR_CARGO_UNIT_ELECTRICAL_PARTS)", penalty_lowerbound="7", single_penalty_length="255", price_factor=148, capacity_multiplier="1", icon_indices=(5, 4), )
from cargo import Cargo cargo = Cargo( id="chemicals", type_name="string(STR_CARGO_NAME_CHEMICALS)", unit_name="string(STR_CARGO_NAME_CHEMICALS)", type_abbreviation="string(STR_CID_CHEMICALS)", sprite="NEW_CARGO_SPRITE", weight="1.2", # extra realism, per forum suggestion Nov 2017 is_freight="1", cargo_classes="bitmask(CC_LIQUID, CC_PIECE_GOODS, CC_HAZARDOUS)", cargo_label="RFPR", town_growth_effect="TOWNGROWTH_NONE", town_growth_multiplier="1.0", units_of_cargo="TTD_STR_LITERS", items_of_cargo="string(STR_CARGO_UNIT_CHEMICALS)", penalty_lowerbound="20", single_penalty_length="255", price_factor=115, capacity_multiplier="1", icon_indices=(10, 1), )
from cargo import Cargo cargo = Cargo( id="farm_supplies", type_name="string(STR_CARGO_NAME_FARM_SUPPLIES)", unit_name="string(STR_CARGO_NAME_FARM_SUPPLIES)", type_abbreviation="string(STR_CID_FARM_SUPPLIES)", sprite="NEW_CARGO_SPRITE", weight="0.65", is_freight="1", cargo_classes="bitmask(CC_EXPRESS, CC_PIECE_GOODS)", cargo_label="FMSP", # apart from TOWNGROWTH_PASSENGERS and TOWNGROWTH_MAIL, FIRS does not set any town growth effects; this has the intended effect of disabling food / water requirements for towns in desert and above snowline town_growth_effect="TOWNGROWTH_NONE", town_growth_multiplier="1.0", units_of_cargo="TTD_STR_CRATES", items_of_cargo="string(STR_CARGO_UNIT_FMSP)", penalty_lowerbound="2", single_penalty_length="32", price_factor=170, capacity_multiplier="1", icon_indices=(8, 1), )
from cargo import Cargo cargo = Cargo( id="coal_tar", type_name="string(STR_CARGO_NAME_COAL_TAR)", unit_name="string(STR_CARGO_NAME_COAL_TAR)", type_abbreviation="string(STR_CID_COAL_TAR)", sprite="NEW_CARGO_SPRITE", weight="1.0", is_freight="1", cargo_classes="bitmask(CC_LIQUID, CC_HAZARDOUS)", cargo_label="CTAR", # apart from TOWNGROWTH_PASSENGERS and TOWNGROWTH_MAIL, FIRS does not set any town growth effects; this has the intended effect of disabling food / water requirements for towns in desert and above snowline town_growth_effect="TOWNGROWTH_NONE", town_growth_multiplier="1.0", units_of_cargo="TTD_STR_TONS", items_of_cargo="string(STR_CARGO_UNIT_COAL_TAR)", penalty_lowerbound="64", single_penalty_length="255", price_factor=98, # IRL coal tar is low value, but for gameplay it is transported in low amounts and needs a bonus capacity_multiplier="1", icon_indices=(14, 4), )
from cargo import Cargo cargo = Cargo( id="kaolin", type_name="string(STR_CARGO_NAME_KAOLIN)", unit_name="string(STR_CARGO_NAME_KAOLIN)", type_abbreviation="string(STR_CID_KAOLIN)", sprite="NEW_CARGO_SPRITE", weight="1.0", is_freight="1", cargo_classes="bitmask(CC_BULK, CC_LIQUID, CC_COVERED)", cargo_label="KAOL", town_growth_effect="TOWNGROWTH_NONE", town_growth_multiplier="1.0", units_of_cargo="TTD_STR_TONS", items_of_cargo="string(STR_CARGO_UNIT_KAOLIN)", penalty_lowerbound="30", single_penalty_length="255", price_factor=100, capacity_multiplier="1", icon_indices=(5, 3), )
from cargo import Cargo cargo = Cargo( id="carbon_black", type_name="string(STR_CARGO_NAME_CARBON_BLACK)", unit_name="string(STR_CARGO_NAME_CARBON_BLACK)", type_abbreviation="string(STR_CID_CARBON_BLACK)", sprite="NEW_CARGO_SPRITE", weight="1.0", is_freight="1", cargo_classes="bitmask(CC_PIECE_GOODS, CC_BULK, CC_COVERED, CC_POWDERIZED)", cargo_label="CBLK", town_growth_effect="TOWNGROWTH_NONE", town_growth_multiplier="1.0", units_of_cargo="TTD_STR_TONS", items_of_cargo="string(STR_CARGO_UNIT_CARBON_BLACK)", penalty_lowerbound="40", single_penalty_length="255", price_factor=153, capacity_multiplier="1", icon_indices=(13, 4), )
from cargo import Cargo cargo = Cargo( id="chlorine", type_name="string(STR_CARGO_NAME_CHLORINE)", unit_name="string(STR_CARGO_NAME_CHLORINE)", type_abbreviation="string(STR_CID_CHLORINE)", sprite="NEW_CARGO_SPRITE", weight="2.0", is_freight="1", cargo_classes="bitmask(CC_LIQUID, CC_HAZARDOUS)", cargo_label="CHLO", town_growth_effect="TOWNGROWTH_NONE", town_growth_multiplier="1.0", units_of_cargo="TTD_STR_LITERS", items_of_cargo="string(STR_CARGO_UNIT_CHLORINE)", penalty_lowerbound="20", single_penalty_length="40", price_factor=120, capacity_multiplier="1", icon_indices=(2, 4), )
from cargo import Cargo cargo = Cargo(id='farm_supplies', type_name='string(STR_CARGO_NAME_FARM_SUPPLIES)', unit_name='string(STR_CARGO_NAME_FARM_SUPPLIES)', type_abbreviation='string(STR_CID_FARM_SUPPLIES)', sprite='NEW_CARGO_SPRITE', weight='0.65', cargo_payment_list_colour='208', is_freight='1', cargo_classes='bitmask(CC_EXPRESS, CC_PIECE_GOODS)', cargo_label='FMSP', town_growth_effect='TOWNGROWTH_NONE', town_growth_multiplier='1.0', units_of_cargo='TTD_STR_CRATES', items_of_cargo='string(STR_CARGO_UNIT_FMSP)', penalty_lowerbound='6', single_penalty_length='36', price_factor='164', capacity_multiplier='1', icon_indices=(8, 1))
from cargo import Cargo cargo = Cargo( id="explosives", type_name="string(STR_CARGO_NAME_EXPLOSIVES)", unit_name="string(STR_CARGO_NAME_EXPLOSIVES)", type_abbreviation="string(STR_CID_EXPLOSIVES)", sprite="NEW_CARGO_SPRITE", weight="0.25", is_freight="1", cargo_classes="bitmask(CC_EXPRESS, CC_PIECE_GOODS, CC_HAZARDOUS)", cargo_label="BOOM", town_growth_effect="TOWNGROWTH_NONE", town_growth_multiplier="1.0", units_of_cargo="TTD_STR_CRATES", items_of_cargo="string(STR_CARGO_UNIT_EXPLOSIVES)", penalty_lowerbound="6", single_penalty_length="42", price_factor=158, capacity_multiplier="1", allow_animated_pixels=True, # explosives uses fire cycle pixels, by design, so suppress NML pixel warnings icon_indices=(2, 3), )
from cargo import Cargo cargo = Cargo( id="iron_ore", type_name="TTD_STR_CARGO_PLURAL_IRON_ORE", unit_name="TTD_STR_CARGO_SINGULAR_IRON_ORE", type_abbreviation="TTD_STR_ABBREV_IRON_ORE", sprite="NEW_CARGO_SPRITE", weight="1.0", is_freight="1", cargo_classes="bitmask(CC_BULK)", cargo_label="IORE", town_growth_effect="TOWNGROWTH_NONE", town_growth_multiplier="1.0", units_of_cargo="TTD_STR_TONS", items_of_cargo="TTD_STR_QUANTITY_IRON_ORE", penalty_lowerbound="40", single_penalty_length="255", price_factor=64, capacity_multiplier="1", icon_indices=(9, 0), )
from cargo import Cargo cargo = Cargo( id="potash", type_name="string(STR_CARGO_NAME_POTASH)", unit_name="string(STR_CARGO_NAME_POTASH)", type_abbreviation="string(STR_CID_POTASH)", sprite="NEW_CARGO_SPRITE", weight="1.0", is_freight="1", cargo_classes="bitmask(CC_BULK)", cargo_label="POTA", town_growth_effect="TOWNGROWTH_NONE", town_growth_multiplier="1.0", units_of_cargo="TTD_STR_TONS", items_of_cargo="string(STR_CARGO_UNIT_POTASH)", penalty_lowerbound="30", single_penalty_length="255", price_factor=102, capacity_multiplier="1", icon_indices=(2, 5), )
from cargo import Cargo # the EN GB lang string for this was changed to 'Petroleum Fuels' Jan 2016, it feels more widely usable as a cargo cargo = Cargo( id="petrol", type_name="string(STR_CARGO_NAME_PETROL)", unit_name="string(STR_CARGO_NAME_PETROL)", type_abbreviation="string(STR_CID_PETROL)", sprite="NEW_CARGO_SPRITE", weight="0.8", is_freight="1", cargo_classes="bitmask(CC_LIQUID)", cargo_label="PETR", town_growth_effect="TOWNGROWTH_GOODS", town_growth_multiplier="1.0", units_of_cargo="TTD_STR_LITERS", items_of_cargo="string(STR_CARGO_UNIT_PETROL)", penalty_lowerbound="18", single_penalty_length="255", capacity_multiplier="1", price_factor=145, icon_indices=(12, 1), )
from cargo import Cargo cargo = Cargo( id="vehicles", type_name="string(STR_CARGO_NAME_VEHICLES)", unit_name="string(STR_CARGO_NAME_VEHICLES)", type_abbreviation="string(STR_CID_VEHICLES)", sprite="NEW_CARGO_SPRITE", weight="1.0", is_freight="1", cargo_classes="bitmask(CC_PIECE_GOODS, CC_OVERSIZED)", cargo_label="VEHI", # apart from TOWNGROWTH_PASSENGERS and TOWNGROWTH_MAIL, FIRS does not set any town growth effects; this has the intended effect of disabling food / water requirements for towns in desert and above snowline town_growth_effect= "TOWNGROWTH_NONE", # intended for desert Steeltown, may not be appropriate in other cases town_growth_multiplier="1.0", units_of_cargo="TTD_STR_TONS", items_of_cargo="string(STR_CARGO_UNIT_VEHICLES)", penalty_lowerbound="15", single_penalty_length="128", price_factor=164, capacity_multiplier="1", icon_indices=(15, 2), )
from cargo import Cargo cargo = Cargo( id="wool", type_name="string(STR_CARGO_NAME_WOOL)", unit_name="string(STR_CARGO_NAME_WOOL)", type_abbreviation="string(STR_CID_WOOL)", sprite="NEW_CARGO_SPRITE", weight="0.2", is_freight="1", cargo_classes="bitmask(CC_PIECE_GOODS, CC_COVERED)", cargo_label="WOOL", town_growth_effect="TOWNGROWTH_NONE", town_growth_multiplier="1.0", units_of_cargo="TTD_STR_ITEMS", items_of_cargo="string(STR_CARGO_UNIT_WOOL)", penalty_lowerbound="8", single_penalty_length="48", price_factor=111, capacity_multiplier="1", icon_indices=(4, 1), )
from cargo import Cargo cargo = Cargo(id='manganese', type_name='string(STR_CARGO_NAME_MANGANESE)', unit_name='string(STR_CARGO_NAME_MANGANESE)', type_abbreviation='string(STR_CID_MANGANESE)', sprite='NEW_CARGO_SPRITE', weight='1.0', cargo_payment_list_colour='16', is_freight='1', cargo_classes='bitmask(CC_BULK)', cargo_label='MNO2', town_growth_effect='TOWNGROWTH_NONE', town_growth_multiplier='1.0', units_of_cargo='TTD_STR_TONS', items_of_cargo='string(STR_CARGO_UNIT_MANGANESE)', penalty_lowerbound='30', single_penalty_length='255', price_factor='75', capacity_multiplier='1', icon_indices=(9, 2))
from cargo import Cargo cargo = Cargo(id='nitrates', type_name='string(STR_CARGO_NAME_NITRATES)', unit_name='string(STR_CARGO_NAME_NITRATES)', type_abbreviation='string(STR_CID_NITRATES)', sprite='NEW_CARGO_SPRITE', weight='1.0', cargo_payment_list_colour='39', is_freight='1', cargo_classes='bitmask(CC_BULK)', cargo_label='NITR', town_growth_effect='TOWNGROWTH_NONE', town_growth_multiplier='1.0', units_of_cargo='80', items_of_cargo='string(STR_CARGO_UNIT_NITRATES)', penalty_lowerbound='30', single_penalty_length='255', price_factor='96', capacity_multiplier='1', icon_indices=(7, 2))
from cargo import Cargo cargo = Cargo( id="passengers", type_name="TTD_STR_CARGO_PLURAL_PASSENGERS", unit_name="TTD_STR_CARGO_SINGULAR_PASSENGER", type_abbreviation="TTD_STR_ABBREV_PASSENGERS", sprite="NEW_CARGO_SPRITE", weight="0.0625", is_freight="0", cargo_classes="bitmask(CC_PASSENGERS)", cargo_label="PASS", town_growth_effect="TOWNGROWTH_PASSENGERS", town_growth_multiplier="1.0", units_of_cargo="TTD_STR_PASSENGERS", items_of_cargo="TTD_STR_QUANTITY_PASSENGERS", penalty_lowerbound="0", single_penalty_length="22", capacity_multiplier="4", price_factor= 137, # pax payment rate is much higher than default; this makes a much wider range of vehicle types and costs viable for pax; the downside is that vehicles balancing for FIRS won't work so well in default icon_indices=(0, 0), )
from cargo import Cargo cargo = Cargo( id="pipe", type_name="string(STR_CARGO_NAME_PIPE)", unit_name="string(STR_CARGO_NAME_PIPE)", type_abbreviation="string(STR_CID_PIPE)", sprite="NEW_CARGO_SPRITE", weight="1.0", is_freight="1", cargo_classes="bitmask(CC_PIECE_GOODS, CC_OVERSIZED)", cargo_label="PIPE", town_growth_effect="TOWNGROWTH_NONE", town_growth_multiplier="1.0", units_of_cargo="TTD_STR_TONS", items_of_cargo="string(STR_CARGO_UNIT_PIPE)", penalty_lowerbound="30", single_penalty_length="42", price_factor=180, capacity_multiplier="1", icon_indices=(7, 3), )
from cargo import Cargo cargo = Cargo( id="kaolin", type_name="string(STR_CARGO_NAME_KAOLIN)", unit_name="string(STR_CARGO_NAME_KAOLIN)", type_abbreviation="string(STR_CID_KAOLIN)", sprite="NEW_CARGO_SPRITE", weight="1.0", is_freight="1", cargo_classes="bitmask(CC_BULK, CC_LIQUID, CC_COVERED)", cargo_label="KAOL", # apart from TOWNGROWTH_PASSENGERS and TOWNGROWTH_MAIL, FIRS does not set any town growth effects; this has the intended effect of disabling food / water requirements for towns in desert and above snowline town_growth_effect="TOWNGROWTH_NONE", town_growth_multiplier="1.0", units_of_cargo="TTD_STR_TONS", items_of_cargo="string(STR_CARGO_UNIT_KAOLIN)", penalty_lowerbound="30", single_penalty_length="255", price_factor=100, capacity_multiplier="1", icon_indices=(5, 3), )
def create_source_cargo(self): return Cargo.from_order(self)