/* vi: set ts=2: * * * Eressea PB(E)M host Copyright (C) 1998-2003 * 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) * * based on: * * Atlantis v1.0 13 September 1993 Copyright 1993 by Russell Wallace * Atlantis v1.7 Copyright 1996 by Alex Schröder * * This program may not be used, modified or distributed without * prior permission by the authors of Eressea. * This program may not be sold or used commercially without prior written * permission from the authors. */ #include #include "eressea.h" #include "creation.h" #include "monster.h" /* kernel includes */ #include #include #include #include #include #include #include #include #include #include #include #include /* util includes */ #include #include #include /* libc includes */ #include #include #include #include #include #include #include #include void createmonsters(void) { faction *f; if (findfaction(MONSTER_FACTION)) { puts("* Fehler! Die Monster Partei gibt es schon."); return; } f = (faction *) calloc(1, sizeof(faction)); f->no = MONSTER_FACTION; /* alles ist auf null gesetzt, ausser dem folgenden. achtung - partei * no 0 muss keine orders einreichen! */ set_string(&f->email, "monsters@eressea.de"); set_string(&f->name, "Monster"); f->alive = 1; f->options = (char) pow(2, O_REPORT); addlist(&factions, f); fhash(f); }