--- deliantra/server/include/sproto.h 2008/10/06 18:26:35 1.93 +++ deliantra/server/include/sproto.h 2009/01/04 16:30:39 1.98 @@ -25,7 +25,7 @@ const char *cost_string_from_value (sint64 cost, int approx); void pay_player (object *pl, sint64 amount); sint64 pay_player_arch (object *pl, const char *arch, sint64 amount); -void attempt_do_alchemy (object *caster, object *cauldron); +void attempt_do_alchemy (object *caster, object *cauldron, object *skill); int content_recipe_value (object *op); int numb_ob_inside (object *op); object *attempt_recipe (object *caster, object *cauldron, int ability, recipe *rp, int nbatches); @@ -262,17 +262,10 @@ /* disease.c */ int move_disease (object *disease); -int remove_symptoms (object *disease); -object *find_symptom (object *disease); -int check_infection (object *disease); int infect_object (object *victim, object *disease, int force); -int do_symptoms (object *disease); -int grant_immunity (object *disease); int move_symptom (object *symptom); int check_physically_infect (object *victim, object *hitter); -object *find_disease (object *victim); int cure_disease (object *sufferer, object *caster, object *spell); -int reduce_symptoms (object *sufferer, int reduction); /* egoitem.c */ int create_artifact (object *op, const char *artifactname); @@ -284,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); -const char *determine_god (object *op); +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); -const char *get_god_for_race (const char *race); int tailor_god_spell (object *spellop, object *caster); /* init.c */ @@ -404,7 +396,6 @@ int summon_golem (object *op, object *caster, int dir, object *spob); object *choose_cult_monster (object *pl, object *god, int summon_level); int summon_object (object *op, object *caster, object *spell_ob, int dir, const char *stringarg); -object *get_real_owner (object *ob); int should_arena_attack (object *pet, object *owner, object *target); /* player.c */ @@ -432,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); @@ -586,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); @@ -595,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);