Skip to content

Commit ae75fa2

Browse files
authored
#63: Updated docs for Markets
1 parent b6575f5 commit ae75fa2

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

docs/70-market-class.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ The property `any` is used for specifying costs that could be paid with _any_ re
5858

5959
The property `anyButSame` is used for specifying costs that could be paid with _any_ resource type handled by the market, but where the resources must be the same (such as in trading 4:1 in Catan).
6060

61-
The property `resolver` can be set to any name of a function stored at `modules[module].resolvers.goods`. Calling goods.resolve(...arguments) will send off the request to the resolver function of the goods and return the result. If the goods has no resolver, `false` is returned.
61+
The property `resolver` can be set to any name of a function stored at `modules[module].resolvers`. Calling goods.resolve(...arguments) will send off the request to the resolver function of the goods and return the result. If the goods has no resolver, `false` is returned.
6262

6363
`myGoods.quantity` holds how many units of the goods type is available at the market.
6464

@@ -153,10 +153,10 @@ If `resolve` is set to `true`, any resolver for the goods will be called if the
153153

154154
`myMarket.resolve(goodsId, ...arguments)`
155155

156-
Calls any resolver set for the goods type in the active module. Any arguments provided after the goods ID will be sent to the resolver. The goods needs to have a the property `resolver` set and a corresponding method must be placed in `modules[module].resolvers.goods`. Note that the resolver also can be called from `myGoods.resolve()`.
156+
Calls any resolver set for the goods type in the active module. Any arguments provided after the goods ID will be sent to the resolver. The goods needs to have a the property `resolver` set and a corresponding method must be placed in `modules[module].resolvers`. Note that the resolver also can be called from `myGoods.resolve()`.
157157

158158
### myGoods.resolve()
159159

160160
`myGoods.resolve(...arguments)`
161161

162-
Passes on work to any resolver function declared for the goods, along with any parameters. The goods needs to have a the property `resolver` set and a corresponding method must be placed in `modules[module].resolvers.goods`.
162+
Passes on work to any resolver function declared for the goods, along with any parameters. The goods needs to have a the property `resolver` set and a corresponding method must be placed in `modules[module].resolvers`.

0 commit comments

Comments
 (0)