server/src/common/items/demonseye.c
2001-01-26 16:19:41 +00:00

59 lines
1.5 KiB
C

/* vi: set ts=2:
*
* $Id: demonseye.c,v 1.2 2001/01/26 16:19:39 enno Exp $
* Eressea PB(E)M host Copyright (C) 1998-2000
* Christian Schlittchen (corwin@amber.kn-bremen.de)
* Katja Zedel (katze@felidae.kn-bremen.de)
* Henning Peters (faroul@beyond.kn-bremen.de)
* Enno Rehling (enno@eressea-pbem.de)
* Ingo Wilken (Ingo.Wilken@informatik.uni-oldenburg.de)
*
* This program may not be used, modified or distributed without
* prior permission by the authors of Eressea.
*/
#include <config.h>
#include <eressea.h>
#include "demonseye.h"
/* kernel includes */
#include <item.h>
/* libc includes */
#include <assert.h>
static int
summon_igjarjuk(struct unit * u, const struct item_type * itype, const char * cmd)
{
unused(u);
unused(itype);
unused(cmd);
assert(!"not implemented");
return -1;
}
static resource_type rt_demonseye = {
{ "ao_daemon", "ao_daemons" },
{ "ao_daemon", "ao_daemons" },
RTF_ITEM,
&res_changeitem
};
static boolean
give_igjarjuk(const struct unit * src, const struct unit * d, const struct item_type * itype, int n, const char * cmd)
{
sprintf(buf, "Eine höhere Macht hindert %s daran, das Objekt zu übergeben. "
"'ES IST DEINS, MEIN KIND. DEINS GANZ ALLEIN'.", unitname(src));
mistake(src, cmd, buf, MSG_COMMERCE);
return false;
}
item_type it_demonseye = {
&rt_demonseye, /* resourcetype */
ITF_NOTLOST|ITF_CURSED, 0, 0, /* flags, weight, capacity */
0, NOSKILL, /* minskill, skill */
NULL, /* construction */
&summon_igjarjuk,
&give_igjarjuk
};