forked from github/server
ein standartmodul weihnachten: nüsse, äpfel und co
This commit is contained in:
parent
5693ace211
commit
b67969464b
|
@ -650,6 +650,8 @@ build(unit * u, const construction * ctype, int completed, int want)
|
|||
} else {
|
||||
n = skills;
|
||||
}
|
||||
/* Flinkfingerring wirkt nicht auf Mengenbegrenzte (magische)
|
||||
* Talente */
|
||||
if (max_skill(u->faction, type->skill)==INT_MAX) {
|
||||
int i = 0;
|
||||
item * itm = *i_find(&u->items, olditemtype[I_RING_OF_NIMBLEFINGER]);
|
||||
|
|
|
@ -0,0 +1,51 @@
|
|||
/* vi: set ts=2:
|
||||
+-------------------+ Christian Schlittchen <corwin@amber.kn-bremen.de>
|
||||
| | Enno Rehling <enno@eressea-pbem.de>
|
||||
| Eressea PBEM host | Katja Zedel <katze@felidae.kn-bremen.de>
|
||||
| (c) 1998 - 2001 | Henning Peters <faroul@beyond.kn-bremen.de>
|
||||
| | Ingo Wilken <Ingo.Wilken@informatik.uni-oldenburg.de>
|
||||
+-------------------+ Stefan Reich <reich@halbling.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 "xmas2002.h"
|
||||
|
||||
/* kernel includes */
|
||||
#include <item.h>
|
||||
#include <unit.h>
|
||||
#include <region.h>
|
||||
|
||||
/* gamecode includes */
|
||||
#include "xmas.h"
|
||||
|
||||
/* util includes */
|
||||
#include <goodies.h>
|
||||
#include <resolve.h>
|
||||
#include <base36.h>
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
static void
|
||||
presents(unit * senior)
|
||||
{
|
||||
item_type * itype;
|
||||
/* Geschenke für alle */
|
||||
itype = olditemtype[(rand() % 4) + I_KEKS];
|
||||
/* itype = it_find("mistletoe"); */
|
||||
assert(itype!=NULL);
|
||||
i_change(&senior->items, itype, 1);
|
||||
}
|
||||
|
||||
int
|
||||
xmas2002(void)
|
||||
{
|
||||
region * r = findregion(0, 0);
|
||||
unit * santa = make_santa(r);
|
||||
|
||||
santa_comes_to_town(r, santa, presents);
|
||||
return 0;
|
||||
}
|
|
@ -0,0 +1,18 @@
|
|||
/* vi: set ts=2:
|
||||
+-------------------+ Christian Schlittchen <corwin@amber.kn-bremen.de>
|
||||
| | Enno Rehling <enno@eressea-pbem.de>
|
||||
| Eressea PBEM host | Katja Zedel <katze@felidae.kn-bremen.de>
|
||||
| (c) 1998 - 2001 | Henning Peters <faroul@beyond.kn-bremen.de>
|
||||
| | Ingo Wilken <Ingo.Wilken@informatik.uni-oldenburg.de>
|
||||
+-------------------+ Stefan Reich <reich@halbling.de>
|
||||
|
||||
This program may not be used, modified or distributed
|
||||
without prior permission by the authors of Eressea.
|
||||
*/
|
||||
|
||||
#ifndef XMAS2002_H
|
||||
#define XMAS2002_H
|
||||
|
||||
extern int xmas2002(void);
|
||||
|
||||
#endif
|
|
@ -27,6 +27,7 @@
|
|||
#include <items/catapultammo.h>
|
||||
#include <modules/xmas2000.h>
|
||||
#include <modules/xmas2001.h>
|
||||
#include <modules/xmas2002.h>
|
||||
#include <modules/xecmd.h>
|
||||
#ifdef ALLIANCES
|
||||
#include <modules/alliance.h>
|
||||
|
@ -84,6 +85,7 @@
|
|||
#undef XMAS1999
|
||||
#undef XMAS2000
|
||||
#undef XMAS2001
|
||||
#define XMAS2002
|
||||
|
||||
extern void reorder_owners(struct region * r);
|
||||
|
||||
|
@ -2839,6 +2841,10 @@ korrektur_end(void)
|
|||
#ifdef XMAS2001
|
||||
do_once("2001", xmas2001());
|
||||
#endif
|
||||
#ifdef XMAS2002
|
||||
do_once("2002", xmas2002());
|
||||
#endif
|
||||
|
||||
#if PEASANT_ADJUSTMENT == 1
|
||||
do_once("peas", peasant_adjustment());
|
||||
do_once("orcc", orc_conversion());
|
||||
|
|
Loading…
Reference in New Issue