market
Vars | |
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. |
Procs | |
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. |
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. |
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.