… | |
… | |
23 | int need_identify (const object *obj); |
23 | int need_identify (const object *obj); |
24 | int apply_shop_mat (object *shop_mat, object *op); |
24 | int apply_shop_mat (object *shop_mat, object *op); |
25 | const char *cost_string_from_value (sint64 cost, int approx); |
25 | const char *cost_string_from_value (sint64 cost, int approx); |
26 | void pay_player (object *pl, sint64 amount); |
26 | void pay_player (object *pl, sint64 amount); |
27 | sint64 pay_player_arch (object *pl, const char *arch, sint64 amount); |
27 | sint64 pay_player_arch (object *pl, const char *arch, sint64 amount); |
28 | void attempt_do_alchemy (object *caster, object *cauldron); |
28 | void attempt_do_alchemy (object *caster, object *cauldron, object *skill); |
29 | int content_recipe_value (object *op); |
29 | int content_recipe_value (object *op); |
30 | int numb_ob_inside (object *op); |
30 | int numb_ob_inside (object *op); |
31 | object *attempt_recipe (object *caster, object *cauldron, int ability, recipe *rp, int nbatches); |
31 | object *attempt_recipe (object *caster, object *cauldron, int ability, recipe *rp, int nbatches); |
32 | void adjust_product (object *item, int lvl, int yield); |
32 | void adjust_product (object *item, int lvl, int yield); |
33 | object *make_item_from_recipe (object *cauldron, recipe *rp); |
33 | object *make_item_from_recipe (object *cauldron, recipe *rp); |
… | |
… | |
67 | void apply_lighter (object *who, object *lighter); |
67 | void apply_lighter (object *who, object *lighter); |
68 | void scroll_failure (object *op, int failure, int power); |
68 | void scroll_failure (object *op, int failure, int power); |
69 | void apply_changes_to_player (object *pl, object *change); |
69 | void apply_changes_to_player (object *pl, object *change); |
70 | void apply_item_transformer (object *pl, object *transformer); |
70 | void apply_item_transformer (object *pl, object *transformer); |
71 | extern void handle_apply_yield (object *op); |
71 | extern void handle_apply_yield (object *op); |
|
|
72 | void apply_lamp (object *op, bool switch_on); |
|
|
73 | void get_animation_from_arch (object *op, arch_ptr a); |
|
|
74 | extern int convert_item (object *item, object *converter); |
72 | |
75 | |
73 | /* attack.c */ |
76 | /* attack.c */ |
74 | void cancellation (object *op); |
77 | void cancellation (object *op); |
75 | int did_make_save_item (object *op, int type, object *originator); |
78 | int did_make_save_item (object *op, int type, object *originator); |
76 | void save_throw_object (object *op, int type, object *originator); |
79 | void save_throw_object (object *op, int type, object *originator); |
… | |
… | |
94 | int is_aimed_missile (object *op); |
97 | int is_aimed_missile (object *op); |
95 | |
98 | |
96 | /* build_map.c */ |
99 | /* build_map.c */ |
97 | int can_build_over (struct mapdef *map, object *tmp, short x, short y); |
100 | int can_build_over (struct mapdef *map, object *tmp, short x, short y); |
98 | void remove_marking_runes (struct mapdef *map, short x, short y); |
101 | void remove_marking_runes (struct mapdef *map, short x, short y); |
99 | int find_unused_connected_value (struct mapdef *map); |
|
|
100 | int find_or_create_connection_for_map (object *pl, short x, short y, object *rune); |
|
|
101 | object *get_connection_rune (object *pl, short x, short y); |
102 | object *get_connection_rune (object *pl, short x, short y); |
102 | object *get_msg_book (object *pl, short x, short y); |
103 | object *get_msg_book (object *pl, short x, short y); |
103 | object *get_wall (struct mapdef *map, int x, int y); |
104 | object *get_wall (struct mapdef *map, int x, int y); |
104 | void fix_walls (maptile *map, int x, int y); |
105 | void fix_walls (maptile *map, int x, int y); |
105 | void fix_walls_around (maptile *map, int x, int y); |
106 | void fix_walls_around (maptile *map, int x, int y); |
… | |
… | |
132 | int command_version (object *op, char *params); |
133 | int command_version (object *op, char *params); |
133 | void bug_report (const char *reportstring); |
134 | void bug_report (const char *reportstring); |
134 | int command_statistics (object *pl, char *params); |
135 | int command_statistics (object *pl, char *params); |
135 | int command_fix_me (object *op, char *params); |
136 | int command_fix_me (object *op, char *params); |
136 | int command_players (object *op, char *paramss); |
137 | int command_players (object *op, char *paramss); |
137 | int command_logs (object *op, char *params); |
|
|
138 | int command_bowmode (object *op, char *params); |
138 | int command_bowmode (object *op, char *params); |
139 | int command_showpets (object *op, char *params); |
139 | int command_showpets (object *op, char *params); |
140 | int command_resistances (object *op, char *params); |
140 | int command_resistances (object *op, char *params); |
141 | int command_help (object *op, char *params); |
141 | int command_help (object *op, char *params); |
142 | int onoff_value (const char *line); |
142 | int onoff_value (const char *line); |
… | |
… | |
175 | int sack_can_hold (object *pl, object *sack, object *op, uint32 nrof); |
175 | int sack_can_hold (object *pl, object *sack, object *op, uint32 nrof); |
176 | void pick_up (object *op, object *alt); |
176 | void pick_up (object *op, object *alt); |
177 | int command_take (object *op, char *params); |
177 | int command_take (object *op, char *params); |
178 | void put_object_in_sack (object *op, object *sack, object *tmp, uint32 nrof); |
178 | void put_object_in_sack (object *op, object *sack, object *tmp, uint32 nrof); |
179 | void drop_object (object *op, object *tmp, uint32 nrof); |
179 | void drop_object (object *op, object *tmp, uint32 nrof); |
|
|
180 | void drop_object (object *dropper, object *obj); |
180 | void drop (object *op, object *tmp); |
181 | void drop (object *op, object *tmp); |
181 | int command_dropall (object *op, char *params); |
182 | int command_dropall (object *op, char *params); |
182 | int command_drop (object *op, char *params); |
183 | int command_drop (object *op, char *params); |
183 | int command_examine (object *op, char *params); |
184 | int command_examine (object *op, char *params); |
184 | object *find_marked_object (object *op); |
185 | object *find_marked_object (object *op); |
… | |
… | |
260 | /* daemon.c */ |
261 | /* daemon.c */ |
261 | FILE *BecomeDaemon (const char *filename); |
262 | FILE *BecomeDaemon (const char *filename); |
262 | |
263 | |
263 | /* disease.c */ |
264 | /* disease.c */ |
264 | int move_disease (object *disease); |
265 | int move_disease (object *disease); |
265 | int remove_symptoms (object *disease); |
|
|
266 | object *find_symptom (object *disease); |
|
|
267 | int check_infection (object *disease); |
|
|
268 | int infect_object (object *victim, object *disease, int force); |
266 | int infect_object (object *victim, object *disease, int force); |
269 | int do_symptoms (object *disease); |
|
|
270 | int grant_immunity (object *disease); |
|
|
271 | int move_symptom (object *symptom); |
267 | int move_symptom (object *symptom); |
272 | int check_physically_infect (object *victim, object *hitter); |
268 | int check_physically_infect (object *victim, object *hitter); |
273 | object *find_disease (object *victim); |
|
|
274 | int cure_disease (object *sufferer, object *caster, object *spell); |
269 | int cure_disease (object *sufferer, object *caster, object *spell); |
275 | int reduce_symptoms (object *sufferer, int reduction); |
|
|
276 | |
270 | |
277 | /* egoitem.c */ |
271 | /* egoitem.c */ |
278 | int create_artifact (object *op, const char *artifactname); |
272 | int create_artifact (object *op, const char *artifactname); |
279 | int apply_power_crystal (object *op, object *crystal); |
273 | int apply_power_crystal (object *op, object *crystal); |
280 | |
274 | |
… | |
… | |
282 | char *spool (char *bp, char *error); |
276 | char *spool (char *bp, char *error); |
283 | void check_score (object *op); |
277 | void check_score (object *op); |
284 | void display_high_score (object *op, int max, const char *match); |
278 | void display_high_score (object *op, int max, const char *match); |
285 | |
279 | |
286 | /* gods.c */ |
280 | /* gods.c */ |
287 | int lookup_god_by_name (const char *name); |
281 | int lookup_god_by_name (shstr_cmp name); |
288 | object *find_god (const char *name); |
282 | object *find_god (shstr_cmp name); |
289 | const char *determine_god (object *op); |
283 | shstr_tmp determine_god (object *op); |
290 | void pray_at_altar (object *pl, object *altar, object *skill); |
284 | void pray_at_altar (object *pl, object *altar, object *skill); |
291 | void become_follower (object *op, object *new_god); |
285 | void become_follower (object *op, object *new_god); |
292 | int worship_forbids_use (object *op, object *exp_obj, uint32 flag, const char *string); |
286 | int worship_forbids_use (object *op, object *exp_obj, uint32 flag, const char *string); |
293 | void stop_using_item (object *op, int type, int number); |
287 | void stop_using_item (object *op, int type, int number); |
294 | void update_priest_flag (object *god, object *exp_ob, uint32 flag); |
288 | void update_priest_flag (object *god, object *exp_ob, uint32 flag); |
295 | archetype *determine_holy_arch (object *god, const char *type); |
289 | archetype *determine_holy_arch (object *god, shstr_cmp type); |
296 | void god_intervention (object *op, object *god, object *skill); |
290 | void god_intervention (object *op, object *god, object *skill); |
297 | int god_examines_priest (object *op, object *god); |
291 | int god_examines_priest (object *op, object *god); |
298 | int god_examines_item (object *god, object *item); |
292 | int god_examines_item (object *god, object *item); |
299 | int get_god (object *priest); |
293 | int get_god (object *priest); |
300 | const char *get_god_for_race (const char *race); |
|
|
301 | int tailor_god_spell (object *spellop, object *caster); |
294 | int tailor_god_spell (object *spellop, object *caster); |
302 | |
295 | |
303 | /* init.c */ |
296 | /* init.c */ |
304 | void set_logfile (char *val); |
297 | void load_settings (void); |
305 | void call_version (void); |
298 | void load_materials (void); |
306 | void showscores (void); |
|
|
307 | void set_debug (void); |
|
|
308 | void unset_debug (void); |
|
|
309 | void set_mondebug (void); |
|
|
310 | void set_dumpmon1 (void); |
|
|
311 | void set_dumpmon2 (void); |
|
|
312 | void set_dumpmon3 (void); |
|
|
313 | void set_dumpmon4 (void); |
|
|
314 | void set_dumpmon5 (void); |
|
|
315 | void set_dumpmon6 (void); |
|
|
316 | void set_dumpmon7 (void); |
|
|
317 | void set_dumpmon8 (void); |
|
|
318 | void set_dumpmon9 (void); |
|
|
319 | void set_dumpmont (char *name); |
|
|
320 | void set_daemon (void); |
|
|
321 | void set_datadir (char *path); |
|
|
322 | void set_confdir (char *path); |
|
|
323 | void set_localdir (char *path); |
|
|
324 | void set_mapdir (char *path); |
|
|
325 | void set_archetypes (char *path); |
|
|
326 | void set_regions (char *path); |
|
|
327 | void set_treasures (char *path); |
|
|
328 | void set_uniquedir (char *path); |
|
|
329 | void set_templatedir (char *path); |
|
|
330 | void set_playerdir (char *path); |
|
|
331 | void set_tmpdir (char *path); |
|
|
332 | void showscoresparm (char *data); |
|
|
333 | void set_csport (char *val); |
|
|
334 | void init (int argc, char **argv); |
299 | void init (int argc, char **argv); |
335 | void usage (void); |
300 | void usage (void); |
336 | void help (void); |
301 | void help (void); |
337 | void init_beforeplay (void); |
302 | void init_beforeplay (void); |
338 | void init_signals (void); |
303 | void init_signals (void); |
… | |
… | |
429 | object *fix_summon_pet (archetype *at, object *op, int dir, int is_golem); |
394 | object *fix_summon_pet (archetype *at, object *op, int dir, int is_golem); |
430 | void move_golem (object *op); |
395 | void move_golem (object *op); |
431 | void control_golem (object *op, int dir); |
396 | void control_golem (object *op, int dir); |
432 | int summon_golem (object *op, object *caster, int dir, object *spob); |
397 | int summon_golem (object *op, object *caster, int dir, object *spob); |
433 | object *choose_cult_monster (object *pl, object *god, int summon_level); |
398 | object *choose_cult_monster (object *pl, object *god, int summon_level); |
434 | int summon_object (object *op, object *caster, object *spell_ob, int dir, const char *stringarg); |
399 | int summon_object (object *op, object *caster, object *spell_ob, int dir, const char *spellparam); |
435 | object *get_real_owner (object *ob); |
|
|
436 | int should_arena_attack (object *pet, object *owner, object *target); |
400 | int should_arena_attack (object *pet, object *owner, object *target); |
437 | |
401 | |
438 | /* player.c */ |
402 | /* player.c */ |
439 | player *find_player (const char *plname); |
403 | player *find_player (const char *plname); |
440 | player *find_player_partial_name (const char *plname); |
404 | player *find_player_partial_name (const char *plname); |
… | |
… | |
458 | int key_change_class (object *op, char key); |
422 | int key_change_class (object *op, char key); |
459 | int key_confirm_quit (object *op, char key); |
423 | int key_confirm_quit (object *op, char key); |
460 | void flee_player (object *op); |
424 | void flee_player (object *op); |
461 | int check_pick (object *op); |
425 | int check_pick (object *op); |
462 | object *find_arrow (object *op, const char *type); |
426 | object *find_arrow (object *op, const char *type); |
463 | object *find_better_arrow (object *op, object *target, const char *type, int *better); |
427 | object *find_better_arrow (object *op, object *target, shstr_cmp type, int *better); |
464 | object *pick_arrow_target (object *op, const char *type, int dir); |
428 | object *pick_arrow_target (object *op, shstr_cmp type, int dir); |
465 | int fire_bow (object *op, object *part, object *arrow, int dir, int wc_mod, sint16 sx, sint16 sy); |
429 | int fire_bow (object *op, object *part, object *arrow, int dir, int wc_mod, sint16 sx, sint16 sy); |
466 | int player_fire_bow (object *op, int dir); |
430 | int player_fire_bow (object *op, int dir); |
467 | void fire_misc_object (object *op, int dir); |
431 | void fire_misc_object (object *op, int dir); |
468 | bool fire (object *op, int dir); |
432 | bool fire (object *op, int dir); |
469 | object *find_key (object *pl, object *container, object *door); |
433 | object *find_key (object *pl, object *container, object *door); |
… | |
… | |
582 | void polymorph_living (object *op); |
546 | void polymorph_living (object *op); |
583 | void polymorph_melt (object *who, object *op); |
547 | void polymorph_melt (object *who, object *op); |
584 | void polymorph_item (object *who, object *op); |
548 | void polymorph_item (object *who, object *op); |
585 | void polymorph (object *op, object *who); |
549 | void polymorph (object *op, object *who); |
586 | int cast_polymorph (object *op, object *caster, object *spell_ob, int dir); |
550 | int cast_polymorph (object *op, object *caster, object *spell_ob, int dir); |
587 | int cast_create_missile (object *op, object *caster, object *spell, int dir, const char *stringarg); |
551 | int cast_create_missile (object *op, object *caster, object *spell, int dir, const char *spellparam); |
588 | int cast_create_food (object *op, object *caster, object *spell_ob, int dir, const char *stringarg); |
552 | int cast_create_food (object *op, object *caster, object *spell_ob, int dir, const char *spellparam); |
589 | int probe (object *op, object *caster, object *spell_ob, int dir); |
553 | int probe (object *op, object *caster, object *spell_ob, int dir); |
590 | int makes_invisible_to (object *pl, object *mon); |
554 | int makes_invisible_to (object *pl, object *mon); |
591 | int cast_invisible (object *op, object *caster, object *spell_ob); |
555 | int cast_invisible (object *op, object *caster, object *spell_ob); |
592 | int cast_earth_to_dust (object *op, object *caster, object *spell_ob); |
556 | int cast_earth_to_dust (object *op, object *caster, object *spell_ob); |
593 | void execute_word_of_recall (object *op); |
557 | void execute_word_of_recall (object *op); |
594 | int cast_word_of_recall (object *op, object *caster, object *spell_ob); |
558 | int cast_word_of_recall (object *op, object *caster, object *spell_ob); |
595 | int cast_wonder (object *op, object *caster, int dir, object *spell_ob); |
559 | int cast_wonder (object *op, object *caster, int dir, object *spell_ob); |
596 | int perceive_self (object *op); |
560 | int perceive_self (object *op); |
597 | int magic_wall (object *op, object *caster, int dir, object *spell_ob); |
561 | int magic_wall (object *op, object *caster, int dir, object *spell_ob); |
598 | int dimension_door (object *op, object *caster, object *spob, int dir); |
562 | int dimension_door (object *op, object *caster, object *spob, int dir, const char *spellparam); |
599 | int cast_heal (object *op, object *caster, object *spell, int dir); |
563 | int cast_heal (object *op, object *caster, object *spell, int dir); |
600 | int cast_change_ability (object *op, object *caster, object *spell_ob, int dir, int silent); |
564 | int cast_change_ability (object *op, object *caster, object *spell_ob, int dir, int silent); |
601 | int cast_bless (object *op, object *caster, object *spell_ob, int dir); |
565 | int cast_bless (object *op, object *caster, object *spell_ob, int dir); |
602 | int alchemy (object *op, object *caster, object *spell_ob); |
566 | int alchemy (object *op, object *caster, object *spell_ob); |
603 | int remove_curse (object *op, object *caster, object *spell); |
567 | int remove_curse (object *op, object *caster, object *spell); |
… | |
… | |
612 | void move_aura (object *aura); |
576 | void move_aura (object *aura); |
613 | void move_peacemaker (object *op); |
577 | void move_peacemaker (object *op); |
614 | int write_mark (object *op, object *spell, const char *msg); |
578 | int write_mark (object *op, object *spell, const char *msg); |
615 | |
579 | |
616 | /* spell_util.c */ |
580 | /* spell_util.c */ |
617 | object *find_random_spell_in_ob (object *ob, const char *skill); |
581 | object *find_random_spell_in_ob (object *ob, shstr_cmp skill = shstr_cmp ()); |
618 | void set_spell_skill (object *op, object *caster, object *spob, object *dest); |
582 | void set_spell_skill (object *op, object *caster, object *spob, object *dest); |
619 | void spell_effect (object *spob, int x, int y, maptile *map, object *originator); |
583 | void spell_effect (object *spob, int x, int y, maptile *map, object *originator); |
620 | int min_casting_level (object *caster, object *spell); |
584 | int min_casting_level (object *caster, object *spell); |
621 | int caster_level (object *caster, object *spell); |
585 | int casting_level (object *caster, object *spell); |
622 | sint16 SP_level_spellpoint_cost (object *caster, object *spell, int flags); |
586 | sint16 SP_level_spellpoint_cost (object *caster, object *spell, int flags); |
623 | int SP_level_dam_adjust (object *caster, object *spob); |
587 | int SP_level_dam_adjust (object *caster, object *spob); |
624 | int SP_level_duration_adjust (object *caster, object *spob); |
588 | int SP_level_duration_adjust (object *caster, object *spob); |
625 | int SP_level_range_adjust (object *caster, object *spob); |
589 | int SP_level_range_adjust (object *caster, object *spob); |
626 | object *check_spell_known (object *op, const char *name); |
590 | object *check_spell_known (object *op, shstr_cmp name); |
627 | object *lookup_spell_by_name (object *op, const char *spname); |
591 | object *lookup_spell_by_name (object *op, const char *spname); |
628 | int reflwall (maptile *m, int x, int y, object *sp_op); |
592 | int reflwall (maptile *m, int x, int y, object *sp_op); |
629 | int cast_create_obj (object *op, object *caster, object *new_op, int dir); |
593 | int cast_create_obj (object *op, object *caster, object *new_op, int dir); |
630 | int ok_to_put_more (maptile *m, sint16 x, sint16 y, object *op, int immune_stop); |
594 | int ok_to_put_more (maptile *m, sint16 x, sint16 y, object *op, int immune_stop); |
631 | int fire_arch_from_position (object *op, object *caster, sint16 x, sint16 y, int dir, object *spell); |
595 | int fire_arch_from_position (object *op, object *caster, sint16 x, sint16 y, int dir, object *spell); |
… | |
… | |
636 | void put_a_monster (object *op, const char *monstername); |
600 | void put_a_monster (object *op, const char *monstername); |
637 | int summon_hostile_monsters (object *op, int n, const char *monstername); |
601 | int summon_hostile_monsters (object *op, int n, const char *monstername); |
638 | void shuffle_attack (object *op, int change_face); |
602 | void shuffle_attack (object *op, int change_face); |
639 | void prayer_failure (object *op, int failure, int power); |
603 | void prayer_failure (object *op, int failure, int power); |
640 | void spell_failure (object *op, int failure, int power, object *skill); |
604 | void spell_failure (object *op, int failure, int power, object *skill); |
641 | int cast_party_spell (object *op, object *caster, int dir, object *spell_ob, char *stringarg); |
605 | int cast_party_spell (object *op, object *caster, int dir, object *spell_ob, char *spellparam); |
642 | int cast_spell (object *op, object *caster, int dir, object *spell_ob, char *stringarg); |
606 | int cast_spell (object *op, object *caster, int dir, object *spell_ob, char *spellparam); |
643 | void move_spell_effect (object *op); |
607 | void move_spell_effect (object *op); |
644 | void check_spell_effect (object *op); |
608 | void check_spell_effect (object *op); |
645 | void apply_spell_effect (object *spell, object *victim); |
609 | void apply_spell_effect (object *spell, object *victim); |
|
|
610 | void create_exploding_ball_at (object *victim, int level); |
646 | |
611 | |
647 | /* swamp.c */ |
612 | /* swamp.c */ |
648 | void walk_on_deep_swamp (object *op, object *victim); |
613 | void walk_on_deep_swamp (object *op, object *victim); |
649 | void move_deep_swamp (object *op); |
614 | void move_deep_swamp (object *op); |
650 | |
615 | |