forked from github/server
- Fixes, compiliert wieder
This commit is contained in:
parent
b23529f731
commit
400593e94d
|
@ -19,6 +19,7 @@
|
|||
#include "weapons.h"
|
||||
#include "xerewards.h"
|
||||
#include "catapultammo.h"
|
||||
#include "racespoils.h"
|
||||
#if GROWING_TREES
|
||||
# include "seed.h"
|
||||
#endif
|
||||
|
@ -40,6 +41,7 @@ register_items(void)
|
|||
register_lebkuchenherz();
|
||||
register_catapultammo();
|
||||
register_questkeys();
|
||||
register_racespoils();
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
@ -31,7 +31,7 @@ resource_type rt_elfspoil = {
|
|||
&res_changeitem
|
||||
};
|
||||
|
||||
item_type it_elvenspoil = {
|
||||
item_type it_elfspoil = {
|
||||
&rt_elfspoil, /* resourcetype */
|
||||
0, 1, 0, /* flags, weight, capacity */
|
||||
NULL, /* construction */
|
||||
|
@ -192,7 +192,7 @@ item_type it_trollspoil = {
|
|||
void
|
||||
register_racespoils(void)
|
||||
{
|
||||
it_register(&it_elvenspoil);
|
||||
it_register(&it_elfspoil);
|
||||
it_register(&it_demonspoil);
|
||||
it_register(&it_goblinspoil);
|
||||
it_register(&it_dwarfspoil);
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
* 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_goblinspoil;
|
||||
extern struct item_type it_dwarfspoil;
|
||||
|
|
|
@ -534,7 +534,7 @@ elf_spoil(const struct race * rc, int size)
|
|||
{
|
||||
item * itm = NULL;
|
||||
if (rand()%100 < RACESPOILCHANCE){
|
||||
i_add(&itm, i_new(&it_elvenspoil, size));
|
||||
i_add(&itm, i_new(&it_elfspoil, size));
|
||||
}
|
||||
return itm;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue