… | |
… | |
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); |
… | |
… | |
94 | int is_aimed_missile (object *op); |
94 | int is_aimed_missile (object *op); |
95 | |
95 | |
96 | /* build_map.c */ |
96 | /* build_map.c */ |
97 | int can_build_over (struct mapdef *map, object *tmp, short x, short y); |
97 | 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); |
98 | 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); |
99 | object *get_connection_rune (object *pl, short x, short y); |
102 | object *get_msg_book (object *pl, short x, short y); |
100 | object *get_msg_book (object *pl, short x, short y); |
103 | object *get_wall (struct mapdef *map, int x, int y); |
101 | object *get_wall (struct mapdef *map, int x, int y); |
104 | void fix_walls (maptile *map, int x, int y); |
102 | void fix_walls (maptile *map, int x, int y); |
105 | void fix_walls_around (maptile *map, int x, int y); |
103 | void fix_walls_around (maptile *map, int x, int y); |
… | |
… | |
174 | int sack_can_hold (object *pl, object *sack, object *op, uint32 nrof); |
172 | int sack_can_hold (object *pl, object *sack, object *op, uint32 nrof); |
175 | void pick_up (object *op, object *alt); |
173 | void pick_up (object *op, object *alt); |
176 | int command_take (object *op, char *params); |
174 | int command_take (object *op, char *params); |
177 | void put_object_in_sack (object *op, object *sack, object *tmp, uint32 nrof); |
175 | void put_object_in_sack (object *op, object *sack, object *tmp, uint32 nrof); |
178 | void drop_object (object *op, object *tmp, uint32 nrof); |
176 | void drop_object (object *op, object *tmp, uint32 nrof); |
|
|
177 | void drop_object (object *dropper, object *obj); |
179 | void drop (object *op, object *tmp); |
178 | void drop (object *op, object *tmp); |
180 | int command_dropall (object *op, char *params); |
179 | int command_dropall (object *op, char *params); |
181 | int command_drop (object *op, char *params); |
180 | int command_drop (object *op, char *params); |
182 | int command_examine (object *op, char *params); |
181 | int command_examine (object *op, char *params); |
183 | object *find_marked_object (object *op); |
182 | object *find_marked_object (object *op); |
… | |
… | |
259 | /* daemon.c */ |
258 | /* daemon.c */ |
260 | FILE *BecomeDaemon (const char *filename); |
259 | FILE *BecomeDaemon (const char *filename); |
261 | |
260 | |
262 | /* disease.c */ |
261 | /* disease.c */ |
263 | int move_disease (object *disease); |
262 | int move_disease (object *disease); |
264 | int remove_symptoms (object *disease); |
|
|
265 | object *find_symptom (object *disease); |
|
|
266 | int check_infection (object *disease); |
|
|
267 | int infect_object (object *victim, object *disease, int force); |
263 | int infect_object (object *victim, object *disease, int force); |
268 | int do_symptoms (object *disease); |
|
|
269 | int grant_immunity (object *disease); |
|
|
270 | int move_symptom (object *symptom); |
264 | int move_symptom (object *symptom); |
271 | int check_physically_infect (object *victim, object *hitter); |
265 | int check_physically_infect (object *victim, object *hitter); |
272 | object *find_disease (object *victim); |
|
|
273 | int cure_disease (object *sufferer, object *caster, object *spell); |
266 | int cure_disease (object *sufferer, object *caster, object *spell); |
274 | int reduce_symptoms (object *sufferer, int reduction); |
|
|
275 | |
267 | |
276 | /* egoitem.c */ |
268 | /* egoitem.c */ |
277 | int create_artifact (object *op, const char *artifactname); |
269 | int create_artifact (object *op, const char *artifactname); |
278 | int apply_power_crystal (object *op, object *crystal); |
270 | int apply_power_crystal (object *op, object *crystal); |
279 | |
271 | |
… | |
… | |
281 | char *spool (char *bp, char *error); |
273 | char *spool (char *bp, char *error); |
282 | void check_score (object *op); |
274 | void check_score (object *op); |
283 | void display_high_score (object *op, int max, const char *match); |
275 | void display_high_score (object *op, int max, const char *match); |
284 | |
276 | |
285 | /* gods.c */ |
277 | /* gods.c */ |
286 | int lookup_god_by_name (const char *name); |
278 | int lookup_god_by_name (shstr_cmp name); |
287 | object *find_god (const char *name); |
279 | object *find_god (shstr_cmp name); |
288 | const char *determine_god (object *op); |
280 | shstr_tmp determine_god (object *op); |
289 | void pray_at_altar (object *pl, object *altar, object *skill); |
281 | void pray_at_altar (object *pl, object *altar, object *skill); |
290 | void become_follower (object *op, object *new_god); |
282 | void become_follower (object *op, object *new_god); |
291 | int worship_forbids_use (object *op, object *exp_obj, uint32 flag, const char *string); |
283 | int worship_forbids_use (object *op, object *exp_obj, uint32 flag, const char *string); |
292 | void stop_using_item (object *op, int type, int number); |
284 | void stop_using_item (object *op, int type, int number); |
293 | void update_priest_flag (object *god, object *exp_ob, uint32 flag); |
285 | void update_priest_flag (object *god, object *exp_ob, uint32 flag); |
294 | archetype *determine_holy_arch (object *god, const char *type); |
286 | archetype *determine_holy_arch (object *god, shstr_cmp type); |
295 | void god_intervention (object *op, object *god, object *skill); |
287 | void god_intervention (object *op, object *god, object *skill); |
296 | int god_examines_priest (object *op, object *god); |
288 | int god_examines_priest (object *op, object *god); |
297 | int god_examines_item (object *god, object *item); |
289 | int god_examines_item (object *god, object *item); |
298 | int get_god (object *priest); |
290 | int get_god (object *priest); |
299 | const char *get_god_for_race (const char *race); |
|
|
300 | int tailor_god_spell (object *spellop, object *caster); |
291 | int tailor_god_spell (object *spellop, object *caster); |
301 | |
292 | |
302 | /* init.c */ |
293 | /* init.c */ |
303 | void set_logfile (char *val); |
294 | void load_settings (void); |
304 | void call_version (void); |
295 | void load_materials (void); |
305 | void showscores (void); |
|
|
306 | void set_debug (void); |
|
|
307 | void unset_debug (void); |
|
|
308 | void set_mondebug (void); |
|
|
309 | void set_dumpmon1 (void); |
|
|
310 | void set_dumpmon2 (void); |
|
|
311 | void set_dumpmon3 (void); |
|
|
312 | void set_dumpmon4 (void); |
|
|
313 | void set_dumpmon5 (void); |
|
|
314 | void set_dumpmon6 (void); |
|
|
315 | void set_dumpmon7 (void); |
|
|
316 | void set_dumpmon8 (void); |
|
|
317 | void set_dumpmon9 (void); |
|
|
318 | void set_dumpmont (char *name); |
|
|
319 | void set_daemon (void); |
|
|
320 | void set_datadir (char *path); |
|
|
321 | void set_confdir (char *path); |
|
|
322 | void set_localdir (char *path); |
|
|
323 | void set_mapdir (char *path); |
|
|
324 | void set_archetypes (char *path); |
|
|
325 | void set_regions (char *path); |
|
|
326 | void set_treasures (char *path); |
|
|
327 | void set_uniquedir (char *path); |
|
|
328 | void set_templatedir (char *path); |
|
|
329 | void set_playerdir (char *path); |
|
|
330 | void set_tmpdir (char *path); |
|
|
331 | void showscoresparm (char *data); |
|
|
332 | void set_csport (char *val); |
|
|
333 | void init (int argc, char **argv); |
296 | void init (int argc, char **argv); |
334 | void usage (void); |
297 | void usage (void); |
335 | void help (void); |
298 | void help (void); |
336 | void init_beforeplay (void); |
299 | void init_beforeplay (void); |
337 | void init_signals (void); |
300 | void init_signals (void); |
… | |
… | |
429 | void move_golem (object *op); |
392 | void move_golem (object *op); |
430 | void control_golem (object *op, int dir); |
393 | void control_golem (object *op, int dir); |
431 | int summon_golem (object *op, object *caster, int dir, object *spob); |
394 | int summon_golem (object *op, object *caster, int dir, object *spob); |
432 | object *choose_cult_monster (object *pl, object *god, int summon_level); |
395 | object *choose_cult_monster (object *pl, object *god, int summon_level); |
433 | int summon_object (object *op, object *caster, object *spell_ob, int dir, const char *stringarg); |
396 | int summon_object (object *op, object *caster, object *spell_ob, int dir, const char *stringarg); |
434 | object *get_real_owner (object *ob); |
|
|
435 | int should_arena_attack (object *pet, object *owner, object *target); |
397 | int should_arena_attack (object *pet, object *owner, object *target); |
436 | |
398 | |
437 | /* player.c */ |
399 | /* player.c */ |
438 | player *find_player (const char *plname); |
400 | player *find_player (const char *plname); |
439 | player *find_player_partial_name (const char *plname); |
401 | player *find_player_partial_name (const char *plname); |
… | |
… | |
457 | int key_change_class (object *op, char key); |
419 | int key_change_class (object *op, char key); |
458 | int key_confirm_quit (object *op, char key); |
420 | int key_confirm_quit (object *op, char key); |
459 | void flee_player (object *op); |
421 | void flee_player (object *op); |
460 | int check_pick (object *op); |
422 | int check_pick (object *op); |
461 | object *find_arrow (object *op, const char *type); |
423 | object *find_arrow (object *op, const char *type); |
462 | object *find_better_arrow (object *op, object *target, const char *type, int *better); |
424 | object *find_better_arrow (object *op, object *target, shstr_cmp type, int *better); |
463 | object *pick_arrow_target (object *op, const char *type, int dir); |
425 | object *pick_arrow_target (object *op, shstr_cmp type, int dir); |
464 | int fire_bow (object *op, object *part, object *arrow, int dir, int wc_mod, sint16 sx, sint16 sy); |
426 | int fire_bow (object *op, object *part, object *arrow, int dir, int wc_mod, sint16 sx, sint16 sy); |
465 | int player_fire_bow (object *op, int dir); |
427 | int player_fire_bow (object *op, int dir); |
466 | void fire_misc_object (object *op, int dir); |
428 | void fire_misc_object (object *op, int dir); |
467 | bool fire (object *op, int dir); |
429 | bool fire (object *op, int dir); |
468 | object *find_key (object *pl, object *container, object *door); |
430 | object *find_key (object *pl, object *container, object *door); |
… | |
… | |
611 | void move_aura (object *aura); |
573 | void move_aura (object *aura); |
612 | void move_peacemaker (object *op); |
574 | void move_peacemaker (object *op); |
613 | int write_mark (object *op, object *spell, const char *msg); |
575 | int write_mark (object *op, object *spell, const char *msg); |
614 | |
576 | |
615 | /* spell_util.c */ |
577 | /* spell_util.c */ |
616 | object *find_random_spell_in_ob (object *ob, const char *skill); |
578 | object *find_random_spell_in_ob (object *ob, shstr_cmp skill = shstr_cmp ()); |
617 | void set_spell_skill (object *op, object *caster, object *spob, object *dest); |
579 | void set_spell_skill (object *op, object *caster, object *spob, object *dest); |
618 | void spell_effect (object *spob, int x, int y, maptile *map, object *originator); |
580 | void spell_effect (object *spob, int x, int y, maptile *map, object *originator); |
619 | int min_casting_level (object *caster, object *spell); |
581 | int min_casting_level (object *caster, object *spell); |
620 | int caster_level (object *caster, object *spell); |
582 | int casting_level (object *caster, object *spell); |
621 | sint16 SP_level_spellpoint_cost (object *caster, object *spell, int flags); |
583 | sint16 SP_level_spellpoint_cost (object *caster, object *spell, int flags); |
622 | int SP_level_dam_adjust (object *caster, object *spob); |
584 | int SP_level_dam_adjust (object *caster, object *spob); |
623 | int SP_level_duration_adjust (object *caster, object *spob); |
585 | int SP_level_duration_adjust (object *caster, object *spob); |
624 | int SP_level_range_adjust (object *caster, object *spob); |
586 | int SP_level_range_adjust (object *caster, object *spob); |
625 | object *check_spell_known (object *op, const char *name); |
587 | object *check_spell_known (object *op, shstr_cmp name); |
626 | object *lookup_spell_by_name (object *op, const char *spname); |
588 | object *lookup_spell_by_name (object *op, const char *spname); |
627 | int reflwall (maptile *m, int x, int y, object *sp_op); |
589 | int reflwall (maptile *m, int x, int y, object *sp_op); |
628 | int cast_create_obj (object *op, object *caster, object *new_op, int dir); |
590 | int cast_create_obj (object *op, object *caster, object *new_op, int dir); |
629 | int ok_to_put_more (maptile *m, sint16 x, sint16 y, object *op, int immune_stop); |
591 | int ok_to_put_more (maptile *m, sint16 x, sint16 y, object *op, int immune_stop); |
630 | int fire_arch_from_position (object *op, object *caster, sint16 x, sint16 y, int dir, object *spell); |
592 | int fire_arch_from_position (object *op, object *caster, sint16 x, sint16 y, int dir, object *spell); |