From b82f48e12ef6479a10b8e95852d16ff5e7bca358 Mon Sep 17 00:00:00 2001 From: Christian Schlittchen Date: Sun, 5 May 2002 17:27:41 +0000 Subject: [PATCH] - racespoils, noch nicht fertig, damit Katja mitmachen kann. --- src/common/items/racespoils.c | 126 ++++++++++++++++++++++++++++++++++ 1 file changed, 126 insertions(+) create mode 100644 src/common/items/racespoils.c diff --git a/src/common/items/racespoils.c b/src/common/items/racespoils.c new file mode 100644 index 000000000..ae3492bfd --- /dev/null +++ b/src/common/items/racespoils.c @@ -0,0 +1,126 @@ +/* vi: set ts=2: + +-------------------+ Christian Schlittchen + | | Enno Rehling + | Eressea PBEM host | Katja Zedel + | (c) 1998 - 2001 | Henning Peters + | | Ingo Wilken + +-------------------+ Stefan Reich + + This program may not be used, modified or distributed + without prior permission by the authors of Eressea. +*/ + +#include +#include + +#include "racespoils.h" + +#include +#include + +/* kernel includes */ +#include + +/* libc includes */ +#include + +resource_type rt_elfspoil = { + { "elfspoil", "elfspoil_p" }, + { "elfspoil", "elfspoil_p" }, + RTF_ITEM|RTF_POOLED, + &res_changeitem +}; + +item_type it_elfspoil = { + &rt_elfspoil, /* resourcetype */ + 0, 1, 0, /* flags, weight, capacity */ + NULL, /* construction */ + NULL, /* use */ + NULL /* give */ +}; + +resource_type rt_demonspoil = { + { "demonspoil", "demonspoil_p" }, + { "demonspoil", "demonspoil_p" }, + RTF_ITEM|RTF_POOLED, + &res_changeitem +}; + +item_type it_demonspoil = { + &rt_demonspoil, /* resourcetype */ + 0, 1, 0, /* flags, weight, capacity */ + NULL, /* construction */ + NULL, /* use */ + NULL /* give */ +}; + +resource_type rt_goblinspoil = { + { "goblinspoil", "goblinspoil_p" }, + { "goblinspoil", "goblinspoil_p" }, + RTF_ITEM|RTF_POOLED, + &res_changeitem +}; + +item_type it_goblinspoil = { + &rt_goblinspoil, /* resourcetype */ + 0, 1, 0, /* flags, weight, capacity */ + NULL, /* construction */ + NULL, /* use */ + NULL /* give */ +}; + +resource_type rt_dwarfspoil = { + { "dwarfspoil", "dwarfspoil_p" }, + { "dwarfspoil", "dwarfspoil_p" }, + RTF_ITEM|RTF_POOLED, + &res_changeitem +}; + +item_type it_dwarfspoil = { + &rt_dwarfspoil, /* resourcetype */ + 0, 1, 0, /* flags, weight, capacity */ + NULL, /* construction */ + NULL, /* use */ + NULL /* give */ +}; + +resource_type rt_halflingspoil = { + { "halflingspoil", "halflingspoil_p" }, + { "halflingspoil", "halflingspoil_p" }, + RTF_ITEM|RTF_POOLED, + &res_changeitem +}; + +item_type it_halflingspoil = { + &rt_halflingspoil, /* resourcetype */ + 0, 1, 0, /* flags, weight, capacity */ + NULL, /* construction */ + NULL, /* use */ + NULL /* give */ +}; + +resource_type rt_halflingspoil = { + { "halflingspoil", "halflingspoil_p" }, + { "halflingspoil", "halflingspoil_p" }, + RTF_ITEM|RTF_POOLED, + &res_changeitem +}; + +item_type it_halflingspoil = { + &rt_halflingspoil, /* resourcetype */ + 0, 1, 0, /* flags, weight, capacity */ + NULL, /* construction */ + NULL, /* use */ + NULL /* give */ +}; + +void +register_racespoils(void) +{ + it_register(&it_elvenspoil); + it_register(&it_demonspoil); + it_register(&it_goblinspoil); + it_register(&it_dwarfspoil); + it_register(&it_halflingspoil); +} +