--- deliantra/server/include/sproto.h 2008/12/31 17:35:37 1.96 +++ deliantra/server/include/sproto.h 2009/01/01 11:41:17 1.97 @@ -277,20 +277,19 @@ void display_high_score (object *op, int max, const char *match); /* gods.c */ -int lookup_god_by_name (const char *name); -object *find_god (const char *name); +int lookup_god_by_name (shstr_cmp name); +object *find_god (shstr_cmp name); shstr_tmp determine_god (object *op); void pray_at_altar (object *pl, object *altar, object *skill); void become_follower (object *op, object *new_god); int worship_forbids_use (object *op, object *exp_obj, uint32 flag, const char *string); void stop_using_item (object *op, int type, int number); void update_priest_flag (object *god, object *exp_ob, uint32 flag); -archetype *determine_holy_arch (object *god, const char *type); +archetype *determine_holy_arch (object *god, shstr_cmp type); void god_intervention (object *op, object *god, object *skill); int god_examines_priest (object *op, object *god); int god_examines_item (object *god, object *item); int get_god (object *priest); -shstr_tmp get_god_for_race (const char *race); int tailor_god_spell (object *spellop, object *caster); /* init.c */ @@ -424,8 +423,8 @@ void flee_player (object *op); int check_pick (object *op); object *find_arrow (object *op, const char *type); -object *find_better_arrow (object *op, object *target, const char *type, int *better); -object *pick_arrow_target (object *op, const char *type, int dir); +object *find_better_arrow (object *op, object *target, shstr_cmp type, int *better); +object *pick_arrow_target (object *op, shstr_cmp type, int dir); int fire_bow (object *op, object *part, object *arrow, int dir, int wc_mod, sint16 sx, sint16 sy); int player_fire_bow (object *op, int dir); void fire_misc_object (object *op, int dir); @@ -578,7 +577,7 @@ int write_mark (object *op, object *spell, const char *msg); /* spell_util.c */ -object *find_random_spell_in_ob (object *ob, const char *skill); +object *find_random_spell_in_ob (object *ob, shstr_cmp skill = shstr_cmp ()); void set_spell_skill (object *op, object *caster, object *spob, object *dest); void spell_effect (object *spob, int x, int y, maptile *map, object *originator); int min_casting_level (object *caster, object *spell); @@ -587,7 +586,7 @@ int SP_level_dam_adjust (object *caster, object *spob); int SP_level_duration_adjust (object *caster, object *spob); int SP_level_range_adjust (object *caster, object *spob); -object *check_spell_known (object *op, const char *name); +object *check_spell_known (object *op, shstr_cmp name); object *lookup_spell_by_name (object *op, const char *spname); int reflwall (maptile *m, int x, int y, object *sp_op); int cast_create_obj (object *op, object *caster, object *new_op, int dir);