3 * @brief グローバル変数定義 / Angband variables
6 * Copyright (c) 1997 Ben Harrison, James E. Wilson, Robert A. Koeneke<br>
8 * This software may be copied and distributed for educational, research,<br>
9 * and not for profit purposes provided that this copyright and statement<br>
10 * are included in all such copies. Other copyrights may also apply.<br>
17 * Hack -- Link a copyright message into the executable
19 const cptr copyright[5] =
21 "Copyright (c) 1989 James E. Wilson, Robert A. Keoneke",
23 "This software may be copied and distributed for educational, research,",
24 "and not for profit purposes provided that this copyright and statement",
25 "are included in all such copies."
29 int max_macrotrigger = 0; /*!< 現在登録中のマクロ(トリガー)の数 */
30 cptr macro_template = NULL; /*!< Angband設定ファイルのT: タグ情報から読み込んだ長いTコードを処理するために利用する文字列ポインタ */
31 cptr macro_modifier_chr; /*!< &x# で指定されるマクロトリガーに関する情報を記録する文字列ポインタ */
32 cptr macro_modifier_name[MAX_MACRO_MOD]; /*!< マクロ上で取り扱う特殊キーを文字列上で表現するためのフォーマットを記録した文字列ポインタ配列 */
33 cptr macro_trigger_name[MAX_MACRO_TRIG]; /*!< マクロのトリガーコード */
34 cptr macro_trigger_keycode[2][MAX_MACRO_TRIG]; /*!< マクロの内容 */
36 int level_up = 0; /*!< レベルアップの際に遅延してcalc_mana()関数上で上昇量を表示するかどうかの判定フラグ */
40 * 自動拾い/破壊設定のリストに関する変数 / List for auto-picker/destroyer entries
42 int max_autopick = 0; /*!< 現在登録している自動拾い/破壊設定の数 */
43 int max_max_autopick = 0; /*!< 自動拾い/破壊設定の限界数 */
44 autopick_type *autopick_list = NULL; /*!< 自動拾い/破壊設定構造体のポインタ配列 */
49 byte h_ver_major; /* Savefile version for Hengband 1.1.1 and later */
54 byte sf_extra; /* Savefile's encoding key */
56 byte z_major; /* Savefile version for Hengband */
61 * Savefile information
63 u32b sf_system; /* Operating system info */
64 u32b sf_when; /* Time when savefile created */
65 u16b sf_lives; /* Number of past "lives" with this file */
66 u16b sf_saves; /* Number of "saves" during this life */
71 bool arg_fiddle; /* Command arg -- Request fiddle mode */
72 bool arg_wizard; /* Command arg -- Request wizard mode */
73 bool arg_sound; /* Command arg -- Request special sounds */
74 bool arg_music; /* Command arg -- Request special musics */
75 byte arg_graphics; /* Command arg -- Request graphics mode */
76 bool arg_monochrome; /* Command arg -- Request monochrome mode */
77 bool arg_force_original; /* Command arg -- Request original keyset */
78 bool arg_force_roguelike; /* Command arg -- Request roguelike keyset */
79 bool arg_bigtile = FALSE; /* Command arg -- Request big tile mode */
84 bool character_generated; /* The character exists */
85 bool character_dungeon; /* The character has a dungeon */
86 bool character_loaded; /* The character was loaded from a savefile */
87 bool character_saved; /* The character was just saved to a savefile */
89 bool character_icky; /* The game is in an icky full screen mode */
90 bool character_xtra; /* The game is in an icky startup mode */
92 bool creating_savefile; /* New savefile is currently created */
94 u32b seed_flavor; /* Hack -- consistent object colors */
95 u32b seed_town; /* Hack -- consistent town layout */
97 s16b command_cmd; /* Current "Angband Command" */
99 s16b command_arg; /* Gives argument of current command */
100 s16b command_rep; /* Gives repetition of current command */
101 s16b command_dir; /* Gives direction of current command */
103 s16b command_see; /* See "object1.c" */
104 s16b command_wrk; /* See "object1.c" */
106 s16b command_gap = 999; /* See "object1.c" */
108 s16b command_new; /* Command chaining from inven/equip view */
110 bool msg_flag; /* Used in msg_print() for "buffering" */
112 s16b running; /* Current counter for running, if any */
113 s16b resting; /* Current counter for resting, if any */
115 s16b cur_hgt; /* Current dungeon height */
116 s16b cur_wid; /* Current dungeon width */
117 s16b dun_level; /* Current dungeon level */
118 s16b num_repro; /* Current reproducer count */
119 s16b object_level; /* Current object creation level */
120 s16b monster_level; /* Current monster creation level */
121 s16b base_level; /* Base dungeon level */
123 s32b turn; /*!< 画面表示上のゲーム時間基準となるターン / Current game turn */
124 s32b turn_limit; /*!< turnの最大値 / Limit of game turn */
125 s32b dungeon_turn; /*!< NASTY生成の計算に関わる内部ターン値 / Game turn in dungeon */
126 s32b dungeon_turn_limit; /*!< dungeon_turnの最大値 / Limit of game turn in dungeon */
127 s32b old_turn; /* Turn when level began */
130 bool use_sound; /* The "sound" mode is enabled */
131 bool use_music; /* The "music" mode is enabled */
132 bool use_graphics; /* The "graphics" mode is enabled */
133 bool use_bigtile = FALSE;
135 s16b signal_count; /* Hack -- Count interupts */
137 bool inkey_base; /* See the "inkey()" function */
138 bool inkey_xtra; /* See the "inkey()" function */
139 bool inkey_scan; /* See the "inkey()" function */
140 bool inkey_flag; /* See the "inkey()" function */
141 bool get_com_no_macros = FALSE; /* Expand macros in "get_com" or not */
143 s16b coin_type; /* Hack -- force coin type */
145 bool opening_chest; /* Hack -- prevent chest generation */
147 bool shimmer_monsters; /* Hack -- optimize multi-hued monsters */
148 bool shimmer_objects; /* Hack -- optimize multi-hued objects */
150 bool repair_monsters; /* Hack -- optimize detect monsters */
151 bool repair_objects; /* Hack -- optimize detect objects */
153 s16b inven_nxt; /* Hack -- unused */
157 s16b inven_cnt; /* Number of items in inventory */
158 s16b equip_cnt; /* Number of items in equipment */
160 s16b o_max = 1; /* Number of allocated objects */
161 s16b o_cnt = 0; /* Number of live objects */
163 s16b m_max = 1; /* Number of allocated monsters */
164 s16b m_cnt = 0; /* Number of live monsters */
166 s16b hack_m_idx = 0; /* Hack -- see "process_monsters()" */
167 s16b hack_m_idx_ii = 0;
168 bool multi_rew = FALSE;
169 char summon_kin_type; /* Hack, by Julian Lighton: summon 'relatives' */
171 int total_friends = 0;
172 s32b friend_align = 0;
174 int leaving_quest = 0;
175 bool reinit_wilderness = FALSE;
179 * Software options (set via the '=' command). See "tables.c"
182 /*** Input Options ***/
184 bool rogue_like_commands; /* Rogue-like commands */
185 bool always_pickup; /* Pick things up by default */
186 bool carry_query_flag; /* Prompt before picking things up */
187 bool quick_messages; /* Activate quick messages */
188 bool auto_more; /* Automatically clear '-more-' prompts */
189 bool command_menu; /* Enable command selection menu */
190 bool other_query_flag; /* Prompt for floor item selection */
191 bool use_old_target; /* Use old target by default */
192 bool always_repeat; /* Repeat obvious commands */
193 bool confirm_destroy; /* Prompt for destruction of known worthless items */
194 bool confirm_wear; /* Confirm to wear/wield known cursed items */
195 bool confirm_quest; /* Prompt before exiting a quest level */
196 bool target_pet; /* Allow targetting pets */
198 #ifdef ALLOW_EASY_OPEN
199 bool easy_open; /* Automatically open doors */
202 #ifdef ALLOW_EASY_DISARM
203 bool easy_disarm; /* Automatically disarm traps */
206 #ifdef ALLOW_EASY_FLOOR
207 bool easy_floor; /* Display floor stacks in a list */
210 bool use_command; /* Allow unified use command */
211 bool over_exert; /* Allow casting spells when short of mana */
212 bool numpad_as_cursorkey; /* Use numpad keys as cursor key in editor mode */
215 /*** Map Screen Options ***/
217 bool center_player; /* Center map while walking (*slow*) */
218 bool center_running; /* Centering even while running */
219 bool view_yellow_lite; /* Use special colors for torch-lit grids */
220 bool view_bright_lite; /* Use special colors for 'viewable' grids */
221 bool view_granite_lite; /* Use special colors for wall grids (slow) */
222 bool view_special_lite; /* Use special colors for floor grids (slow) */
223 bool view_perma_grids; /* Map remembers all perma-lit grids */
224 bool view_torch_grids; /* Map remembers all torch-lit grids */
225 bool view_unsafe_grids; /* Map marked by detect traps */
226 bool view_reduce_view; /* Reduce view-radius in town */
227 bool fresh_before; /* Flush output while continuous command */
228 bool fresh_after; /* Flush output after monster's move */
229 bool fresh_message; /* Flush output after every message */
230 bool hilite_player; /* Hilite the player with the cursor */
231 bool display_path; /* Display actual path before shooting */
234 /*** Text Display Options ***/
236 bool plain_descriptions; /* Plain object descriptions */
237 bool plain_pickup; /* Plain pickup messages(japanese only) */
238 bool always_show_list; /* Always show list when choosing items */
239 bool depth_in_feet; /* Show dungeon level in feet */
240 bool show_labels; /* Show labels in object listings */
241 bool show_weights; /* Show weights in object listings */
242 bool show_item_graph; /* Show items graphics */
243 bool equippy_chars; /* Display 'equippy' chars */
244 bool display_mutations; /* Display mutations in 'C'haracter Display */
245 bool compress_savefile; /* Compress messages in savefiles */
246 bool abbrev_extra; /* Describe obj's extra resistances by abbreviation */
247 bool abbrev_all; /* Describe obj's all resistances by abbreviation */
248 bool exp_need; /* Show the experience needed for next level */
249 bool ignore_unview; /* Ignore whenever any monster does */
252 /*** Game-Play Options ***/
254 bool stack_force_notes; /* Merge inscriptions when stacking */
255 bool stack_force_costs; /* Merge discounts when stacking */
256 bool expand_list; /* Expand the power of the list commands */
257 bool small_levels; /* Allow unusually small dungeon levels */
258 bool always_small_levels; /* Always create unusually small dungeon levels */
259 bool empty_levels; /* Allow empty 'arena' levels */
260 bool bound_walls_perm; /* Boundary walls become 'permanent wall' */
261 bool last_words; /* Leave last words when your character dies */
264 bool send_score; /* Send score dump to the world score server */
267 bool allow_debug_opts; /* Allow use of debug/cheat options */
270 /*** Disturbance Options ***/
272 bool find_ignore_stairs; /* Run past stairs */
273 bool find_ignore_doors; /* Run through open doors */
274 bool find_cut; /* Run past known corners */
275 bool check_abort; /* Check for user abort while continuous command */
276 bool flush_failure; /* Flush input on various failures */
277 bool flush_disturb; /* Flush input whenever disturbed */
278 bool disturb_move; /* Disturb whenever any monster moves */
279 bool disturb_high; /* Disturb whenever high-level monster moves */
280 bool disturb_near; /* Disturb whenever viewable monster moves */
281 bool disturb_pets; /* Disturb when visible pets move */
282 bool disturb_panel; /* Disturb whenever map panel changes */
283 bool disturb_state; /* Disturb whenever player state changes */
284 bool disturb_minor; /* Disturb whenever boring things happen */
285 bool ring_bell; /* Audible bell (on errors, etc) */
286 bool disturb_trap_detect; /* Disturb when leaving trap detected area */
287 bool alert_trap_detect; /* Alert when leaving trap detected area */
290 /*** Birth Options ***/
292 bool manual_haggle; /* Manually haggle in stores */
293 bool easy_band; /* Easy Mode (*) */
294 bool smart_learn; /* Monsters learn from their mistakes (*) */
295 bool smart_cheat; /* Monsters exploit players weaknesses (*) */
296 bool vanilla_town; /* Use 'vanilla' town without quests and wilderness */
297 bool lite_town; /* Use 'lite' town without a wilderness */
298 bool ironman_shops; /* Stores are permanently closed (*) */
299 bool ironman_small_levels; /* Always create unusually small dungeon levels (*) */
300 bool ironman_downward; /* Disable recall and use of up stairs (*) */
301 bool ironman_empty_levels; /* Always create empty 'arena' levels (*) */
302 bool ironman_rooms; /* Always generate very unusual rooms (*) */
303 bool ironman_nightmare; /* Nightmare mode(it isn't even remotely fair!)(*) */
304 bool left_hander; /* Left-Hander */
305 bool preserve_mode; /* Preserve artifacts (*) */
306 bool autoroller; /* Allow use of autoroller for stats (*) */
307 bool autochara; /* Autoroll for weight, height and social status */
308 bool powerup_home; /* Increase capacity of your home (*) */
309 bool show_ammo_detail; /* Show Description of ammo damage */
310 bool show_ammo_no_crit; /* Show No-crit damage of ammo */
311 bool show_ammo_crit_ratio; /* Show critical ratio of ammo */
316 /*** Easy Object Auto-Destroyer ***/
318 bool destroy_items; /* Use easy auto-destroyer */
319 bool destroy_feeling; /* Apply auto-destroy as sense feeling */
320 bool destroy_identify; /* Apply auto-destroy as identify an item */
321 bool leave_worth; /* Auto-destroyer leaves known worthy items */
322 bool leave_equip; /* Auto-destroyer leaves weapons and armour */
323 bool leave_chest; /* Auto-destroyer leaves closed chests */
324 bool leave_wanted; /* Auto-destroyer leaves wanted corpses */
325 bool leave_corpse; /* Auto-destroyer leaves corpses and skeletons */
326 bool leave_junk; /* Auto-destroyer leaves junk */
327 bool leave_special; /* Auto-destroyer leaves items your race/class needs */
330 /*** Play-record Options ***/
332 bool record_fix_art; /* Record fixed artifacts */
333 bool record_rand_art; /* Record random artifacts */
334 bool record_destroy_uniq; /* Record when destroy unique monster */
335 bool record_fix_quest; /* Record fixed quests */
336 bool record_rand_quest; /* Record random quests */
337 bool record_maxdepth; /* Record movements to deepest level */
338 bool record_stair; /* Record recall and stair movements */
339 bool record_buy; /* Record purchased items */
340 bool record_sell; /* Record sold items */
341 bool record_danger; /* Record hitpoint warning */
342 bool record_arena; /* Record arena victories */
343 bool record_ident; /* Record first identified items */
344 bool record_named_pet; /* Record informations of named pets */
345 char record_o_name[MAX_NLEN];
349 /* Cheating options */
351 bool cheat_peek; /* Peek into object creation */
352 bool cheat_hear; /* Peek into monster creation */
353 bool cheat_room; /* Peek into dungeon creation */
354 bool cheat_xtra; /* Peek into something else */
355 bool cheat_know; /* Know complete monster info */
356 bool cheat_live; /* Allow player to avoid death */
357 bool cheat_save; /* Ask for saving death */
360 /* Special options */
362 byte hitpoint_warn; /* Hitpoint warning (0 to 9) */
363 byte mana_warn; /* Mana color (0 to 9) */
365 byte delay_factor; /* Delay factor (0 to 9) */
367 bool autosave_l; /* Autosave before entering new levels */
368 bool autosave_t; /* Timed autosave */
369 s16b autosave_freq; /* Autosave frequency */
376 bool closing_flag; /* Dungeon is closing */
383 s16b panel_row_min, panel_row_max;
384 s16b panel_col_min, panel_col_max;
385 s16b panel_col_prt, panel_row_prt;
389 * Targetting variables
404 * Stripped version of "player_name"
406 char player_base[32];
410 * Buffer to hold the current savefile name
411 * 'savefile' holds full path name. 'savefile_base' holds only base name.
414 char savefile_base[40];
417 * Array of grids lit by player lite (see "cave.c")
420 s16b lite_y[LITE_MAX];
421 s16b lite_x[LITE_MAX];
424 * Array of grids lit by player lite (see "cave.c")
427 s16b mon_lite_y[MON_LITE_MAX];
428 s16b mon_lite_x[MON_LITE_MAX];
431 * Array of grids viewable to the player (see "cave.c")
434 byte view_y[VIEW_MAX];
435 byte view_x[VIEW_MAX];
438 * Array of grids for use by various functions (see "cave.c")
441 byte temp_y[TEMP_MAX];
442 byte temp_x[TEMP_MAX];
445 * Array of grids for delayed visual updating (see "cave.c")
448 byte redraw_y[REDRAW_MAX];
449 byte redraw_x[REDRAW_MAX];
453 * Number of active macros.
458 * Array of macro patterns [MACRO_MAX]
463 * Array of macro actions [MACRO_MAX]
468 * Array of macro types [MACRO_MAX]
473 * Current macro action [1024]
479 * The number of quarks
484 * The pointers to the quarks [QUARK_MAX]
490 * The next "free" index to use
495 * The index of the oldest message (none yet)
500 * The next "free" offset
505 * The offset to the oldest used char (none yet)
510 * The array of offsets, by index [MESSAGE_MAX]
515 * The array of chars, by offset [MESSAGE_BUF]
521 * The array of normal options
528 * The array of window options
535 * The array of window pointers
537 term *angband_term[8];
541 * Standard window names
543 const char angband_term_name[8][16] =
557 * Global table of color definitions
559 byte angband_color_table[256][4] =
561 {0x00, 0x00, 0x00, 0x00}, /* TERM_DARK */
562 {0x00, 0xFF, 0xFF, 0xFF}, /* TERM_WHITE */
563 {0x00, 0x80, 0x80, 0x80}, /* TERM_SLATE */
564 {0x00, 0xFF, 0x80, 0x00}, /* TERM_ORANGE */
565 {0x00, 0xC0, 0x00, 0x00}, /* TERM_RED */
566 {0x00, 0x00, 0x80, 0x40}, /* TERM_GREEN */
567 {0x00, 0x00, 0x00, 0xFF}, /* TERM_BLUE */
568 {0x00, 0x80, 0x40, 0x00}, /* TERM_UMBER */
569 {0x00, 0x40, 0x40, 0x40}, /* TERM_L_DARK */
570 {0x00, 0xC0, 0xC0, 0xC0}, /* TERM_L_WHITE */
571 {0x00, 0xFF, 0x00, 0xFF}, /* TERM_VIOLET */
572 {0x00, 0xFF, 0xFF, 0x00}, /* TERM_YELLOW */
573 {0x00, 0xFF, 0x00, 0x00}, /* TERM_L_RED */
574 {0x00, 0x00, 0xFF, 0x00}, /* TERM_L_GREEN */
575 {0x00, 0x00, 0xFF, 0xFF}, /* TERM_L_BLUE */
576 {0x00, 0xC0, 0x80, 0x40} /* TERM_L_UMBER */
581 * Standard sound names
583 const cptr angband_sound_name[SOUND_MAX] =
654 * Standard music names
656 const cptr angband_music_basic_name[MUSIC_BASIC_MAX] =
683 * The array of "cave grids" [MAX_WID][MAX_HGT].
684 * Not completely allocated, that would be inefficient
685 * Not completely hardcoded, that would overflow memory
687 cave_type *cave[MAX_HGT];
691 * The array of saved floors
693 saved_floor_type saved_floors[MAX_SAVED_FLOORS];
697 * Number of floor_id used from birth
703 * Sign for current process used in temporal files.
704 * Actually it is the start time of current process.
706 u32b saved_floor_file_sign;
710 * The array of dungeon items [max_o_idx]
715 * The array of dungeon monsters [max_m_idx]
717 monster_type *m_list;
720 * The array to process dungeon monsters [max_m_idx]
722 s16b *mproc_list[MAX_MTIMED];
723 s16b mproc_max[MAX_MTIMED]; /* Number of monsters to be processed */
727 * Maximum number of towns
732 * The towns [max_towns]
738 * The player's inventory [INVEN_TOTAL]
740 object_type *inventory;
744 * The size of "alloc_kind_table" (at most max_k_idx * 4)
746 s16b alloc_kind_size;
749 * The entries in the "kind allocator table"
751 alloc_entry *alloc_kind_table;
755 * The size of "alloc_race_table" (at most max_r_idx)
757 s16b alloc_race_size;
760 * The entries in the "race allocator table"
762 alloc_entry *alloc_race_table;
766 * Specify attr/char pairs for visual special effects
767 * Be sure to use "index & 0x7F" to avoid illegal access
769 byte misc_to_attr[256];
770 char misc_to_char[256];
774 * Specify attr/char pairs for inventory items (by tval)
775 * Be sure to use "index & 0x7F" to avoid illegal access
777 byte tval_to_attr[128];
778 char tval_to_char[128];
782 * Keymaps for each "mode" associated with each keypress.
784 cptr keymap_act[KEYMAP_MODES][256];
788 /*** Player information ***/
791 * Static player info record
796 * Pointer to the player info
798 player_type *p_ptr = &p_body;
801 * Pointer to the player tables
802 * (sex, race, class, magic)
804 const player_sex *sp_ptr;
805 const player_race *rp_ptr;
806 const player_class *cp_ptr;
807 const player_seikaku *ap_ptr;
808 const player_magic *mp_ptr;
812 * The last character rolled,
813 * holded for quick start
815 birther previous_char;
819 * The vault generation arrays
833 player_magic *m_info;
836 * The terrain feature arrays
838 feature_type *f_info;
843 * The object kind arrays
850 * The artifact arrays
852 artifact_type *a_info;
857 * The ego-item arrays
859 ego_item_type *e_info;
865 * The monster race arrays
867 monster_race *r_info;
875 dungeon_info_type *d_info;
881 * Hack -- The special Angband "System Suffix"
882 * This variable is used to choose an appropriate "pref-xxx" file
884 cptr ANGBAND_SYS = "xxx";
887 * Hack -- The special Angband "Keyboard Suffix"
888 * This variable is used to choose an appropriate macro-trigger definition
891 cptr ANGBAND_KEYBOARD = "JAPAN";
893 cptr ANGBAND_KEYBOARD = "0";
897 * Hack -- The special Angband "Graphics Suffix"
898 * This variable is used to choose an appropriate "graf-xxx" file
900 cptr ANGBAND_GRAF = "ascii";
903 * Path name: The main "lib" directory
904 * This variable is not actually used anywhere in the code
909 * High score files (binary)
910 * These files may be portable between platforms
912 cptr ANGBAND_DIR_APEX;
915 * Bone files for player ghosts (ascii)
916 * These files are portable between platforms
918 cptr ANGBAND_DIR_BONE;
921 * Binary image files for the "*_info" arrays (binary)
922 * These files are not portable between platforms
924 cptr ANGBAND_DIR_DATA;
927 * Textual template files for the "*_info" arrays (ascii)
928 * These files are portable between platforms
930 cptr ANGBAND_DIR_EDIT;
934 * These files are portable between platforms.
936 cptr ANGBAND_DIR_SCRIPT;
939 * Various extra files (ascii)
940 * These files may be portable between platforms
942 cptr ANGBAND_DIR_FILE;
945 * Help files (normal) for the online help (ascii)
946 * These files are portable between platforms
948 cptr ANGBAND_DIR_HELP;
951 * Help files (spoilers) for the online help (ascii)
952 * These files are portable between platforms
954 cptr ANGBAND_DIR_INFO;
957 * Default user "preference" files (ascii)
958 * These files are rarely portable between platforms
960 cptr ANGBAND_DIR_PREF;
963 * Savefiles for current characters (binary)
964 * These files are portable between platforms
966 cptr ANGBAND_DIR_SAVE;
969 * User "preference" files (ascii)
970 * These files are rarely portable between platforms
972 cptr ANGBAND_DIR_USER;
975 * Various extra files (binary)
976 * These files are rarely portable between platforms
978 cptr ANGBAND_DIR_XTRA;
982 * Total Hack -- allow all items to be listed (even empty ones)
983 * This is only used by "do_cmd_inven_e()" and is cleared there.
985 bool item_tester_full;
987 bool item_tester_no_ryoute = FALSE;
990 * Here is a "pseudo-hook" used during calls to "get_item()" and
991 * "show_inven()" and "show_equip()", and the choice window routines.
993 byte item_tester_tval;
997 * Here is a "hook" used during calls to "get_item()" and
998 * "show_inven()" and "show_equip()", and the choice window routines.
1000 bool (*item_tester_hook)(object_type*);
1005 * Current "comp" function for ang_sort()
1007 bool (*ang_sort_comp)(vptr u, vptr v, int a, int b);
1011 * Current "swap" function for ang_sort()
1013 void (*ang_sort_swap)(vptr u, vptr v, int a, int b);
1018 * Hack -- function hooks to restrict "get_mon_num_prep()" function
1020 monster_hook_type get_mon_num_hook;
1021 monster_hook_type get_mon_num2_hook;
1025 * Hack -- function hook to restrict "get_obj_num_prep()" function
1027 bool (*get_obj_num_hook)(int k_idx);
1030 /* Hack, monk armour */
1031 bool monk_armour_aux;
1032 bool monk_notify_aux;
1038 wilderness_type **wilderness;
1044 building_type building[MAX_BLDG];
1048 * Maximum number of quests
1053 * Maximum number of monsters in r_info.txt
1058 * Maximum number of items in k_info.txt
1063 * Maximum number of vaults in v_info.txt
1068 * Maximum number of terrain features in f_info.txt
1073 * Maximum number of artifacts in a_info.txt
1078 * Maximum number of ego-items in e_info.txt
1083 * Maximum number of dungeon in e_info.txt
1088 * Maximum number of objects in the level
1093 * Maximum number of monsters in the level
1098 * Maximum size of the wilderness
1111 char quest_text[10][80];
1114 * Current line of the quest text
1116 int quest_text_line;
1119 * Default spell color table (quark index)
1121 s16b gf_color[MAX_GF];
1124 * Flags for initialization
1130 * The "highscore" file descriptor, if available.
1132 int highscore_fd = -1;
1134 int mutant_regenerate_mod = 100;
1136 bool can_save = FALSE; /* Game can be saved */
1156 s16b kubi_r_idx[MAX_KUBI];
1172 bool generate_encounter;
1174 cptr screen_dump = NULL;
1176 /*** Terrain feature variables ***/
1186 s16b feat_explosive_rune;
1190 door_type feat_door[MAX_DOOR_TYPES];
1194 s16b feat_down_stair;
1198 s16b feat_trap_open;
1199 s16b feat_trap_armageddon;
1200 s16b feat_trap_piranha;
1206 s16b feat_magma_vein;
1207 s16b feat_quartz_vein;
1211 s16b feat_permanent;
1214 s16b feat_glass_floor;
1217 s16b feat_glass_wall;
1218 s16b feat_permanent_glass_wall;
1221 s16b feat_pattern_start;
1222 s16b feat_pattern_1;
1223 s16b feat_pattern_2;
1224 s16b feat_pattern_3;
1225 s16b feat_pattern_4;
1226 s16b feat_pattern_end;
1227 s16b feat_pattern_old;
1228 s16b feat_pattern_exit;
1229 s16b feat_pattern_corrupted;
1232 s16b feat_black_market;
1236 s16b feat_deep_water;
1237 s16b feat_shallow_water;
1238 s16b feat_deep_lava;
1239 s16b feat_shallow_lava;
1248 /* Unknown grid (not detected) */
1249 s16b feat_undetected;
1257 s16b feat_wall_outer;
1258 s16b feat_wall_inner;
1259 s16b feat_wall_solid;
1260 s16b floor_type[100], fill_type[100];
1267 bool chuukei_server;
1268 bool chuukei_client;
1274 bool browsing_movie;
1282 int snipe_type = SP_NONE;
1283 bool reset_concent = FALSE; /* Concentration reset flag */
1284 bool is_fired = FALSE;