- Fixes, compiliert wieder

This commit is contained in:
Christian Schlittchen 2002-05-05 18:44:12 +00:00
parent b23529f731
commit 400593e94d
4 changed files with 6 additions and 4 deletions

View File

@ -19,6 +19,7 @@
#include "weapons.h" #include "weapons.h"
#include "xerewards.h" #include "xerewards.h"
#include "catapultammo.h" #include "catapultammo.h"
#include "racespoils.h"
#if GROWING_TREES #if GROWING_TREES
# include "seed.h" # include "seed.h"
#endif #endif
@ -40,6 +41,7 @@ register_items(void)
register_lebkuchenherz(); register_lebkuchenherz();
register_catapultammo(); register_catapultammo();
register_questkeys(); register_questkeys();
register_racespoils();
} }
void void

View File

@ -31,7 +31,7 @@ resource_type rt_elfspoil = {
&res_changeitem &res_changeitem
}; };
item_type it_elvenspoil = { item_type it_elfspoil = {
&rt_elfspoil, /* resourcetype */ &rt_elfspoil, /* resourcetype */
0, 1, 0, /* flags, weight, capacity */ 0, 1, 0, /* flags, weight, capacity */
NULL, /* construction */ NULL, /* construction */
@ -192,7 +192,7 @@ item_type it_trollspoil = {
void void
register_racespoils(void) register_racespoils(void)
{ {
it_register(&it_elvenspoil); it_register(&it_elfspoil);
it_register(&it_demonspoil); it_register(&it_demonspoil);
it_register(&it_goblinspoil); it_register(&it_goblinspoil);
it_register(&it_dwarfspoil); it_register(&it_dwarfspoil);

View File

@ -12,7 +12,7 @@
* prior permission by the authors of Eressea. * prior permission by the authors of Eressea.
*/ */
extern struct item_type it_elvenspoil; extern struct item_type it_elfspoil;
extern struct item_type it_demonspoil; extern struct item_type it_demonspoil;
extern struct item_type it_goblinspoil; extern struct item_type it_goblinspoil;
extern struct item_type it_dwarfspoil; extern struct item_type it_dwarfspoil;

View File

@ -534,7 +534,7 @@ elf_spoil(const struct race * rc, int size)
{ {
item * itm = NULL; item * itm = NULL;
if (rand()%100 < RACESPOILCHANCE){ if (rand()%100 < RACESPOILCHANCE){
i_add(&itm, i_new(&it_elvenspoil, size)); i_add(&itm, i_new(&it_elfspoil, size));
} }
return itm; return itm;
} }