diff options
author | CrazyDave <DBHeise@users.noreply.github.com> | 2018-08-22 10:17:14 -0400 |
---|---|---|
committer | rubenwardy <rw@rubenwardy.com> | 2018-08-22 15:17:14 +0100 |
commit | 417ac0fe46827b10c57c27e0d9da93b7a61c0836 (patch) | |
tree | d0b0f4f6e5fd4e1c65b3ec71be730a2b5e62802f | |
parent | 1ab08d68c9f3693582f1fab4309cef1efbf1a6f4 (diff) |
Fix mistakes in award definition documentation
-rw-r--r-- | README.md | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -188,16 +188,20 @@ end # API * awards.register_award(name, def), the def table has the following fields: + * `title` - title of the award (defaults to name) * `description` - the title of the award. Required. * `difficulty` - see [Award Difficulty](#award-difficulty). * `requires` - list of awards that need to be unlocked before this one is visible. + * `prizes` - list of items to give when you earn the award + * `secret` - boolean if this award is secret (i.e. showed on awards list) * `sound` - `SimpleSoundSpec` table to play on unlock. `false` to disable unlock sound. - * `image` - the icon image, use default otherwise. + * `icon` - the icon image, use default otherwise. * `background` - the background image, use default otherwise. * `trigger` - trigger definition, see [Builtin Trigger Types](#builtin-trigger-types). * `on_unlock(name, def)` - callback on unlock. + * awards.register_trigger(name, def), the def table has the following fields: * `type` - see [Trigger Types](#trigger-types). * `progress` - used to format progress, defaults to "%1/%2". |