* Upper compatibility is always guaranteed.
*/
#define H_VER_MAJOR 1
-#define H_VER_MINOR 6
+#define H_VER_MINOR 7
#define H_VER_PATCH 0
#define H_VER_EXTRA 1
#define FEAT_MIRROR 0xc3
/* unknown grid (not detected) */
-#define FEAT_UNDETECTD 0xc4
+#define FEAT_UNDETECTED 0xc4
/* special traps */
#define FEAT_TRAP_ARMAGEDDON 0xc5
#define TV_HISSATSU_BOOK 106
#define TV_GOLD 127 /* Gold can only be picked up by players */
+#define TV_EQUIP_BEGIN TV_SHOT
+#define TV_EQUIP_END TV_CARD
+#define TV_MISSILE_BEGIN TV_SHOT
+#define TV_MISSILE_END TV_BOLT
+#define TV_WEARABLE_BEGIN TV_BOW
+#define TV_WEARABLE_END TV_CARD
+#define TV_WEAPON_BEGIN TV_BOW
+#define TV_WEAPON_END TV_SWORD
+#define TV_ARMOR_BEGIN TV_BOOTS
+#define TV_ARMOR_END TV_DRAG_ARMOR
+
/* Any subvalue */
#define SV_ANY 255
#define PM_ALLOW_UNIQUE 0x00000040
#define PM_IGNORE_TERRAIN 0x00000080
#define PM_HASTE 0x00000100
+#define PM_KAGE 0x00000200
/* Bit flags for monster_desc() */
#define MD_ASSUME_VISIBLE 0x00000080 /* Assume the monster is visible */
#define MD_TRUE_NAME 0x00000100 /* Chameleon's true name */
#define MD_IGNORE_HALLU 0x00000200 /* Ignore hallucination, and penetrate shape change */
-#define MD_ASSUME_OUTSIDE 0x00000400 /* Assume this monster pet waiting outside the floor */
/*
* Bit flags for the "p_ptr->special_attack" variable. -LM-
#define ACTION_SING 7
#define ACTION_HAYAGAKE 8
+
+/* Empty hand status */
+#define EMPTY_HAND_NONE 0x0000 /* Both hands are used */
+#define EMPTY_HAND_LARM 0x0001 /* Left hand is empty */
+#define EMPTY_HAND_RARM 0x0002 /* Right hand is empty */
+
/*** General index values ***/
* How object is marked (flags in object_type.mark)
* OM_FOUND --- original boolean flag
* OM_NOMSG --- temporary flag to suppress messages which were
- * already printed in auto_pickup_items().
+ * already printed in autopick_pickup_items().
*/
#define OM_FOUND 0x01 /* original boolean flag */
#define OM_NOMSG 0x02 /* temporary flag to suppress messages */
(bool)(((A)->ap_r_idx == (A)->r_idx) ? TRUE : FALSE)
+/*** Option Definitions ***/
+
+
+#define OPT_PAGE_INPUT 1
+#define OPT_PAGE_OUTPUT 2
+#define OPT_PAGE_GAMEPLAY 3
+#define OPT_PAGE_DISTURBANCE 4
+#define OPT_PAGE_EFFICIENCY 5
+#define OPT_PAGE_BIRTH 6
+#define OPT_PAGE_AUTODESTROY 7
+#define OPT_PAGE_PLAYRECORD 10
+
+#define OPT_PAGE_JAPANESE_ONLY 99
+
+
/*** Macro Definitions ***/
(((C)->feat == FEAT_PERM_SOLID) && \
(C)->mimic && feat_floor((C)->mimic))
+/*
+ * Get feature mimic from f_info[] (applying "mimic" field)
+ */
+#define get_feat_mimic(C) \
+ (f_info[(C)->mimic ? (C)->mimic : (C)->feat].mimic)
+
#define update_playtime() \
{\
u32b tmp;\
#define BACT_GREET_KING 4
#define BACT_KING_LEGENDS 5
#define BACT_QUEST 6
-#define BACT_GOLD 7
+#define BACT_XXX_UNUSED 7
#define BACT_POSTER 8
#define BACT_ARENA_RULES 9
#define BACT_ARENA 10
/* Maximum "Nazguls" number */
#define MAX_NAZGUL_NUM 5
-#define MAX_AUTOPICK 1009
#define DO_AUTOPICK 0x01
#define DO_AUTODESTROY 0x02
#define DO_DISPLAY 0x04
#define CFM_SHAFT 0x0010 /* Shaft */
#define CFM_RAND_PLACE 0x0020 /* Arrive at random grid */
#define CFM_RAND_CONNECT 0x0040 /* Connect with random stairs */
-#define CFM_CLEAR_ALL 0x0080 /* Reach to the surface/Recall/Alter reality */
+#define CFM_SAVE_FLOORS 0x0080 /* Save floors */
#define CFM_NO_RETURN 0x0100 /* Flee from random quest etc... */
+#define CFM_FIRST_FLOOR 0x0200 /* Create exit from the dungeon */
/*
#define SAVE_MON_EXP 0x00001000
#define SAVE_MON_MFLAG2 0x00002000
#define SAVE_MON_NICKNAME 0x00004000
+#define SAVE_MON_PARENT 0x00008000
/*
(((TARGET) <= 0) && (quest_number(dun_level) || (dun_level >= d_info[dungeon_type].maxdepth)) && \
(dun_level >= 1) && ironman_downward))
+
/*
- * World Score -- internet resource value
+ * Max numbers of macro trigger names
*/
-#define HTTP_PROXY "" /* Default proxy url */
-#define HTTP_PROXY_PORT 0 /* Default proxy port */
-#define HTTP_TIMEOUT 20 /* Timeout length (second) */
-#define SCORE_SERVER "www.kmc.gr.jp" /* Default score server url */
-#define SCORE_PORT 80 /* Default score server port */
-
#define MAX_MACRO_MOD 12
#define MAX_MACRO_TRIG 200
-#define SCREEN_BUF_SIZE 65536 /* max screen dump buffer size */
+/* Max size of screen dump buffer */
+#define SCREEN_BUF_SIZE 65536
+
+
+/*
+ * Special key code used for inkey_special()
+ */
+#define SKEY_MOD_MASK 0x0f00
+#define SKEY_MOD_SHIFT 0x0100
+#define SKEY_MOD_CONTROL 0x0200
+
+#define SKEY_MASK 0xf000
+#define SKEY_DOWN 0xf001
+#define SKEY_LEFT 0xf002
+#define SKEY_RIGHT 0xf003
+#define SKEY_UP 0xf004
+#define SKEY_PGUP 0xf005
+#define SKEY_PGDOWN 0xf006
+#define SKEY_TOP 0xf007
+#define SKEY_BOTTOM 0xf008