eco2d/code/game/src/items_list.c

37 lines
718 B
C
Raw Normal View History

2021-08-30 15:50:05 +00:00
#include "items.h"
2021-11-02 17:09:54 +00:00
#define ITEM_HOLD(asset, qty)\
{\
.kind = asset,\
.usage = UKIND_HOLD,\
.max_quantity = qty,\
}
2021-11-02 11:49:03 +00:00
#define ITEM_BLOCK(asset, qty, build_asset)\
{\
.kind = asset,\
.usage = UKIND_PLACE,\
.max_quantity = qty,\
.place = {\
.kind = build_asset,\
}\
}
#define ITEM_SELF(asset, qty) ITEM_BLOCK(asset, qty, asset)
2021-08-30 15:50:05 +00:00
static item_desc items[] = {
{
2021-11-02 10:48:32 +00:00
.kind = 0,
.max_quantity = 0,
},
2021-11-02 11:49:03 +00:00
ITEM_BLOCK(ASSET_DEMO_ICEMAKER, 64, ASSET_WATER),
ITEM_SELF(ASSET_FENCE, 64),
2021-11-02 17:09:54 +00:00
ITEM_SELF(ASSET_WOOD, 64),
ITEM_HOLD(ASSET_TREE, 64),
ITEM_SELF(ASSET_BELT_LEFT, 999),
ITEM_SELF(ASSET_BELT_RIGHT, 999),
ITEM_SELF(ASSET_BELT_UP, 999),
ITEM_SELF(ASSET_BELT_DOWN, 999),
2021-11-02 11:49:03 +00:00
};