2015-01-30 20:37:14 +01:00
|
|
|
/*
|
2010-08-08 09:40:42 +02:00
|
|
|
*
|
|
|
|
*
|
|
|
|
* 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)
|
|
|
|
*
|
|
|
|
* This program may not be used, modified or distributed without
|
|
|
|
* prior permission by the authors of Eressea.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef H_SPL_SPELLS
|
|
|
|
#define H_SPL_SPELLS
|
2015-05-06 17:36:20 +02:00
|
|
|
|
|
|
|
#include "magic.h"
|
|
|
|
|
|
|
|
|
2010-08-08 09:40:42 +02:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2017-10-10 18:45:44 +02:00
|
|
|
struct castorder;
|
2017-08-21 20:18:19 +02:00
|
|
|
struct curse_type;
|
|
|
|
struct region;
|
2015-01-30 20:37:14 +01:00
|
|
|
struct unit;
|
|
|
|
struct message;
|
2010-08-08 09:40:42 +02:00
|
|
|
|
2017-08-21 20:18:19 +02:00
|
|
|
extern const struct curse_type ct_magicresistance;
|
|
|
|
|
2017-04-30 22:49:26 +02:00
|
|
|
void register_magicresistance(void);
|
2015-01-30 20:37:14 +01:00
|
|
|
void register_spells(void);
|
2010-08-08 09:40:42 +02:00
|
|
|
|
2017-10-10 18:45:44 +02:00
|
|
|
int sp_baddreams(struct castorder * co);
|
|
|
|
int sp_gooddreams(struct castorder * co);
|
|
|
|
int sp_viewreality(struct castorder * co);
|
2015-05-06 17:36:20 +02:00
|
|
|
|
2014-08-27 06:40:18 +02:00
|
|
|
#define ACTION_RESET 0x01 /* reset the one-time-flag FFL_SELECT (on first pass) */
|
|
|
|
#define ACTION_CANSEE 0x02 /* to people who can see the actor */
|
|
|
|
#define ACTION_CANNOTSEE 0x04 /* to people who can not see the actor */
|
2015-01-30 20:37:14 +01:00
|
|
|
int report_action(struct region *r, struct unit *actor, struct message *msg, int flags);
|
2014-08-27 06:40:18 +02:00
|
|
|
|
2010-08-08 09:40:42 +02:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#endif
|