forked from github/server
31b609b7b9
- a level < 2 in the skill - a STUDY order for a no-fee skill Each potion adds 1 study attempt, up to a maximum of 15 attempts
41 lines
933 B
C
41 lines
933 B
C
/* 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)
|
|
*
|
|
* This program may not be used, modified or distributed without
|
|
* prior permission by the authors of Eressea.
|
|
*/
|
|
|
|
#ifndef H_KRNL_STUDY
|
|
#define H_KRNL_STUDY
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
extern void teaching(void);
|
|
extern void learn(void);
|
|
|
|
extern magic_t getmagicskill(void);
|
|
extern boolean is_migrant(struct unit *u);
|
|
extern int study_cost(struct unit *u, skill_t talent);
|
|
|
|
#define MAXTEACHERS 4
|
|
typedef struct teaching_info {
|
|
struct unit * teachers[MAXTEACHERS];
|
|
int value;
|
|
} teaching_info;
|
|
|
|
extern const struct attrib_type at_learning;
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|