/tg/ Station 13 - Modules - TypesVar Details - Proc Details

market

Vars

available_itemsItems available from this market, populated by SSmarket on initialization. Automatically assigned, so don't manually adjust.
categoriesItem categories available from this market, only items which are in these categories can be gotten from this market. Automatically assigned, so don't manually adjust.
legal_statusAre the items from this market legal or illegal? If illegal, apply a contrband trait to the bought object.
nameName for the market.
shippingAvailable shipping methods and prices, just leave the shipping method out that you don't want to have.

Procs

add_itemAdds item to the available items and add its category if it is not in categories yet.
purchaseHandles buying the item for a market.
restockA proc that restocks only the EXISTING items of this market. If you want to selectively restock markets, call SSmarket.restock(market_or_list_of_markets) instead.

Var Details

available_items

Items available from this market, populated by SSmarket on initialization. Automatically assigned, so don't manually adjust.

categories

Item categories available from this market, only items which are in these categories can be gotten from this market. Automatically assigned, so don't manually adjust.

legal_status

Are the items from this market legal or illegal? If illegal, apply a contrband trait to the bought object.

name

Name for the market.

shipping

Available shipping methods and prices, just leave the shipping method out that you don't want to have.

Proc Details

add_item

Adds item to the available items and add its category if it is not in categories yet.

purchase

Handles buying the item for a market.

@param identifier The identifier of the item to buy. @param category The category of the item to buy. @param method The shipping method to use to get the item on the station. @param uplink The uplink object that is buying the item. @param user The mob that is buying the item.

restock

A proc that restocks only the EXISTING items of this market. If you want to selectively restock markets, call SSmarket.restock(market_or_list_of_markets) instead.