Catalog buy/sell prices and optional same-visit refunds. This is a pricing helper games can own for a shop visit. It is not an autoload, not a shop UI, and not required to use Item Vault inventories. Default [enum SameSessionSell] is [constant SameSessionSell.MARKDOWN]: sell always credits the catalog sell price. [constant SameSessionSell.FULL_REFUND] sells units bought during the current [method begin_session] at the catalog buy price so an accidental buy can be undone while the shop is still open.
Source: addons/item_vault/inventory/shop_price_policy.gd
Syntax
class ShopPricePolicy extends RefCountedMembers
| Name | Kind | Summary |
|---|---|---|
same_session_sell | Property | |
set_prices | Method | |
begin_session | Method | |
end_session | Method | |
buy_price | Method | |
sell_price | Method | |
session_bought_qty | Method | |
record_buy | Method | |
record_sell | Method | |
quote_sell | Method |