1 | /* alchemy.c */ |
1 | /* alchemy.c */ |
2 | char *cauldron_sound(void); |
2 | void pay_player (object *pl, uint64 amount); |
|
|
3 | uint64 pay_player_arch (object *pl, const char *arch, uint64 amount); |
3 | void attempt_do_alchemy(object *caster, object *cauldron); |
4 | void attempt_do_alchemy(object *caster, object *cauldron); |
4 | int content_recipe_value(object *op); |
5 | int content_recipe_value(object *op); |
5 | int numb_ob_inside(object *op); |
6 | int numb_ob_inside(object *op); |
6 | object *attempt_recipe(object *caster, object *cauldron, int ability, recipe *rp, int nbatches); |
7 | object *attempt_recipe(object *caster, object *cauldron, int ability, recipe *rp, int nbatches); |
7 | void adjust_product(object *item, int lvl, int yield); |
8 | 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); |
10 | 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); |
11 | void alchemy_failure_effect(object *op, object *cauldron, recipe *rp, int danger); |
11 | void remove_contents(object *first_ob, object *save_item); |
12 | void remove_contents(object *first_ob, object *save_item); |
12 | int calc_alch_danger(object *caster, object *cauldron, recipe *rp); |
13 | int calc_alch_danger(object *caster, object *cauldron, recipe *rp); |
13 | /* apply.c */ |
14 | /* apply.c */ |
|
|
15 | int transport_can_hold(const object *transport, const object *op, int nrof); |
|
|
16 | int apply_transport(object *pl, object *transport, int aflag); |
14 | int should_director_abort(object *op, object *victim); |
17 | int should_director_abort(object *op, object *victim); |
15 | int apply_potion(object *op, object *tmp); |
18 | 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); |
19 | 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); |
20 | int prepare_weapon(object *op, object *improver, object *weapon); |
20 | int improve_weapon(object *op, object *improver, object *weapon); |
21 | int improve_weapon(object *op, object *improver, object *weapon); |
21 | int check_improve_weapon(object *op, object *tmp); |
22 | int check_improve_weapon(object *op, object *tmp); |
22 | int improve_armour(object *op, object *improver, object *armour); |
23 | int improve_armour(object *op, object *improver, object *armour); |
… | |
… | |
197 | int command_usekeys(object *op, char *params); |
198 | int command_usekeys(object *op, char *params); |
198 | int command_resistances(object *op, char *params); |
199 | int command_resistances(object *op, char *params); |
199 | int command_help(object *op, char *params); |
200 | int command_help(object *op, char *params); |
200 | int onoff_value(const char *line); |
201 | int onoff_value(const char *line); |
201 | int command_quit(object *op, char *params); |
202 | int command_quit(object *op, char *params); |
|
|
203 | int command_real_quit(object *op, char *params); |
202 | int command_explore(object *op, char *params); |
204 | int command_explore(object *op, char *params); |
203 | int command_sound(object *op, char *params); |
205 | int command_sound(object *op, char *params); |
204 | void receive_player_name(object *op, char k); |
206 | void receive_player_name(object *op, char k); |
205 | void receive_player_password(object *op, char k); |
207 | void receive_player_password(object *op, char k); |
206 | int explore_mode(void); |
208 | int explore_mode(void); |
… | |
… | |
256 | int command_pickup(object *op, char *params); |
258 | int command_pickup(object *op, char *params); |
257 | void set_pickup_mode(object *op, int i); |
259 | void set_pickup_mode(object *op, int i); |
258 | int command_search_items(object *op, char *params); |
260 | int command_search_items(object *op, char *params); |
259 | int command_rename_item(object *op, char *params); |
261 | int command_rename_item(object *op, char *params); |
260 | /* c_party.c */ |
262 | /* c_party.c */ |
|
|
263 | int same_party(partylist *a, partylist *b); |
261 | partylist* get_firstparty(void); |
264 | partylist *get_firstparty(void); |
262 | void remove_party(partylist *target_party); |
265 | void remove_party(partylist *target_party); |
263 | void obsolete_parties(void); |
266 | void obsolete_parties(void); |
|
|
267 | void add_kill_to_party(partylist *party, char *killer, char *dead, long exp); |
264 | int confirm_party_password(object *op); |
268 | int confirm_party_password(object *op); |
265 | void receive_party_password(object *op, char k); |
269 | void receive_party_password(object *op, char k); |
266 | void send_party_message(object *op, char *msg); |
270 | void send_party_message(object *op, char *msg); |
267 | int command_gsay(object *op, char *params); |
271 | int command_gsay(object *op, char *params); |
268 | int command_party(object *op, char *params); |
272 | int command_party(object *op, char *params); |
… | |
… | |
285 | int command_toggle_shout(object *op, char *params); |
289 | int command_toggle_shout(object *op, char *params); |
286 | int command_shutdown(object *op, char *params); |
290 | int command_shutdown(object *op, char *params); |
287 | int command_goto(object *op, char *params); |
291 | int command_goto(object *op, char *params); |
288 | int command_generate(object *op, char *params); |
292 | int command_generate(object *op, char *params); |
289 | int command_freeze(object *op, char *params); |
293 | int command_freeze(object *op, char *params); |
|
|
294 | int command_arrest(object *op, char *params); |
290 | int command_summon(object *op, char *params); |
295 | int command_summon(object *op, char *params); |
291 | int command_teleport(object *op, char *params); |
296 | int command_teleport(object *op, char *params); |
292 | int command_create(object *op, char *params); |
297 | int command_create(object *op, char *params); |
293 | int command_inventory(object *op, char *params); |
298 | int command_inventory(object *op, char *params); |
294 | int command_skills(object *op, char *params); |
299 | int command_skills(object *op, char *params); |
… | |
… | |
321 | int command_stack_pop(object *op, char *params); |
326 | int command_stack_pop(object *op, char *params); |
322 | int command_stack_push(object *op, char *params); |
327 | int command_stack_push(object *op, char *params); |
323 | int command_stack_list(object *op, char *params); |
328 | int command_stack_list(object *op, char *params); |
324 | int command_stack_clear(object *op, char *params); |
329 | int command_stack_clear(object *op, char *params); |
325 | int command_diff(object *op, char *params); |
330 | int command_diff(object *op, char *params); |
|
|
331 | int command_insert_into(object *op, char *params); |
326 | /* commands.c */ |
332 | /* commands.c */ |
327 | void init_commands(void); |
333 | void init_commands(void); |
328 | CommFunc find_oldsocket_command(char *cmd); |
334 | CommFunc find_oldsocket_command(char *cmd); |
329 | CommFunc find_oldsocket_command2(char *cmd); |
335 | CommFunc find_oldsocket_command2(char *cmd); |
330 | int parse_string(object *op, char *str); |
|
|
331 | int parse_command(object *op, char *str); |
|
|
332 | /* daemon.c */ |
336 | /* daemon.c */ |
333 | FILE *BecomeDaemon(char *filename); |
337 | FILE *BecomeDaemon(const char *filename); |
334 | /* disease.c */ |
338 | /* disease.c */ |
335 | int move_disease(object *disease); |
339 | int move_disease(object *disease); |
336 | int remove_symptoms(object *disease); |
340 | int remove_symptoms(object *disease); |
337 | object *find_symptom(object *disease); |
341 | object *find_symptom(object *disease); |
338 | int check_infection(object *disease); |
342 | int check_infection(object *disease); |
… | |
… | |
418 | void add_to_racelist(const char *race_name, object *op); |
422 | void add_to_racelist(const char *race_name, object *op); |
419 | racelink *get_racelist(void); |
423 | racelink *get_racelist(void); |
420 | racelink *find_racelink(const char *name); |
424 | racelink *find_racelink(const char *name); |
421 | /* login.c */ |
425 | /* login.c */ |
422 | void emergency_save(int flag); |
426 | void emergency_save(int flag); |
423 | void delete_character(const char *name, int new); |
427 | void delete_character(const char *name, int); |
424 | int verify_player(const char *name, char *password); |
428 | int verify_player(const char *name, char *password); |
425 | int check_name(player *me, const char *name); |
429 | int check_name(player *me, const char *name); |
426 | int create_savedir_if_needed(char *savedir); |
430 | int create_savedir_if_needed(char *savedir); |
427 | void destroy_object(object *op); |
431 | void destroy_object(object *op); |
428 | int save_player(object *op, int flag); |
432 | int save_player(object *op, int flag); |
… | |
… | |
504 | int push_ob(object *who, int dir, object *pusher); |
508 | int push_ob(object *who, int dir, object *pusher); |
505 | /* pets.c */ |
509 | /* pets.c */ |
506 | object *get_pet_enemy(object *pet, rv_vector *rv); |
510 | object *get_pet_enemy(object *pet, rv_vector *rv); |
507 | void terminate_all_pets(object *owner); |
511 | void terminate_all_pets(object *owner); |
508 | void remove_all_pets(mapstruct *map); |
512 | void remove_all_pets(mapstruct *map); |
509 | void follow_owner(object *ob, object *owner); |
513 | int follow_owner(object *ob, object *owner); |
510 | void pet_move(object *ob); |
514 | void pet_move(object *ob); |
511 | object *fix_summon_pet(archetype *at, object *op, int dir, int is_golem); |
515 | object *fix_summon_pet(archetype *at, object *op, int dir, int is_golem); |
512 | void move_golem(object *op); |
516 | void move_golem(object *op); |
513 | void control_golem(object *op, int dir); |
517 | void control_golem(object *op, int dir); |
514 | int summon_golem(object *op, object *caster, int dir, object *spob); |
518 | int summon_golem(object *op, object *caster, int dir, object *spob); |
… | |
… | |
517 | object *get_real_owner(object *ob); |
521 | object *get_real_owner(object *ob); |
518 | int should_arena_attack(object *pet, object *owner, object *target); |
522 | int should_arena_attack(object *pet, object *owner, object *target); |
519 | /* player.c */ |
523 | /* player.c */ |
520 | player *find_player(const char *plname); |
524 | player *find_player(const char *plname); |
521 | player *find_player_partial_name(const char *plname); |
525 | player *find_player_partial_name(const char *plname); |
522 | void display_motd(object *op); |
526 | void display_motd(const object *op); |
523 | void send_rules(object *op); |
527 | void send_rules(const object *op); |
524 | void send_news(object *op); |
528 | void send_news(const object *op); |
525 | int playername_ok(const char *cp); |
529 | int playername_ok(const char *cp); |
526 | int add_player(NewSocket *ns); |
530 | int add_player(NewSocket *ns); |
527 | archetype *get_player_archetype(archetype *at); |
531 | archetype *get_player_archetype(archetype *at); |
528 | object *get_nearest_player(object *mon); |
532 | object *get_nearest_player(object *mon); |
529 | int path_to_player(object *mon, object *pl, unsigned mindiff); |
533 | int path_to_player(object *mon, object *pl, unsigned mindiff); |
… | |
… | |
579 | int plugins_init_plugin(const char *libfile); |
583 | int plugins_init_plugin(const char *libfile); |
580 | void *cfapi_get_hooks(int *type, ...); |
584 | void *cfapi_get_hooks(int *type, ...); |
581 | int plugins_remove_plugin(const char *id); |
585 | int plugins_remove_plugin(const char *id); |
582 | crossfire_plugin *plugins_find_plugin(const char *id); |
586 | crossfire_plugin *plugins_find_plugin(const char *id); |
583 | void plugins_display_list(object *op); |
587 | void plugins_display_list(object *op); |
|
|
588 | void *cfapi_system_find_animation(int *type, ...); |
|
|
589 | void *cfapi_system_strdup_local(int *type, ...); |
584 | void *cfapi_system_register_global_event(int *type, ...); |
590 | void *cfapi_system_register_global_event(int *type, ...); |
585 | void *cfapi_system_unregister_global_event(int *type, ...); |
591 | void *cfapi_system_unregister_global_event(int *type, ...); |
586 | void *cfapi_system_add_string(int *type, ...); |
592 | void *cfapi_system_add_string(int *type, ...); |
587 | void *cfapi_system_remove_string(int *type, ...); |
593 | void *cfapi_system_remove_string(int *type, ...); |
588 | void *cfapi_system_check_path(int *type, ...); |
594 | void *cfapi_system_check_path(int *type, ...); |
589 | void *cfapi_system_re_cmp(int *type, ...); |
595 | void *cfapi_system_re_cmp(int *type, ...); |
590 | void *cfapi_system_strdup_local(int *type, ...); |
|
|
591 | void *cfapi_system_directory(int *type, ...); |
596 | void *cfapi_system_directory(int *type, ...); |
592 | void *cfapi_system_find_animation(int *type, ...); |
|
|
593 | void *cfapi_map_get_map(int *type, ...); |
597 | void *cfapi_map_get_map(int *type, ...); |
594 | void *cfapi_map_has_been_loaded(int *type, ...); |
598 | void *cfapi_map_has_been_loaded(int *type, ...); |
595 | void *cfapi_map_create_path(int *type, ...); |
599 | void *cfapi_map_create_path(int *type, ...); |
596 | void *cfapi_map_get_map_property(int *type, ...); |
600 | void *cfapi_map_get_map_property(int *type, ...); |
597 | void *cfapi_map_set_map_property(int *type, ...); |
601 | void *cfapi_map_set_map_property(int *type, ...); |
598 | void *cfapi_map_out_of_map(int *type, ...); |
602 | void *cfapi_map_out_of_map(int *type, ...); |
599 | void *cfapi_map_update_position(int *type, ...); |
603 | void *cfapi_map_update_position(int *type, ...); |
600 | void *cfapi_map_delete_map(int *type, ...); |
604 | void *cfapi_map_delete_map(int *type, ...); |
601 | void *cfapi_map_message(int *type, ...); |
605 | void *cfapi_map_message(int *type, ...); |
602 | void *cfapi_map_get_object_at(int *type, ...); |
606 | void *cfapi_map_get_object_at(int *type, ...); |
603 | void *cfapi_map_get_flags(int* type, ...); |
607 | void *cfapi_map_get_flags(int *type, ...); |
604 | void *cfapi_map_present_arch_by_name(int* type, ...); |
608 | void *cfapi_map_present_arch_by_name(int *type, ...); |
|
|
609 | void *cfapi_object_move(int *type, ...); |
605 | void *cfapi_object_get_key(int* type,...); |
610 | void *cfapi_object_get_key(int *type, ...); |
606 | void *cfapi_object_set_key(int* type,...); |
611 | void *cfapi_object_set_key(int *type, ...); |
607 | void *cfapi_object_get_property(int *type, ...); |
612 | void *cfapi_object_get_property(int *type, ...); |
608 | void *cfapi_object_set_property(int *type, ...); |
613 | void *cfapi_object_set_property(int *type, ...); |
|
|
614 | void *cfapi_object_apply_below(int *type, ...); |
609 | void *cfapi_object_apply(int *type, ...); |
615 | void *cfapi_object_apply(int *type, ...); |
610 | void *cfapi_object_identify(int *type, ...); |
616 | void *cfapi_object_identify(int *type, ...); |
611 | void *cfapi_object_describe(int *type, ...); |
617 | void *cfapi_object_describe(int *type, ...); |
612 | void *cfapi_object_drain(int *type, ...); |
618 | void *cfapi_object_drain(int *type, ...); |
613 | void *cfapi_object_fix(int *type, ...); |
619 | void *cfapi_object_fix(int *type, ...); |
… | |
… | |
647 | void *cfapi_player_find(int *type, ...); |
653 | void *cfapi_player_find(int *type, ...); |
648 | void *cfapi_player_message(int *type, ...); |
654 | void *cfapi_player_message(int *type, ...); |
649 | void *cfapi_player_send_inventory(int *type, ...); |
655 | void *cfapi_player_send_inventory(int *type, ...); |
650 | void *cfapi_object_teleport(int *type, ...); |
656 | void *cfapi_object_teleport(int *type, ...); |
651 | void *cfapi_object_pickup(int *type, ...); |
657 | 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, ...); |
658 | void *cfapi_archetype_get_first(int *type, ...); |
655 | void *cfapi_archetype_get_property(int* type, ...); |
659 | void *cfapi_archetype_get_property(int *type, ...); |
656 | void *cfapi_party_get_property(int* type, ...); |
660 | void *cfapi_party_get_property(int *type, ...); |
657 | void *cfapi_region_get_property(int* type, ...); |
661 | void *cfapi_region_get_property(int *type, ...); |
658 | CommArray_s *find_plugin_command(char *cmd, object *op); |
662 | CommArray_s *find_plugin_command(char *cmd, object *op); |
659 | int initPlugins(void); |
663 | int initPlugins(void); |
660 | /* resurrection.c */ |
664 | /* resurrection.c */ |
661 | int cast_raise_dead_spell(object *op, object *caster, object *spell, int dir, const char *arg); |
665 | int cast_raise_dead_spell(object *op, object *caster, object *spell, int dir, const char *arg); |
662 | int resurrection_fails(int levelcaster, int leveldead); |
666 | int resurrection_fails(int levelcaster, int leveldead); |
… | |
… | |
672 | int trap_see(object *op, object *trap); |
676 | int trap_see(object *op, object *trap); |
673 | int trap_show(object *trap, object *where); |
677 | int trap_show(object *trap, object *where); |
674 | int trap_disarm(object *disarmer, object *trap, int risk, object *skill); |
678 | int trap_disarm(object *disarmer, object *trap, int risk, object *skill); |
675 | void trap_adjust(object *trap, int difficulty); |
679 | void trap_adjust(object *trap, int difficulty); |
676 | /* shop.c */ |
680 | /* shop.c */ |
677 | uint64 query_cost(object *tmp, object *who, int flag); |
681 | 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); |
682 | const char *query_cost_string(const object *tmp, object *who, int flag); |
680 | uint64 query_money(object *op); |
683 | uint64 query_money(const object *op); |
681 | int pay_for_amount(uint64 to_pay, object *pl); |
684 | int pay_for_amount(uint64 to_pay, object *pl); |
682 | int pay_for_item(object *op, object *pl); |
685 | int pay_for_item(object *op, object *pl); |
683 | int can_pay(object *pl); |
686 | int can_pay(object *pl); |
684 | int get_payment(object *pl, object *op); |
687 | int get_payment(object *pl, object *op); |
685 | void sell_item(object *op, object *pl); |
688 | 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 | double shopkeeper_approval(const mapstruct *map, const object *player); |
689 | int describe_shop(object *op); |
690 | int describe_shop(const object *op); |
690 | void shop_listing(object *op); |
691 | void shop_listing(object *op); |
691 | /* skills.c */ |
692 | /* skills.c */ |
692 | int steal(object *op, int dir, object *skill); |
693 | int steal(object *op, int dir, object *skill); |
693 | int pick_lock(object *pl, int dir, object *skill); |
694 | int pick_lock(object *pl, int dir, object *skill); |
694 | int hide(object *op, object *skill); |
695 | int hide(object *op, object *skill); |
… | |
… | |
711 | int change_skill(object *who, object *new_skill, int flag); |
712 | int change_skill(object *who, object *new_skill, int flag); |
712 | void clear_skill(object *who); |
713 | void clear_skill(object *who); |
713 | int do_skill(object *op, object *part, object *skill, int dir, const char *string); |
714 | 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); |
715 | int calc_skill_exp(object *who, object *op, object *skill); |
715 | int learn_skill(object *pl, object *scroll); |
716 | int learn_skill(object *pl, object *scroll); |
716 | void show_skills(object *op, const char* search); |
717 | void show_skills(object *op, const char *search); |
717 | int use_skill(object *op, const char *string); |
718 | int use_skill(object *op, const char *string); |
718 | int skill_attack(object *tmp, object *pl, int dir, const char *string, object *skill); |
719 | 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); |
|
|
720 | int attack_melee_weapon(object *op, int dir, const char *string, object *skill); |
|
|
721 | /* spell_attack.c */ |
720 | /* spell_attack.c */ |
722 | void check_spell_knockback(object *op); |
721 | void check_spell_knockback(object *op); |
723 | void forklightning(object *op, object *tmp); |
722 | void forklightning(object *op, object *tmp); |
724 | void move_bolt(object *op); |
723 | void move_bolt(object *op); |
725 | int fire_bolt(object *op, object *caster, int dir, object *spob, object *skill); |
724 | int fire_bolt(object *op, object *caster, int dir, object *spob, object *skill); |
… | |
… | |
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); |