File spells.c


Included Files


Preprocessor definitions

#define SUMMON_FAIL "You failed.\r\n"

External Variables

r_mortal_start_room
extern room_rnum r_mortal_start_room
Defined in: db.c

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


Global Function spell_charm()

void spell_charm ( int level, struct char_data* ch, struct char_data* victim, struct obj_data* obj )
Prototyped in: spells.h
Calls: act()comm.c
  add_follower()utils.c
  affect_to_char()handler.c
  basic_mud_log()utils.c
  circle_follow()utils.c
  mag_savingthrow()magic.c
  send_to_char()comm.c
  stop_follower()utils.c
Called by: call_magic()spell_parser.c
References Variables: dummy_mobdb.c
  pk_allowedconfig.c

Global Function spell_create_water()

void spell_create_water ( int level, struct char_data* ch, struct char_data* victim, struct obj_data* obj )
Prototyped in: spells.h
Calls: MAX()utils.c
  act()comm.c
  name_from_drinkcon()act.item.c
  name_to_drinkcon()act.item.c
  weight_change_object()act.item.c
Called by: call_magic()spell_parser.c

Global Function spell_detect_poison()

void spell_detect_poison ( int level, struct char_data* ch, struct char_data* victim, struct obj_data* obj )
Prototyped in: spells.h
Calls: act()comm.c
  send_to_char()comm.c
Called by: call_magic()spell_parser.c

Global Function spell_enchant_weapon()

void spell_enchant_weapon ( int level, struct char_data* ch, struct char_data* victim, struct obj_data* obj )
Prototyped in: spells.h
Calls: act()comm.c
Called by: call_magic()spell_parser.c

Global Function spell_identify()

void spell_identify ( int level, struct char_data* ch, struct char_data* victim, struct obj_data* obj )
Prototyped in: spells.h
Calls: age()utils.c
  compute_armor_class()fight.c
  send_to_char()comm.c
  skill_name()spell_parser.c
  sprintbit()utils.c
  sprinttype()utils.c
  sprintf(), strcat(), strlen()
Called by: call_magic()spell_parser.c
References Variables: affected_bitsconstants.c
  apply_typesconstants.c
  bufdb.c
  buf2db.c
  extra_bitsconstants.c
  item_typesconstants.c

Global Function spell_locate_object()

void spell_locate_object ( int level, struct char_data* ch, struct char_data* victim, struct obj_data* obj )
Prototyped in: spells.h
Calls: CAP()utils.c
  basic_mud_log()utils.c
  fname()handler.c
  isname()handler.c
  send_to_char()comm.c
  sprintf(), strcpy()
Called by: call_magic()spell_parser.c
References Variables: bufdb.c
  dummy_mobdb.c
  object_listdb.c
  weather_infodb.c
  worlddb.c

Global Function spell_recall()

void spell_recall ( int level, struct char_data* ch, struct char_data* victim, struct obj_data* obj )
Prototyped in: spells.h
Calls: act()comm.c
  char_from_room()handler.c
  char_to_room()handler.c
  look_at_room()act.informative.c
Called by: call_magic()spell_parser.c
  perform_mag_groups()magic.c
References Variables: r_mortal_start_roomdb.c

Global Function spell_summon()

void spell_summon ( int level, struct char_data* ch, struct char_data* victim, struct obj_data* obj )
Prototyped in: spells.h
Calls: MIN()utils.c
  act()comm.c
  basic_mud_log()utils.c
  char_from_room()handler.c
  char_to_room()handler.c
  look_at_room()act.informative.c
  mag_savingthrow()magic.c
  mudlog()utils.c
  send_to_char()comm.c
  sprintf()
Called by: call_magic()spell_parser.c
References Variables: bufdb.c
  dummy_mobdb.c
  pk_allowedconfig.c
  worlddb.c

Global Function spell_teleport()

void spell_teleport ( int level, struct char_data* ch, struct char_data* victim, struct obj_data* obj )
Prototyped in: spells.h
Calls: act()comm.c
  char_from_room()handler.c
  char_to_room()handler.c
  look_at_room()act.informative.c
  number()utils.c
Called by: call_magic()spell_parser.c
References Variables: top_of_worlddb.c
  worlddb.c