Skip to content

Class

ShopPricePolicy

Generated GDScript class reference for ItemVault.ShopPricePolicy.

Status
Current
Version
v1.0
Source updated
2026-08-17
Generated on
2026-09-01

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 RefCounted

Members

NameKindSummary
same_session_sellProperty
set_pricesMethod
begin_sessionMethod
end_sessionMethod
buy_priceMethod
sell_priceMethod
session_bought_qtyMethod
record_buyMethod
record_sellMethod
quote_sellMethod