File magic.c


Included Files


Preprocessor definitions

#define MAX_SPELL_AFFECTS 5

#define MOB_MONSUM_I 130

#define MOB_MONSUM_II 140

#define MOB_MONSUM_III 150

#define MOB_GATE_I 160

#define MOB_GATE_II 170

#define MOB_GATE_III 180

#define MOB_ELEMENTAL_BASE 20

#define MOB_CLONE 10

#define MOB_ZOMBIE 11

#define MOB_AERIALSERVANT 19


Global Variable mag_summon_msgs

const char* mag_summon_msgs[]
Visible in:  magic.c
Used in: mag_summons()magic.c

Global Variable mag_summon_fail_msgs

const char* mag_summon_fail_msgs[]
Visible in:  magic.c
Used in: mag_summons()magic.c

External Variables

world
extern struct room_data* world
Defined in: db.c

object_list
extern struct obj_data* object_list
Defined in: db.c

character_list
extern struct char_data* character_list
Defined in: db.c

obj_index
extern struct index_data* obj_index
Defined in: db.c

descriptor_list
extern struct descriptor_data* descriptor_list
Defined in: comm.c

zone_table
extern struct zone_data* zone_table
Defined in: db.c

mini_mud
extern int mini_mud
Defined in: db.c

pk_allowed
extern int pk_allowed
Defined in: config.c

spell_info
extern struct spell_info_type spell_info[]
Defined in: spell_parser.c


Global Function affect_update()

void affect_update ( void )
Prototyped in: magic.c
Calls: affect_remove()handler.c
  send_to_char()comm.c
Called by: heartbeat()comm.c
References Variables: character_listdb.c
  spell_infospell_parser.c

Global Function mag_affects()

void mag_affects ( int level, struct char_data* ch, struct char_data* victim, int spellnum, int savetype )
Prototyped in: spells.h
Calls: act()comm.c
  affect_join()handler.c
  affected_by_spell()handler.c
  mag_savingthrow()magic.c
  send_to_char()comm.c
Called by: call_magic()spell_parser.c
  perform_mag_groups()magic.c
References Variables: NOEFFECTconfig.c
  pk_allowedconfig.c

Global Function mag_alter_objs()

void mag_alter_objs ( int level, struct char_data* ch, struct obj_data* obj, int spellnum, int savetype )
Prototyped in: spells.h
Calls: act()comm.c
  send_to_char()comm.c
Called by: call_magic()spell_parser.c
References Variables: NOEFFECTconfig.c

Global Function mag_areas()

void mag_areas ( int level, struct char_data* ch, int spellnum, int savetype )
Prototyped in: spells.h
Calls: act()comm.c
  mag_damage()magic.c
Called by: call_magic()spell_parser.c
References Variables: pk_allowedconfig.c
  worlddb.c

Global Function mag_creations()

void mag_creations ( int level, struct char_data* ch, int spellnum )
Prototyped in: spells.h
Calls: act()comm.c
  basic_mud_log()utils.c
  obj_to_char()handler.c
  read_object()db.c
  send_to_char()comm.c
Called by: call_magic()spell_parser.c

Global Function mag_damage()

int mag_damage ( int level, struct char_data* ch, struct char_data* victim, int spellnum, int savetype )
Prototyped in: spells.h
Calls: act()comm.c
  damage()fight.c
  dice()utils.c
  mag_savingthrow()magic.c
Called by: call_magic()spell_parser.c
  mag_areas()magic.c

Global Function mag_groups()

void mag_groups ( int level, struct char_data* ch, int spellnum, int savetype )
Prototyped in: spells.h
Calls: perform_mag_groups()magic.c
Called by: call_magic()spell_parser.c

Global Function mag_masses()

void mag_masses ( int level, struct char_data* ch, int spellnum, int savetype )
Prototyped in: spells.h
Called by: call_magic()spell_parser.c
References Variables: worlddb.c

Global Function mag_materials()

int mag_materials ( struct char_data* ch, int item0, int item1, int item2, int extract, int verbose )
Prototyped in: magic.c
Calls: act()comm.c
  extract_obj()handler.c
  number()utils.c
  send_to_char()comm.c
References Variables: obj_indexdb.c

Global Function mag_points()

void mag_points ( int level, struct char_data* ch, struct char_data* victim, int spellnum, int savetype )
Prototyped in: spells.h
Calls: MIN()utils.c
  dice()utils.c
  send_to_char()comm.c
  update_pos()fight.c
Called by: call_magic()spell_parser.c
  perform_mag_groups()magic.c

Global Function mag_savingthrow()

int mag_savingthrow ( struct char_data* ch, int type, int modifier )
Prototyped in: magic.c
Calls: MAX()utils.c
  number()utils.c
  saving_throws()class.c
Called by: mag_affects()magic.c
  mag_damage()magic.c
  spell_charm()spells.c
  spell_summon()spells.c

Global Function mag_summons()

void mag_summons ( int level, struct char_data* ch, struct obj_data* obj, int spellnum, int savetype )
Prototyped in: spells.h
Calls: act()comm.c
  add_follower()utils.c
  char_to_room()handler.c
  extract_obj()handler.c
  number()utils.c
  obj_from_obj()handler.c
  obj_to_char()handler.c
  read_mobile()db.c
  send_to_char()comm.c
  str_dup()utils.c
Called by: call_magic()spell_parser.c
References Variables: mag_summon_fail_msgsmagic.c
  mag_summon_msgsmagic.c

Global Function mag_unaffects()

void mag_unaffects ( int level, struct char_data* ch, struct char_data* victim, int spellnum, int type )
Prototyped in: spells.h
Calls: act()comm.c
  affect_from_char()handler.c
  affected_by_spell()handler.c
  basic_mud_log()utils.c
  send_to_char()comm.c
Called by: call_magic()spell_parser.c
References Variables: NOEFFECTconfig.c

Global Function perform_mag_groups()

void perform_mag_groups ( int level, struct char_data* ch, struct char_data* tch, int spellnum, int savetype )
Prototyped in: magic.c
Calls: mag_affects()magic.c
  mag_points()magic.c
  spell_recall()spells.c
Called by: mag_groups()magic.c