server/src/common/kernel/alchemy.h
Enno Rehling 91ece491e5 http://eressea.upb.de/mantis/view.php?id=1344
"Kampfallianzen fehlerhaft"
New units must not be added to a group in another faction, ever.
2008-03-05 19:30:52 +00:00

71 lines
1.7 KiB
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.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.
*/
#ifndef H_KRNL_ALCHEMY_H
#define H_KRNL_ALCHEMY_H
#ifdef __cplusplus
extern "C" {
#endif
enum {
/* Stufe 1 */
P_FAST,
P_STRONG,
P_LIFE,
/* Stufe 2 */
P_DOMORE,
P_HEILWASSER,
P_BAUERNBLUT,
/* Stufe 3 */
P_WISE, /* 6 */
P_FOOL,
#ifdef INSECT_POTION
P_WARMTH,
#else
P_STEEL,
#endif
P_HORSE,
P_BERSERK, /* 10 */
/* Stufe 4 */
P_PEOPLE,
P_WAHRHEIT,
P_MACHT,
P_HEAL,
MAX_POTIONS
};
extern void herbsearch(struct region * r, struct unit * u, int max);
extern int use_potion(struct unit * u, const struct item_type * itype, int amount, struct order *);
extern void init_potions(void);
extern int get_effect(const struct unit * u, const struct potion_type * effect);
extern int change_effect(struct unit * u, const struct potion_type * effect, int value);
extern struct attrib_type at_effect;
/* rausnehmen, sobald man attribute splitten kann: */
typedef struct effect_data {
const struct potion_type * type;
int value;
} effect_data;
#ifdef __cplusplus
}
#endif
#endif /* ALCHEMY_H */