Saltar al contenido principal

shop_promotion

A shop discount promotion — misc entry.

Entry Information

PropertyValue
Entry IDshop_promotion
TypeMisc
ColorYellow
Iconmdi:sale

Description

A temporary promotion that applies a discount to shop items. When active, all items in the target shop (or specific items if specified) have their buy/sell prices reduced by [discountPercent]. Optionally bound to criteria (e.g., only active during events) and auto-expires after [durationSeconds] (0 = permanent until manually removed).

Fields

FieldTypeDescription
targetShopRef<ShopDefinitionEntry>The shop this promotion applies to.
discountPercentDoubleDiscount percentage (e.g., 20.0 = 20% off). Applied to both buy and sell prices.
targetItemIndicesList<Int>Specific item indices this promotion applies to. Empty = all items.
criteriaList<@Contextual Criteria>Criteria that must be met for this promotion to be active.
durationSecondsLongDuration in seconds before this promotion auto-expires. 0 = permanent.
createdAtLongTimestamp when this promotion was created (auto-set).

Usage Example

- entry: shop_promotion
name: "A shop discount promotion"
targetShop: ""
discountPercent: 0
targetItemIndices: 0
criteria: []
durationSeconds: 0
createdAt: 0