From 9150eb12d2f0e00fd9817a6dfae900b44576573f Mon Sep 17 00:00:00 2001 From: raymoo Date: Wed, 25 May 2016 22:10:07 -0700 Subject: [PATCH] API fixes --- API.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/API.md b/API.md index 5d8384f..f08efa6 100644 --- a/API.md +++ b/API.md @@ -24,8 +24,8 @@ A player monoid definition is a table with the following: * ```combine(elem1, elem2)``` - An associative binary operation * ```fold({elems})``` - Equivalent to combining a whole list with ```combine``` * ```identity``` - An identity element for ```combine``` - * ```apply(value, player)``` - Apply the effect represented by ```value``` to - ```player``` + * ```apply(value, player)``` - Apply the effect represented by ```value``` + to ```player``` * ```on_change(val1, val2, player)``` - Do something when the value on a player changes. (optional) @@ -71,9 +71,9 @@ Monoid Methods argument ```id``` is supplied, that is used as the ID instead, and any existing change with that ID is removed. -```monoid:del_change(player, id)``` - Removes the change with the given ID, if +```monoid:del_change(id)``` - Removes the change with the given ID, if it exists. Monoid Properties ----------------- -```monoid.value()``` - The current combined value of the monoid. \ No newline at end of file +```monoid.value``` - The current combined value of the monoid. \ No newline at end of file