File spell_parser.c
Included Files
#include "structs.h"
#include "utils.h"
#include "interpreter.h"
#include "spells.h"
#include "handler.h"
#include "comm.h"
#include "db.h"
Preprocessor definitions
#define SINFO
#define skillo( skill )
Type struct syllable
struct syllable
{
char* org
char* new
}
Global Variable spell_info
struct spell_info_type spell_info[299]
- Visible in:
-
- act.other.c
- magic.c
- spec_procs.c
- spell_parser.c
- Used in:
-
- call_magic() : spell_parser.c
- cast_spell() : spell_parser.c
- do_cast() : spell_parser.c
- guild() : spec_procs.c
- list_skills() : spec_procs.c
- mag_manacost() : spell_parser.c
- spell_level() : spell_parser.c
- spello() : spell_parser.c
- unused_spell() : spell_parser.c
Global Variable spells
char* spells[]
- Visible in:
-
- act.informative.c
- act.wizard.c
- modify.c
- spec_procs.c
- spell_parser.c
- spells.c
- Used in:
-
- do_skillset() : modify.c
- do_stat_character() : act.wizard.c
- find_skill_num() : spell_parser.c
- list_skills() : spec_procs.c
- say_spell() : spell_parser.c
- skill_name() : spell_parser.c
- sort_spells() : spec_procs.c
- spell_identify() : spells.c
Global Variable syls
struct syllable syls[]
- Visible in:
-
- spell_parser.c
- Used in:
-
- say_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
- Called by:
-
- cast_spell() : spell_parser.c
- mag_objectmagic() : spell_parser.c
- snake() : spec_procs.c
- References Variables:
-
- spell_info : spell_parser.c
- world : db.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
- sprintf()
- Called by:
-
- do_cast() : spell_parser.c
- fry_victim() : castle.c
- magic_user() : spec_procs.c
- References Variables:
-
- OK : config.c
- spell_info : spell_parser.c
Global Function do_cast()
void do_cast ( struct char_data* ch, char* argument, int cmd, int subcmd )
- Calls:
-
- MAX() : utils.c
- MIN() : utils.c
- cast_spell() : spell_parser.c
- find_skill_num() : spell_parser.c
- get_char_room_vis() : handler.c
- get_char_vis() : handler.c
- get_obj_in_list_vis() : handler.c
- get_obj_vis() : handler.c
- hit() : fight.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
- str_cmp() : utils.c
- sprintf(), strcpy(), strtok()
- Used in:
-
- : interpreter.c
- References Variables:
-
- spell_info : spell_parser.c
- world : db.c
- arg, buf
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:
-
- spells : spell_parser.c
Global Function mag_assign_spells()
void mag_assign_spells ( void )
- 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 )
- Calls:
-
- MAX() : utils.c
- Called by:
-
- do_cast() : spell_parser.c
- References Variables:
-
- spell_info : spell_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
- Called by:
-
- do_use() : act.other.c
- References Variables:
-
- world : db.c
- arg
Global Function say_spell()
void say_spell ( struct char_data* ch, int spellnum, struct char_data* tch, struct obj_data* tobj )
- Calls:
-
- act() : comm.c
- perform_act() : comm.c
- sprintf(), strcat(), strcpy(), strlen(), strncmp()
- Called by:
-
- cast_spell() : spell_parser.c
- References Variables:
-
- spells : spell_parser.c
- syls : spell_parser.c
- world : db.c
- buf, buf, buf
Global Function skill_name()
char* skill_name ( int num )
- Prototyped in:
-
- spells.h
- Called by:
-
- do_stat_object() : act.wizard.c
- spell_level() : spell_parser.c
- References Variables:
-
- spells : spell_parser.c
Global Function spell_level()
void spell_level ( int spell, int class, int level )
- Prototyped in:
-
- spells.h
- Calls:
-
- basic_mud_log() : utils.c
- skill_name() : spell_parser.c
- sprintf()
- Called by:
-
- init_spell_levels() : class.c
- References Variables:
-
- spell_info : spell_parser.c
Global Function spello()
void spello ( int spl, int max_mana, int min_mana, int mana_change, int minpos, int targets, int violent, int routines )
- Called by:
-
- mag_assign_spells() : spell_parser.c
- References Variables:
-
- spell_info : spell_parser.c
Global Function unused_spell()
void unused_spell ( int spl )
- Called by:
-
- mag_assign_spells() : spell_parser.c
- References Variables:
-
- spell_info : spell_parser.c