1 | /* alchemy.c */ |
1 | /* alchemy.c */ |
2 | char *cauldron_sound(void); |
|
|
3 | void attempt_do_alchemy(object *caster, object *cauldron); |
2 | void attempt_do_alchemy(object *caster, object *cauldron); |
4 | int content_recipe_value(object *op); |
3 | int content_recipe_value(object *op); |
5 | int numb_ob_inside(object *op); |
4 | int numb_ob_inside(object *op); |
6 | object *attempt_recipe(object *caster, object *cauldron, int ability, recipe *rp, int nbatches); |
5 | object *attempt_recipe(object *caster, object *cauldron, int ability, recipe *rp, int nbatches); |
7 | void adjust_product(object *item, int lvl, int yield); |
6 | void adjust_product(object *item, int lvl, int yield); |
… | |
… | |
9 | object *find_transmution_ob(object *first_ingred, recipe *rp, size_t *rp_arch_index, int create_item); |
8 | object *find_transmution_ob(object *first_ingred, recipe *rp, size_t *rp_arch_index, int create_item); |
10 | void alchemy_failure_effect(object *op, object *cauldron, recipe *rp, int danger); |
9 | void alchemy_failure_effect(object *op, object *cauldron, recipe *rp, int danger); |
11 | void remove_contents(object *first_ob, object *save_item); |
10 | void remove_contents(object *first_ob, object *save_item); |
12 | int calc_alch_danger(object *caster, object *cauldron, recipe *rp); |
11 | int calc_alch_danger(object *caster, object *cauldron, recipe *rp); |
13 | /* apply.c */ |
12 | /* apply.c */ |
|
|
13 | int transport_can_hold(const object *transport, const object *op, int nrof); |
|
|
14 | int apply_transport(object *pl, object *transport, int aflag); |
14 | int should_director_abort(object *op, object *victim); |
15 | int should_director_abort(object *op, object *victim); |
15 | int apply_potion(object *op, object *tmp); |
16 | int apply_potion(object *op, object *tmp); |
16 | int check_item(object *op, const char *item); |
|
|
17 | int check_weapon_power(object *who, int improvs); |
|
|
18 | int improve_weapon_stat(object *op, object *improver, object *weapon, signed char *stat, int sacrifice_count, const char *statname); |
17 | int improve_weapon_stat(object *op, object *improver, object *weapon, signed char *stat, int sacrifice_count, const char *statname); |
19 | int prepare_weapon(object *op, object *improver, object *weapon); |
18 | int prepare_weapon(object *op, object *improver, object *weapon); |
20 | int improve_weapon(object *op, object *improver, object *weapon); |
19 | int improve_weapon(object *op, object *improver, object *weapon); |
21 | int check_improve_weapon(object *op, object *tmp); |
20 | int check_improve_weapon(object *op, object *tmp); |
22 | int improve_armour(object *op, object *improver, object *armour); |
21 | int improve_armour(object *op, object *improver, object *armour); |
… | |
… | |
197 | int command_usekeys(object *op, char *params); |
196 | int command_usekeys(object *op, char *params); |
198 | int command_resistances(object *op, char *params); |
197 | int command_resistances(object *op, char *params); |
199 | int command_help(object *op, char *params); |
198 | int command_help(object *op, char *params); |
200 | int onoff_value(const char *line); |
199 | int onoff_value(const char *line); |
201 | int command_quit(object *op, char *params); |
200 | int command_quit(object *op, char *params); |
|
|
201 | int command_real_quit(object *op, char *params); |
202 | int command_explore(object *op, char *params); |
202 | int command_explore(object *op, char *params); |
203 | int command_sound(object *op, char *params); |
203 | int command_sound(object *op, char *params); |
204 | void receive_player_name(object *op, char k); |
204 | void receive_player_name(object *op, char k); |
205 | void receive_player_password(object *op, char k); |
205 | void receive_player_password(object *op, char k); |
206 | int explore_mode(void); |
206 | int explore_mode(void); |
… | |
… | |
256 | int command_pickup(object *op, char *params); |
256 | int command_pickup(object *op, char *params); |
257 | void set_pickup_mode(object *op, int i); |
257 | void set_pickup_mode(object *op, int i); |
258 | int command_search_items(object *op, char *params); |
258 | int command_search_items(object *op, char *params); |
259 | int command_rename_item(object *op, char *params); |
259 | int command_rename_item(object *op, char *params); |
260 | /* c_party.c */ |
260 | /* c_party.c */ |
261 | partylist* get_firstparty(void); |
261 | partylist *get_firstparty(void); |
262 | void remove_party(partylist *target_party); |
262 | void remove_party(partylist *target_party); |
263 | void obsolete_parties(void); |
263 | void obsolete_parties(void); |
264 | int confirm_party_password(object *op); |
264 | int confirm_party_password(object *op); |
265 | void receive_party_password(object *op, char k); |
265 | void receive_party_password(object *op, char k); |
266 | void send_party_message(object *op, char *msg); |
266 | void send_party_message(object *op, char *msg); |
… | |
… | |
285 | int command_toggle_shout(object *op, char *params); |
285 | int command_toggle_shout(object *op, char *params); |
286 | int command_shutdown(object *op, char *params); |
286 | int command_shutdown(object *op, char *params); |
287 | int command_goto(object *op, char *params); |
287 | int command_goto(object *op, char *params); |
288 | int command_generate(object *op, char *params); |
288 | int command_generate(object *op, char *params); |
289 | int command_freeze(object *op, char *params); |
289 | int command_freeze(object *op, char *params); |
|
|
290 | int command_arrest(object *op, char *params); |
290 | int command_summon(object *op, char *params); |
291 | int command_summon(object *op, char *params); |
291 | int command_teleport(object *op, char *params); |
292 | int command_teleport(object *op, char *params); |
292 | int command_create(object *op, char *params); |
293 | int command_create(object *op, char *params); |
293 | int command_inventory(object *op, char *params); |
294 | int command_inventory(object *op, char *params); |
294 | int command_skills(object *op, char *params); |
295 | int command_skills(object *op, char *params); |
… | |
… | |
321 | int command_stack_pop(object *op, char *params); |
322 | int command_stack_pop(object *op, char *params); |
322 | int command_stack_push(object *op, char *params); |
323 | int command_stack_push(object *op, char *params); |
323 | int command_stack_list(object *op, char *params); |
324 | int command_stack_list(object *op, char *params); |
324 | int command_stack_clear(object *op, char *params); |
325 | int command_stack_clear(object *op, char *params); |
325 | int command_diff(object *op, char *params); |
326 | int command_diff(object *op, char *params); |
|
|
327 | int command_insert_into(object *op, char *params); |
326 | /* commands.c */ |
328 | /* commands.c */ |
327 | void init_commands(void); |
329 | void init_commands(void); |
328 | CommFunc find_oldsocket_command(char *cmd); |
330 | CommFunc find_oldsocket_command(char *cmd); |
329 | CommFunc find_oldsocket_command2(char *cmd); |
331 | CommFunc find_oldsocket_command2(char *cmd); |
330 | int parse_string(object *op, char *str); |
332 | int parse_string(object *op, char *str); |
… | |
… | |
517 | object *get_real_owner(object *ob); |
519 | object *get_real_owner(object *ob); |
518 | int should_arena_attack(object *pet, object *owner, object *target); |
520 | int should_arena_attack(object *pet, object *owner, object *target); |
519 | /* player.c */ |
521 | /* player.c */ |
520 | player *find_player(const char *plname); |
522 | player *find_player(const char *plname); |
521 | player *find_player_partial_name(const char *plname); |
523 | player *find_player_partial_name(const char *plname); |
522 | void display_motd(object *op); |
524 | void display_motd(const object *op); |
523 | void send_rules(object *op); |
525 | void send_rules(const object *op); |
524 | void send_news(object *op); |
526 | void send_news(const object *op); |
525 | int playername_ok(const char *cp); |
527 | int playername_ok(const char *cp); |
526 | int add_player(NewSocket *ns); |
528 | int add_player(NewSocket *ns); |
527 | archetype *get_player_archetype(archetype *at); |
529 | archetype *get_player_archetype(archetype *at); |
528 | object *get_nearest_player(object *mon); |
530 | object *get_nearest_player(object *mon); |
529 | int path_to_player(object *mon, object *pl, unsigned mindiff); |
531 | int path_to_player(object *mon, object *pl, unsigned mindiff); |
… | |
… | |
579 | int plugins_init_plugin(const char *libfile); |
581 | int plugins_init_plugin(const char *libfile); |
580 | void *cfapi_get_hooks(int *type, ...); |
582 | void *cfapi_get_hooks(int *type, ...); |
581 | int plugins_remove_plugin(const char *id); |
583 | int plugins_remove_plugin(const char *id); |
582 | crossfire_plugin *plugins_find_plugin(const char *id); |
584 | crossfire_plugin *plugins_find_plugin(const char *id); |
583 | void plugins_display_list(object *op); |
585 | void plugins_display_list(object *op); |
|
|
586 | void *cfapi_system_find_animation(int *type, ...); |
|
|
587 | void *cfapi_system_strdup_local(int *type, ...); |
584 | void *cfapi_system_register_global_event(int *type, ...); |
588 | void *cfapi_system_register_global_event(int *type, ...); |
585 | void *cfapi_system_unregister_global_event(int *type, ...); |
589 | void *cfapi_system_unregister_global_event(int *type, ...); |
586 | void *cfapi_system_add_string(int *type, ...); |
590 | void *cfapi_system_add_string(int *type, ...); |
587 | void *cfapi_system_remove_string(int *type, ...); |
591 | void *cfapi_system_remove_string(int *type, ...); |
588 | void *cfapi_system_check_path(int *type, ...); |
592 | void *cfapi_system_check_path(int *type, ...); |
589 | void *cfapi_system_re_cmp(int *type, ...); |
593 | void *cfapi_system_re_cmp(int *type, ...); |
590 | void *cfapi_system_strdup_local(int *type, ...); |
|
|
591 | void *cfapi_system_directory(int *type, ...); |
594 | void *cfapi_system_directory(int *type, ...); |
592 | void *cfapi_system_find_animation(int *type, ...); |
|
|
593 | void *cfapi_map_get_map(int *type, ...); |
595 | void *cfapi_map_get_map(int *type, ...); |
594 | void *cfapi_map_has_been_loaded(int *type, ...); |
596 | void *cfapi_map_has_been_loaded(int *type, ...); |
595 | void *cfapi_map_create_path(int *type, ...); |
597 | void *cfapi_map_create_path(int *type, ...); |
596 | void *cfapi_map_get_map_property(int *type, ...); |
598 | void *cfapi_map_get_map_property(int *type, ...); |
597 | void *cfapi_map_set_map_property(int *type, ...); |
599 | void *cfapi_map_set_map_property(int *type, ...); |
598 | void *cfapi_map_out_of_map(int *type, ...); |
600 | void *cfapi_map_out_of_map(int *type, ...); |
599 | void *cfapi_map_update_position(int *type, ...); |
601 | void *cfapi_map_update_position(int *type, ...); |
600 | void *cfapi_map_delete_map(int *type, ...); |
602 | void *cfapi_map_delete_map(int *type, ...); |
601 | void *cfapi_map_message(int *type, ...); |
603 | void *cfapi_map_message(int *type, ...); |
602 | void *cfapi_map_get_object_at(int *type, ...); |
604 | void *cfapi_map_get_object_at(int *type, ...); |
603 | void *cfapi_map_get_flags(int* type, ...); |
605 | void *cfapi_map_get_flags(int *type, ...); |
604 | void *cfapi_map_present_arch_by_name(int* type, ...); |
606 | void *cfapi_map_present_arch_by_name(int *type, ...); |
|
|
607 | void *cfapi_object_move(int *type, ...); |
605 | void *cfapi_object_get_key(int* type,...); |
608 | void *cfapi_object_get_key(int *type, ...); |
606 | void *cfapi_object_set_key(int* type,...); |
609 | void *cfapi_object_set_key(int *type, ...); |
607 | void *cfapi_object_get_property(int *type, ...); |
610 | void *cfapi_object_get_property(int *type, ...); |
608 | void *cfapi_object_set_property(int *type, ...); |
611 | void *cfapi_object_set_property(int *type, ...); |
|
|
612 | void *cfapi_object_apply_below(int *type, ...); |
609 | void *cfapi_object_apply(int *type, ...); |
613 | void *cfapi_object_apply(int *type, ...); |
610 | void *cfapi_object_identify(int *type, ...); |
614 | void *cfapi_object_identify(int *type, ...); |
611 | void *cfapi_object_describe(int *type, ...); |
615 | void *cfapi_object_describe(int *type, ...); |
612 | void *cfapi_object_drain(int *type, ...); |
616 | void *cfapi_object_drain(int *type, ...); |
613 | void *cfapi_object_fix(int *type, ...); |
617 | void *cfapi_object_fix(int *type, ...); |
… | |
… | |
647 | void *cfapi_player_find(int *type, ...); |
651 | void *cfapi_player_find(int *type, ...); |
648 | void *cfapi_player_message(int *type, ...); |
652 | void *cfapi_player_message(int *type, ...); |
649 | void *cfapi_player_send_inventory(int *type, ...); |
653 | void *cfapi_player_send_inventory(int *type, ...); |
650 | void *cfapi_object_teleport(int *type, ...); |
654 | void *cfapi_object_teleport(int *type, ...); |
651 | void *cfapi_object_pickup(int *type, ...); |
655 | void *cfapi_object_pickup(int *type, ...); |
652 | void *cfapi_object_move(int* type, ...); |
|
|
653 | void *cfapi_object_apply_below(int* type, ...); |
|
|
654 | void *cfapi_archetype_get_first(int* type, ...); |
656 | void *cfapi_archetype_get_first(int *type, ...); |
655 | void *cfapi_archetype_get_property(int* type, ...); |
657 | void *cfapi_archetype_get_property(int *type, ...); |
656 | void *cfapi_party_get_property(int* type, ...); |
658 | void *cfapi_party_get_property(int *type, ...); |
657 | void *cfapi_region_get_property(int* type, ...); |
659 | void *cfapi_region_get_property(int *type, ...); |
658 | CommArray_s *find_plugin_command(char *cmd, object *op); |
660 | CommArray_s *find_plugin_command(char *cmd, object *op); |
659 | int initPlugins(void); |
661 | int initPlugins(void); |
660 | /* resurrection.c */ |
662 | /* resurrection.c */ |
661 | int cast_raise_dead_spell(object *op, object *caster, object *spell, int dir, const char *arg); |
663 | int cast_raise_dead_spell(object *op, object *caster, object *spell, int dir, const char *arg); |
662 | int resurrection_fails(int levelcaster, int leveldead); |
664 | int resurrection_fails(int levelcaster, int leveldead); |
… | |
… | |
672 | int trap_see(object *op, object *trap); |
674 | int trap_see(object *op, object *trap); |
673 | int trap_show(object *trap, object *where); |
675 | int trap_show(object *trap, object *where); |
674 | int trap_disarm(object *disarmer, object *trap, int risk, object *skill); |
676 | int trap_disarm(object *disarmer, object *trap, int risk, object *skill); |
675 | void trap_adjust(object *trap, int difficulty); |
677 | void trap_adjust(object *trap, int difficulty); |
676 | /* shop.c */ |
678 | /* shop.c */ |
|
|
679 | double shopkeeper_approval(const mapstruct *map, const object *player); |
677 | uint64 query_cost(object *tmp, object *who, int flag); |
680 | uint64 query_cost(const object *tmp, object *who, int flag); |
678 | const char *cost_string_from_value(uint64 cost); |
|
|
679 | const char *query_cost_string(object *tmp, object *who, int flag); |
681 | const char *query_cost_string(const object *tmp, object *who, int flag); |
680 | uint64 query_money(object *op); |
682 | uint64 query_money(const object *op); |
681 | int pay_for_amount(uint64 to_pay, object *pl); |
683 | int pay_for_amount(uint64 to_pay, object *pl); |
682 | int pay_for_item(object *op, object *pl); |
684 | int pay_for_item(object *op, object *pl); |
683 | int can_pay(object *pl); |
685 | int can_pay(object *pl); |
684 | int get_payment(object *pl, object *op); |
686 | int get_payment(object *pl, object *op); |
685 | void sell_item(object *op, object *pl); |
687 | void sell_item(object *op, object *pl); |
686 | double shop_specialisation_ratio(object *item, mapstruct *map); |
|
|
687 | double shop_greed(mapstruct *map); |
|
|
688 | double shopkeeper_approval(mapstruct *map, object *player); |
|
|
689 | int describe_shop(object *op); |
688 | int describe_shop(const object *op); |
690 | void shop_listing(object *op); |
689 | void shop_listing(object *op); |
691 | /* skills.c */ |
690 | /* skills.c */ |
692 | int steal(object *op, int dir, object *skill); |
691 | int steal(object *op, int dir, object *skill); |
693 | int pick_lock(object *pl, int dir, object *skill); |
692 | int pick_lock(object *pl, int dir, object *skill); |
694 | int hide(object *op, object *skill); |
693 | int hide(object *op, object *skill); |
… | |
… | |
711 | int change_skill(object *who, object *new_skill, int flag); |
710 | int change_skill(object *who, object *new_skill, int flag); |
712 | void clear_skill(object *who); |
711 | void clear_skill(object *who); |
713 | int do_skill(object *op, object *part, object *skill, int dir, const char *string); |
712 | int do_skill(object *op, object *part, object *skill, int dir, const char *string); |
714 | int calc_skill_exp(object *who, object *op, object *skill); |
713 | int calc_skill_exp(object *who, object *op, object *skill); |
715 | int learn_skill(object *pl, object *scroll); |
714 | int learn_skill(object *pl, object *scroll); |
716 | void show_skills(object *op, const char* search); |
715 | void show_skills(object *op, const char *search); |
717 | int use_skill(object *op, const char *string); |
716 | int use_skill(object *op, const char *string); |
718 | int skill_attack(object *tmp, object *pl, int dir, const char *string, object *skill); |
717 | int skill_attack(object *tmp, object *pl, int dir, const char *string, object *skill); |
719 | int attack_hth(object *pl, int dir, const char *string, object *skill); |
718 | int attack_hth(object *pl, int dir, const char *string, object *skill); |
720 | int attack_melee_weapon(object *op, int dir, const char *string, object *skill); |
719 | int attack_melee_weapon(object *op, int dir, const char *string, object *skill); |
721 | /* spell_attack.c */ |
720 | /* spell_attack.c */ |
… | |
… | |
847 | void move_teleporter(object *op); |
846 | void move_teleporter(object *op); |
848 | void move_player_changer(object *op); |
847 | void move_player_changer(object *op); |
849 | void move_firewall(object *op); |
848 | void move_firewall(object *op); |
850 | void move_player_mover(object *op); |
849 | void move_player_mover(object *op); |
851 | void move_duplicator(object *op); |
850 | void move_duplicator(object *op); |
852 | void move_creator(object *op); |
851 | void move_creator(object *creator); |
853 | void move_marker(object *op); |
852 | void move_marker(object *op); |
854 | int process_object(object *op); |
853 | int process_object(object *op); |
855 | /* timers.c */ |
854 | /* timers.c */ |
856 | void cftimer_process_timers(void); |
855 | void cftimer_process_timers(void); |
857 | void cftimer_process_event(object *ob); |
856 | void cftimer_process_event(object *ob); |