HytaleDocs

BarterShops

Asset path: Server/BarterShops/*.json

Parent

When set this asset will inherit properties from the named asset.

When inheriting from another BarterShopAsset most properties will simply be copied from the parent asset to this asset. In the case where both child and parent provide a field the child field will simply replace the value provided by the parent, in the case of nested structures this will apply to the fields within the structure. In some cases the field may decide to act differently, for example: by merging the parent and child fields together.

Type information: String

Tags

Tags are a general way to describe an asset that can be interpreted by other systems in a way they see fit.

For example you could tag something with a Material tag with the values Solid and Stone, And another single tag Ore.

Tags will be expanded into a single list of tags automatically. Using the above example with Material and Ore the end result would be the following list of tags: Ore, Material, Solid, Stone, Material=Solid and Material=Stone.

Type information:

(Nullable) Map of the following:

KeyType
any StringArray of String

DisplayNameKey

Type information: (Nullable) String

RefreshInterval

Type information:

(Nullable)

RefreshInterval with the following properties:

KeyTypeDescription
DaysInteger defaults to: 1

Trades

Type information:

(Nullable) Array of the type:

BarterTrade with the following properties:

KeyTypeDescription
Output
BarterItemStack

BarterItemStack with the following properties:

KeyTypeDescription
ItemIdString
QuantityInteger defaults to: 1
InputArray of the type:
BarterItemStack

BarterItemStack with the following properties:

KeyTypeDescription
ItemIdString
QuantityInteger defaults to: 1
StockInteger defaults to: 10

TradeSlots

Type information:

(Nullable) Array of the type: Either

FixedTradeSlot with the following properties:

KeyTypeDescription
TypeConstant value: Fixed

This field controls the type, it must be set to the constant value "Fixed" to function as this type.

Trade
BarterTrade

BarterTrade with the following properties:

KeyTypeDescription
OutputBarterItemStack
InputArray of the type: BarterItemStack
StockInteger defaults to: 10

or

PoolTradeSlot with the following properties:

KeyTypeDescription
TypeConstant value: Pool

This field controls the type, it must be set to the constant value "Pool" to function as this type.

SlotCountInteger defaults to: 1
TradesArray of the type:
WeightedTrade

WeightedTrade with the following properties:

KeyTypeDescription
WeightNumber defaults to: 100.0
OutputBarterItemStack
InputArray of the type: BarterItemStack
Stock(Nullable) Array of Integer

RestockHour

Type information: Integer

On this page