Documentation ¶
Overview ¶
Package merchant allows for creation of travelling merchants and their wares
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Merchant ¶
Merchant is a merchant
func (Merchant) Simplify ¶
func (merchant Merchant) Simplify() (SimplifiedMerchant, error)
Simplify simplifies a merchant
type SimplifiedMerchant ¶
type SimplifiedMerchant struct { Character character.SimplifiedCharacter `json:"character"` Goods []goods.TradeGood `json:"goods"` }
SimplifiedMerchant is a simplified version of merchant for display
func RandomSimplified ¶
func RandomSimplified() (SimplifiedMerchant, error)
RandomSimplified returns a random simplified merchant
Click to show internal directories.
Click to hide internal directories.