From 3c933eaf4ede7ef4e83102ec0bc6b16bc84c7360 Mon Sep 17 00:00:00 2001 From: Blade Barringer Date: Thu, 1 Oct 2015 12:31:08 -0500 Subject: [PATCH] Add comment to food file --- common/script/src/content/food/index.js | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/common/script/src/content/food/index.js b/common/script/src/content/food/index.js index 537551ea87..5186831761 100644 --- a/common/script/src/content/food/index.js +++ b/common/script/src/content/food/index.js @@ -4,6 +4,29 @@ import { merge } from '../helpers'; +//-------------------------------------------------- +// Food are series objects that have defaults applied if not provided +// +// : { +// key: , +// text: t(food), +// notes: t(foodNotes), +// article:
, +// target: , +// value: , +// canBuy: , +// canDrop: , +// } +// +// is the name of the food +// is a screeaming camelCase version of the key +//
is whether the food requires an indefinite article ('a', 'an', '') +// is the potion key that this food targets +// is the price of the food - defaults to 1 +// is a boolean passed in as part of an options object +// is a boolean passed in as part of an options object +//-------------------------------------------------- + import baseFood from './base'; import saddle from './saddle'; import cake from './birthday';