File spell_parser.c


Included Files


Preprocessor definitions

#define SINFO

#define skillo( skill, name )


Type struct syllable

struct syllable
struct syllable 
   { 
     const char* org; 
     const char* news; 
   } 

Global Variable spell_info

struct spell_info_type spell_info[299+1]
Visible in:  act.other.c
   db.c
   magic.c
   modify.c
   spec_procs.c
   spell_parser.c
Used in: affect_update()magic.c
  call_magic()spell_parser.c
  cast_spell()spell_parser.c
  compare_spells()spec_procs.c
  do_cast()spell_parser.c
  do_skillset()modify.c
  find_skill_num()spell_parser.c
  guild()spec_procs.c
  list_skills()spec_procs.c
  mag_manacost()spell_parser.c
  mag_objectmagic()spell_parser.c
  skill_name()spell_parser.c
  spell_level()spell_parser.c
  spello()spell_parser.c
  unused_spell()spell_parser.c

Global Variable syls

struct syllable syls[]
Visible in:  spell_parser.c
Used in: say_spell()spell_parser.c

Global Variable unused_spellname

const char* unused_spellname
Visible in:  db.c
   modify.c
   spell_parser.c
Used in: check_object_spell_number()db.c
  do_skillset()modify.c
  unused_spell()spell_parser.c

External Variables

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

Global Function call_magic()

int call_magic ( struct char_data* caster, struct char_data* cvict, struct obj_data* ovict, int spellnum, int level, int casttype )
Prototyped in: spells.h
Calls: act()comm.c
  mag_affects()magic.c
  mag_alter_objs()magic.c
  mag_areas()magic.c
  mag_creations()magic.c
  mag_damage()magic.c
  mag_groups()magic.c
  mag_masses()magic.c
  mag_points()magic.c
  mag_summons()magic.c
  mag_unaffects()magic.c
  send_to_char()comm.c
  spell_charm()spells.c
  spell_create_water()spells.c
  spell_detect_poison()spells.c
  spell_enchant_weapon()spells.c
  spell_identify()spells.c
  spell_locate_object()spells.c
  spell_recall()spells.c
  spell_summon()spells.c
  spell_teleport()spells.c
Called by: cast_spell()spell_parser.c
  mag_objectmagic()spell_parser.c
  snake()spec_procs.c
References Variables: spell_infospell_parser.c
  worlddb.c

Global Function cast_spell()

int cast_spell ( struct char_data* ch, struct char_data* tch, struct obj_data* tobj, int spellnum )
Prototyped in: spells.h
Calls: basic_mud_log()utils.c
  call_magic()spell_parser.c
  say_spell()spell_parser.c
  send_to_char()comm.c
Called by: do_cast()spell_parser.c
  fry_victim()castle.c
  magic_user()spec_procs.c
References Variables: OKconfig.c
  spell_infospell_parser.c

Global Function do_cast()

void do_cast ( struct char_data* ch, char* argument, int cmd, int subcmd )
Prototyped in: spell_parser.c
Calls: MAX()utils.c
  MIN()utils.c
  basic_mud_log()utils.c
  cast_spell()spell_parser.c
  find_skill_num()spell_parser.c
  get_char_vis()handler.c
  get_obj_in_list_vis()handler.c
  get_obj_vis()handler.c
  hit()fight.c
  isname()handler.c
  mag_manacost()spell_parser.c
  number()utils.c
  one_argument()interpreter.c
  send_to_char()comm.c
  skill_message()fight.c
  skip_spaces()interpreter.c
  sprintf(), strcpy(), strtok()
Used in:  interpreter.c
References Variables: argdb.c
  bufdb.c
  dummy_mobdb.c
  spell_infospell_parser.c
  worlddb.c

Global Function find_skill_num()

int find_skill_num ( char* name )
Prototyped in: spells.h
Calls: any_one_arg()interpreter.c
  is_abbrev()interpreter.c
Called by: do_cast()spell_parser.c
  do_skillset()modify.c
  guild()spec_procs.c
References Variables: spell_infospell_parser.c

Global Function mag_assign_spells()

void mag_assign_spells ( void )
Prototyped in: spell_parser.c
Calls: spello()spell_parser.c
  unused_spell()spell_parser.c
Called by: boot_db()db.c

Global Function mag_manacost()

int mag_manacost ( struct char_data* ch, int spellnum )
Prototyped in: spell_parser.c
Calls: MAX()utils.c
Called by: do_cast()spell_parser.c
References Variables: spell_infospell_parser.c

Global Function mag_objectmagic()

void mag_objectmagic ( struct char_data* ch, struct obj_data* obj, char* argument )
Prototyped in: spells.h
Calls: act()comm.c
  basic_mud_log()utils.c
  call_magic()spell_parser.c
  extract_obj()handler.c
  generic_find()handler.c
  one_argument()interpreter.c
  send_to_char()comm.c
Called by: do_use()act.other.c
References Variables: argdb.c
  spell_infospell_parser.c
  worlddb.c

Global Function say_spell()

void say_spell ( struct char_data* ch, int spellnum, struct char_data* tch, struct obj_data* tobj )
Prototyped in: spell_parser.c
Calls: act()comm.c
  basic_mud_log()utils.c
  perform_act()comm.c
  skill_name()spell_parser.c
  sprintf(), strcat(), strcpy(), strlen(), strncmp()
Called by: cast_spell()spell_parser.c
References Variables: bufdb.c
  buf1db.c
  buf2db.c
  sylsspell_parser.c
  worlddb.c

Global Function skill_name()

const char* skill_name ( int num )
Prototyped in: spells.h
Called by: check_object_spell_number()db.c
  do_stat_character()act.wizard.c
  do_stat_object()act.wizard.c
  say_spell()spell_parser.c
  spell_identify()spells.c
  spell_level()spell_parser.c
References Variables: spell_infospell_parser.c

Global Function spell_level()

void spell_level ( int spell, int chclass, int level )
Prototyped in: spells.h
Calls: basic_mud_log()utils.c
  skill_name()spell_parser.c
Called by: init_spell_levels()class.c
References Variables: spell_infospell_parser.c

Global Function spello()

void spello ( int spl, const char* name, int max_mana, int min_mana, int mana_change, int minpos, int targets, int violent, int routines, const char* wearoff )
Prototyped in: spell_parser.c
Called by: mag_assign_spells()spell_parser.c
References Variables: spell_infospell_parser.c

Global Function unused_spell()

void unused_spell ( int spl )
Prototyped in: spell_parser.c
Called by: mag_assign_spells()spell_parser.c
References Variables: spell_infospell_parser.c
  unused_spellnamespell_parser.c