From f2d761347883755e5904768156ff34d9aa8e5473 Mon Sep 17 00:00:00 2001 From: deskull Date: Sat, 1 Jun 2019 13:39:26 +0900 Subject: [PATCH] =?utf8?q?[Refactor]=20#37353=20SVAL=5F*=20=E3=82=92=20obj?= =?utf8?q?ect.h=20=E3=81=B8=E7=A7=BB=E5=8B=95=EF=BC=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/defines.h | 611 --------------------------------------------------------- src/object.h | 612 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 612 insertions(+), 611 deletions(-) diff --git a/src/defines.h b/src/defines.h index fdcd3849b..617d6d546 100644 --- a/src/defines.h +++ b/src/defines.h @@ -277,617 +277,6 @@ #define CEM_RIDING 0x0001 #define CEM_P_CAN_ENTER_PATTERN 0x0002 -/*** Object "tval" and "sval" codes ***/ - -/* Any subvalue */ -#define SV_ANY 255 - -/* The "sval" codes for TV_FIGURINE */ -#define SV_FIGURINE_NORMAL 0 - -#define SV_CAPTURE_NONE 0 - -/* The "sval" codes for TV_STATUE */ -#define SV_WOODEN_STATUE 0 -#define SV_CLAY_STATUE 1 -#define SV_STONE_STATUE 2 -#define SV_IRON_STATUE 3 -#define SV_COPPER_STATUE 4 -#define SV_SILVER_STATUE 5 -#define SV_GOLDEN_STATUE 6 -#define SV_IVORY_STATUE 7 -#define SV_MITHRIL_STATUE 8 -#define SV_ORNATE_STATUE 9 -#define SV_PHOTO 50 - -/* The "sval" codes for TV_CORPSE */ -#define SV_SKELETON 0 -#define SV_CORPSE 1 - -/* The "sval" codes for TV_SHOT/TV_ARROW/TV_BOLT */ -#define SV_AMMO_LIGHT 0 /* pebbles */ -#define SV_AMMO_NORMAL 1 /* shots, arrows, bolts */ -#define SV_AMMO_HEAVY 2 /* seeker arrows and bolts, mithril shots */ - -/* The "sval" codes for TV_BOW (note information in "sval") */ -#define SV_SLING 2 /* (x2) */ -#define SV_SHORT_BOW 12 /* (x2) */ -#define SV_LONG_BOW 13 /* (x3) */ -#define SV_LIGHT_XBOW 23 /* (x3) */ -#define SV_HEAVY_XBOW 24 /* (x4) */ -#define SV_CRIMSON 50 /* (x0) */ -#define SV_HARP 51 /* (x0) */ -#define SV_NAMAKE_BOW 63 /* (x3) */ - -/* The "sval" codes for TV_DIGGING */ -#define SV_SHOVEL 1 -#define SV_GNOMISH_SHOVEL 2 -#define SV_DWARVEN_SHOVEL 3 -#define SV_PICK 4 -#define SV_ORCISH_PICK 5 -#define SV_DWARVEN_PICK 6 -#define SV_MATTOCK 7 - -/* The "sval" values for TV_HAFTED */ -#define SV_CLUB 1 /* 1d4 */ -#define SV_WHIP 2 /* 1d6 */ -#define SV_QUARTERSTAFF 3 /* 1d9 */ -#define SV_NUNCHAKU 4 /* 2d3 */ -#define SV_MACE 5 /* 2d4 */ -#define SV_BALL_AND_CHAIN 6 /* 2d4 */ -#define SV_JO_STAFF 7 /* 1d7 */ -#define SV_WAR_HAMMER 8 /* 3d3 */ -#define SV_THREE_PIECE_ROD 11 /* 3d3 */ -#define SV_MORNING_STAR 12 /* 2d6 */ -#define SV_FLAIL 13 /* 2d6 */ -#define SV_BO_STAFF 14 /* 1d11 */ -#define SV_LEAD_FILLED_MACE 15 /* 3d4 */ -#define SV_TETSUBO 16 /* 2d7 */ -#define SV_TWO_HANDED_FLAIL 18 /* 3d6 */ -#define SV_GREAT_HAMMER 19 /* 4d6 */ -#define SV_MACE_OF_DISRUPTION 20 /* 5d8 */ -#define SV_WIZSTAFF 21 /* 1d2 */ -#define SV_GROND 50 /* 3d9 */ -#define SV_NAMAKE_HAMMER 63 /* 1d77 */ - -/* The "sval" values for TV_POLEARM */ -#define SV_HATCHET 1 /* 1d5 */ -#define SV_SPEAR 2 /* 1d6 */ -#define SV_SICKLE 3 /* 2d3 */ -#define SV_AWL_PIKE 4 /* 1d8 */ -#define SV_TRIDENT 5 /* 1d9 */ -#define SV_FAUCHARD 6 /* 1d10 */ -#define SV_BROAD_SPEAR 7 /* 1d9 */ -#define SV_PIKE 8 /* 2d5 */ -#define SV_NAGINATA 9 /* 2d6 */ -#define SV_BEAKED_AXE 10 /* 2d6 */ -#define SV_BROAD_AXE 11 /* 2d6 */ -#define SV_LUCERNE_HAMMER 12 /* 2d5 */ -#define SV_GLAIVE 13 /* 2d6 */ -#define SV_LAJATANG 14 /* 2d7 */ -#define SV_HALBERD 15 /* 3d4 */ -#define SV_GUISARME 16 /* 2d5 */ -#define SV_SCYTHE 17 /* 5d3 */ -#define SV_LANCE 20 /* 2d8 */ -#define SV_BATTLE_AXE 22 /* 2d8 */ -#define SV_GREAT_AXE 25 /* 4d4 */ -#define SV_TRIFURCATE_SPEAR 26 /* 2d9 */ -#define SV_LOCHABER_AXE 28 /* 3d8 */ -#define SV_HEAVY_LANCE 29 /* 4d8 */ -#define SV_SCYTHE_OF_SLICING 30 /* 8d4 */ -#define SV_TSURIZAO 40 /* 1d1 */ -#define SV_DEATH_SCYTHE 50 /* 10d10 */ - -/* The "sval" codes for TV_SWORD */ -#define SV_BROKEN_DAGGER 1 /* 1d1 */ -#define SV_BROKEN_SWORD 2 /* 1d2 */ -#define SV_DAGGER 4 /* 1d4 */ -#define SV_MAIN_GAUCHE 5 /* 1d5 */ -#define SV_TANTO 6 /* 1d5 */ -#define SV_RAPIER 7 /* 1d6 */ -#define SV_SMALL_SWORD 8 /* 1d6 */ -#define SV_BASILLARD 9 /* 1d8 */ -#define SV_SHORT_SWORD 10 /* 1d7 */ -#define SV_SABRE 11 /* 1d7 */ -#define SV_CUTLASS 12 /* 1d7 */ -#define SV_WAKIZASHI 13 /* 2d4 */ -#define SV_KHOPESH 14 /* 2d4 */ -#define SV_TULWAR 15 /* 2d4 */ -#define SV_BROAD_SWORD 16 /* 2d5 */ -#define SV_LONG_SWORD 17 /* 2d5 */ -#define SV_SCIMITAR 18 /* 2d5 */ -#define SV_NINJATO 19 /* 1d9 */ -#define SV_KATANA 20 /* 3d4 */ -#define SV_BASTARD_SWORD 21 /* 3d4 */ -#define SV_GREAT_SCIMITAR 22 /* 4d5 */ -#define SV_CLAYMORE 23 /* 2d8 */ -#define SV_ESPADON 24 /* 2d9 */ -#define SV_TWO_HANDED_SWORD 25 /* 3d6 */ -#define SV_FLAMBERGE 26 /* 3d7 */ -#define SV_NO_DACHI 27 /* 5d4 */ -#define SV_EXECUTIONERS_SWORD 28 /* 4d5 */ -#define SV_ZWEIHANDER 29 /* 4d6 */ -#define SV_BLADE_OF_CHAOS 30 /* 6d5 */ -#define SV_DIAMOND_EDGE 31 /* 7d5 */ -#define SV_DOKUBARI 32 /* 1d1 */ -#define SV_HAYABUSA 33 /* 1d6 */ - -/* The "sval" codes for TV_SHIELD */ -#define SV_SMALL_LEATHER_SHIELD 2 -#define SV_SMALL_METAL_SHIELD 3 -#define SV_LARGE_LEATHER_SHIELD 4 -#define SV_LARGE_METAL_SHIELD 5 -#define SV_DRAGON_SHIELD 6 -#define SV_KNIGHT_SHIELD 7 -#define SV_MIRROR_SHIELD 10 -#define SV_YATA_MIRROR 50 - -/* The "sval" codes for TV_HELM */ -#define SV_HARD_LEATHER_CAP 2 -#define SV_METAL_CAP 3 -#define SV_JINGASA 4 /* 4 */ -#define SV_IRON_HELM 5 -#define SV_STEEL_HELM 6 -#define SV_DRAGON_HELM 7 -#define SV_KABUTO 8 /* 7 */ - -/* The "sval" codes for TV_CROWN */ -#define SV_IRON_CROWN 10 -#define SV_GOLDEN_CROWN 11 -#define SV_JEWELED_CROWN 12 -#define SV_CHAOS 50 - -/* The "sval" codes for TV_BOOTS */ -#define SV_PAIR_OF_SOFT_LEATHER_BOOTS 2 -#define SV_PAIR_OF_HARD_LEATHER_BOOTS 3 -#define SV_PAIR_OF_DRAGON_GREAVE 4 -#define SV_PAIR_OF_METAL_SHOD_BOOTS 6 - -/* The "sval" codes for TV_CLOAK */ -#define SV_CLOAK 1 -#define SV_ELVEN_CLOAK 2 -#define SV_FUR_CLOAK 3 -#define SV_ETHEREAL_CLOAK 5 -#define SV_SHADOW_CLOAK 6 - -/* The "sval" codes for TV_GLOVES */ -#define SV_SET_OF_LEATHER_GLOVES 1 -#define SV_SET_OF_GAUNTLETS 2 -#define SV_SET_OF_DRAGON_GLOVES 3 -#define SV_SET_OF_CESTI 5 - -/* The "sval" codes for TV_SOFT_ARMOR */ -#define SV_T_SHIRT 0 -#define SV_FILTHY_RAG 1 -#define SV_ROBE 2 -#define SV_PAPER_ARMOR 3 /* 4 */ -#define SV_SOFT_LEATHER_ARMOR 4 -#define SV_SOFT_STUDDED_LEATHER 5 -#define SV_HARD_LEATHER_ARMOR 6 -#define SV_HARD_STUDDED_LEATHER 7 -#define SV_RHINO_HIDE_ARMOR 8 -#define SV_CORD_ARMOR 9 /* 6 */ -#define SV_PADDED_ARMOR 10 /* 4 */ -#define SV_LEATHER_SCALE_MAIL 11 -#define SV_LEATHER_JACK 12 -#define SV_KUROSHOUZOKU 13 -#define SV_STONE_AND_HIDE_ARMOR 15 /* 15 */ -#define SV_ABUNAI_MIZUGI 50 -#define SV_YOIYAMI_ROBE 60 -#define SV_NAMAKE_ARMOR 63 - -/* The "sval" codes for TV_HARD_ARMOR */ -#define SV_RUSTY_CHAIN_MAIL 1 /* 14- */ -#define SV_RING_MAIL 2 /* 12 */ -#define SV_METAL_SCALE_MAIL 3 /* 13 */ -#define SV_CHAIN_MAIL 4 /* 14 */ -#define SV_DOUBLE_RING_MAIL 5 /* 15 */ -#define SV_AUGMENTED_CHAIN_MAIL 6 /* 16 */ -#define SV_DOUBLE_CHAIN_MAIL 7 /* 16 */ -#define SV_BAR_CHAIN_MAIL 8 /* 18 */ -#define SV_METAL_BRIGANDINE_ARMOUR 9 /* 19 */ -#define SV_SPLINT_MAIL 10 /* 19 */ -#define SV_DO_MARU 11 /* 20 */ -#define SV_PARTIAL_PLATE_ARMOUR 12 /* 22 */ -#define SV_METAL_LAMELLAR_ARMOUR 13 /* 23 */ -#define SV_HARAMAKIDO 14 /* 17 */ -#define SV_FULL_PLATE_ARMOUR 15 /* 25 */ -#define SV_O_YOROI 16 /* 24 */ -#define SV_RIBBED_PLATE_ARMOUR 18 /* 28 */ -#define SV_MITHRIL_CHAIN_MAIL 20 /* 28+ */ -#define SV_MITHRIL_PLATE_MAIL 25 /* 35+ */ -#define SV_ADAMANTITE_PLATE_MAIL 30 /* 40+ */ - -/* The "sval" codes for TV_DRAG_ARMOR */ -#define SV_DRAGON_BLACK 1 -#define SV_DRAGON_BLUE 2 -#define SV_DRAGON_WHITE 3 -#define SV_DRAGON_RED 4 -#define SV_DRAGON_GREEN 5 -#define SV_DRAGON_MULTIHUED 6 -#define SV_DRAGON_SHINING 10 -#define SV_DRAGON_LAW 12 -#define SV_DRAGON_BRONZE 14 -#define SV_DRAGON_GOLD 16 -#define SV_DRAGON_CHAOS 18 -#define SV_DRAGON_BALANCE 20 -#define SV_DRAGON_POWER 30 - -/* The sval codes for TV_LITE */ -#define SV_LITE_TORCH 0 -#define SV_LITE_LANTERN 1 -#define SV_LITE_FEANOR 2 -#define SV_LITE_EDISON 3 -#define SV_LITE_GALADRIEL 4 -#define SV_LITE_ELENDIL 5 -#define SV_LITE_JUDGE 6 -#define SV_LITE_LORE 7 -#define SV_LITE_PALANTIR 8 -#define SV_LITE_FLY_STONE 9 - -/* The "sval" codes for TV_AMULET */ -#define SV_AMULET_DOOM 0 -#define SV_AMULET_TELEPORT 1 -#define SV_AMULET_ADORNMENT 2 -#define SV_AMULET_SLOW_DIGEST 3 -#define SV_AMULET_RESIST_ACID 4 -#define SV_AMULET_SEARCHING 5 -#define SV_AMULET_BRILLIANCE 6 -#define SV_AMULET_CHARISMA 7 -#define SV_AMULET_THE_MAGI 8 -#define SV_AMULET_REFLECTION 9 -#define SV_AMULET_CARLAMMAS 10 -#define SV_AMULET_INGWE 11 -#define SV_AMULET_DWARVES 12 -#define SV_AMULET_NO_MAGIC 13 -#define SV_AMULET_NO_TELE 14 -#define SV_AMULET_RESISTANCE 15 -#define SV_AMULET_TELEPATHY 16 -#define SV_AMULET_FARAMIR 17 -#define SV_AMULET_BOROMIR 18 -#define SV_AMULET_MAGATAMA 19 -#define SV_AMULET_INROU 20 -#define SV_AMULET_INTELLIGENCE 21 -#define SV_AMULET_WISDOM 22 -#define SV_AMULET_MAGIC_MASTERY 23 -#define SV_AMULET_NIGHT 24 - -/* The sval codes for TV_RING */ -#define SV_RING_WOE 0 -#define SV_RING_AGGRAVATION 1 -#define SV_RING_WEAKNESS 2 -#define SV_RING_STUPIDITY 3 -#define SV_RING_TELEPORTATION 4 -#define SV_RING_SLOW_DIGESTION 6 -#define SV_RING_LEVITATION_FALL 7 -#define SV_RING_RESIST_FIRE 8 -#define SV_RING_RESIST_COLD 9 -#define SV_RING_SUSTAIN_STR 10 -#define SV_RING_SUSTAIN_INT 11 -#define SV_RING_SUSTAIN_WIS 12 -#define SV_RING_SUSTAIN_CON 13 -#define SV_RING_SUSTAIN_DEX 14 -#define SV_RING_SUSTAIN_CHR 15 -#define SV_RING_PROTECTION 16 -#define SV_RING_ACID 17 -#define SV_RING_FLAMES 18 -#define SV_RING_ICE 19 -#define SV_RING_RESIST_POIS 20 -#define SV_RING_FREE_ACTION 21 -#define SV_RING_SEE_INVIS 22 -#define SV_RING_SEARCHING 23 -#define SV_RING_STR 24 -#define SV_RING_ELEC 25 -#define SV_RING_DEX 26 -#define SV_RING_CON 27 -#define SV_RING_ACCURACY 28 -#define SV_RING_DAMAGE 29 -#define SV_RING_SLAYING 30 -#define SV_RING_SPEED 31 -#define SV_RING_FRAKIR 32 -#define SV_RING_TULKAS 33 -#define SV_RING_NARYA 34 -#define SV_RING_NENYA 35 -#define SV_RING_VILYA 36 -#define SV_RING_POWER 37 -#define SV_RING_RES_FEAR 38 -#define SV_RING_RES_LD 39 -#define SV_RING_RES_NETHER 40 -#define SV_RING_RES_NEXUS 41 -#define SV_RING_RES_SOUND 42 -#define SV_RING_RES_CONFUSION 43 -#define SV_RING_RES_SHARDS 44 -#define SV_RING_RES_DISENCHANT 45 -#define SV_RING_RES_CHAOS 46 -#define SV_RING_RES_BLINDNESS 47 -#define SV_RING_LORDLY 48 -#define SV_RING_ATTACKS 49 -#define SV_RING_AHO 50 -#define SV_RING_SHOTS 51 -#define SV_RING_SUSTAIN 52 -#define SV_RING_DEC_MANA 53 -#define SV_RING_WARNING 54 -#define SV_RING_MUSCLE 55 - -#define SV_EXPRESS_CARD 0 - -/* The "sval" codes for TV_STAFF */ -#define SV_STAFF_DARKNESS 0 -#define SV_STAFF_SLOWNESS 1 -#define SV_STAFF_HASTE_MONSTERS 2 -#define SV_STAFF_SUMMONING 3 -#define SV_STAFF_TELEPORTATION 4 -#define SV_STAFF_IDENTIFY 5 -#define SV_STAFF_REMOVE_CURSE 6 -#define SV_STAFF_STARLITE 7 -#define SV_STAFF_LITE 8 -#define SV_STAFF_MAPPING 9 -#define SV_STAFF_DETECT_GOLD 10 -#define SV_STAFF_DETECT_ITEM 11 -#define SV_STAFF_DETECT_TRAP 12 -#define SV_STAFF_DETECT_DOOR 13 -#define SV_STAFF_DETECT_INVIS 14 -#define SV_STAFF_DETECT_EVIL 15 -#define SV_STAFF_CURE_LIGHT 16 -#define SV_STAFF_CURING 17 -#define SV_STAFF_HEALING 18 -#define SV_STAFF_THE_MAGI 19 -#define SV_STAFF_SLEEP_MONSTERS 20 -#define SV_STAFF_SLOW_MONSTERS 21 -#define SV_STAFF_SPEED 22 -#define SV_STAFF_PROBING 23 -#define SV_STAFF_DISPEL_EVIL 24 -#define SV_STAFF_POWER 25 -#define SV_STAFF_HOLINESS 26 -#define SV_STAFF_GENOCIDE 27 -#define SV_STAFF_EARTHQUAKES 28 -#define SV_STAFF_DESTRUCTION 29 -#define SV_STAFF_ANIMATE_DEAD 30 -#define SV_STAFF_MSTORM 31 -#define SV_STAFF_NOTHING 32 - - -/* The "sval" codes for TV_WAND */ -#define SV_WAND_HEAL_MONSTER 0 -#define SV_WAND_HASTE_MONSTER 1 -#define SV_WAND_CLONE_MONSTER 2 -#define SV_WAND_TELEPORT_AWAY 3 -#define SV_WAND_DISARMING 4 -#define SV_WAND_TRAP_DOOR_DEST 5 -#define SV_WAND_STONE_TO_MUD 6 -#define SV_WAND_LITE 7 -#define SV_WAND_SLEEP_MONSTER 8 -#define SV_WAND_SLOW_MONSTER 9 -#define SV_WAND_CONFUSE_MONSTER 10 -#define SV_WAND_FEAR_MONSTER 11 -#define SV_WAND_HYPODYNAMIA 12 -#define SV_WAND_POLYMORPH 13 -#define SV_WAND_STINKING_CLOUD 14 -#define SV_WAND_MAGIC_MISSILE 15 -#define SV_WAND_ACID_BOLT 16 -#define SV_WAND_CHARM_MONSTER 17 -#define SV_WAND_FIRE_BOLT 18 -#define SV_WAND_COLD_BOLT 19 -#define SV_WAND_ACID_BALL 20 -#define SV_WAND_ELEC_BALL 21 -#define SV_WAND_FIRE_BALL 22 -#define SV_WAND_COLD_BALL 23 -#define SV_WAND_WONDER 24 -#define SV_WAND_DISINTEGRATE 25 -#define SV_WAND_DRAGON_FIRE 26 -#define SV_WAND_DRAGON_COLD 27 -#define SV_WAND_DRAGON_BREATH 28 -#define SV_WAND_ROCKETS 29 -#define SV_WAND_STRIKING 30 -#define SV_WAND_GENOCIDE 31 - -/* The "sval" codes for TV_ROD */ -#define SV_ROD_DETECT_TRAP 0 -#define SV_ROD_DETECT_DOOR 1 -#define SV_ROD_IDENTIFY 2 -#define SV_ROD_RECALL 3 -#define SV_ROD_ILLUMINATION 4 -#define SV_ROD_MAPPING 5 -#define SV_ROD_DETECTION 6 -#define SV_ROD_PROBING 7 -#define SV_ROD_CURING 8 -#define SV_ROD_HEALING 9 -#define SV_ROD_RESTORATION 10 -#define SV_ROD_SPEED 11 -#define SV_ROD_PESTICIDE 12 -#define SV_ROD_TELEPORT_AWAY 13 -#define SV_ROD_DISARMING 14 -#define SV_ROD_LITE 15 -#define SV_ROD_SLEEP_MONSTER 16 -#define SV_ROD_SLOW_MONSTER 17 -#define SV_ROD_HYPODYNAMIA 18 -#define SV_ROD_POLYMORPH 19 -#define SV_ROD_ACID_BOLT 20 -#define SV_ROD_ELEC_BOLT 21 -#define SV_ROD_FIRE_BOLT 22 -#define SV_ROD_COLD_BOLT 23 -#define SV_ROD_ACID_BALL 24 -#define SV_ROD_ELEC_BALL 25 -#define SV_ROD_FIRE_BALL 26 -#define SV_ROD_COLD_BALL 27 -#define SV_ROD_HAVOC 28 -#define SV_ROD_STONE_TO_MUD 29 -#define SV_ROD_AGGRAVATE 30 - - -/* The "sval" codes for TV_SCROLL */ - -#define SV_SCROLL_DARKNESS 0 -#define SV_SCROLL_AGGRAVATE_MONSTER 1 -#define SV_SCROLL_CURSE_ARMOR 2 -#define SV_SCROLL_CURSE_WEAPON 3 -#define SV_SCROLL_SUMMON_MONSTER 4 -#define SV_SCROLL_SUMMON_UNDEAD 5 -#define SV_SCROLL_SUMMON_PET 6 -#define SV_SCROLL_TRAP_CREATION 7 -#define SV_SCROLL_PHASE_DOOR 8 -#define SV_SCROLL_TELEPORT 9 -#define SV_SCROLL_TELEPORT_LEVEL 10 -#define SV_SCROLL_WORD_OF_RECALL 11 -#define SV_SCROLL_IDENTIFY 12 -#define SV_SCROLL_STAR_IDENTIFY 13 -#define SV_SCROLL_REMOVE_CURSE 14 -#define SV_SCROLL_STAR_REMOVE_CURSE 15 -#define SV_SCROLL_ENCHANT_ARMOR 16 -#define SV_SCROLL_ENCHANT_WEAPON_TO_HIT 17 -#define SV_SCROLL_ENCHANT_WEAPON_TO_DAM 18 -/* xxx enchant missile? */ -#define SV_SCROLL_STAR_ENCHANT_ARMOR 20 -#define SV_SCROLL_STAR_ENCHANT_WEAPON 21 -#define SV_SCROLL_RECHARGING 22 -#define SV_SCROLL_MUNDANITY 23 -#define SV_SCROLL_LIGHT 24 -#define SV_SCROLL_MAPPING 25 -#define SV_SCROLL_DETECT_GOLD 26 -#define SV_SCROLL_DETECT_ITEM 27 -#define SV_SCROLL_DETECT_TRAP 28 -#define SV_SCROLL_DETECT_DOOR 29 -#define SV_SCROLL_DETECT_INVIS 30 -/* xxx (detect evil?) */ -#define SV_SCROLL_SATISFY_HUNGER 32 -#define SV_SCROLL_BLESSING 33 -#define SV_SCROLL_HOLY_CHANT 34 -#define SV_SCROLL_HOLY_PRAYER 35 -#define SV_SCROLL_MONSTER_CONFUSION 36 -#define SV_SCROLL_PROTECTION_FROM_EVIL 37 -#define SV_SCROLL_RUNE_OF_PROTECTION 38 -#define SV_SCROLL_TRAP_DOOR_DESTRUCTION 39 -/* xxx */ -#define SV_SCROLL_STAR_DESTRUCTION 41 -#define SV_SCROLL_DISPEL_UNDEAD 42 -#define SV_SCROLL_SPELL 43 -#define SV_SCROLL_GENOCIDE 44 -#define SV_SCROLL_MASS_GENOCIDE 45 -#define SV_SCROLL_ACQUIREMENT 46 -#define SV_SCROLL_STAR_ACQUIREMENT 47 -#define SV_SCROLL_FIRE 48 -#define SV_SCROLL_ICE 49 -#define SV_SCROLL_CHAOS 50 -#define SV_SCROLL_RUMOR 51 -#define SV_SCROLL_ARTIFACT 52 -#define SV_SCROLL_RESET_RECALL 53 -#define SV_SCROLL_SUMMON_KIN 54 -#define SV_SCROLL_AMUSEMENT 55 -#define SV_SCROLL_STAR_AMUSEMENT 56 - -/* The "sval" codes for TV_POTION */ -#define SV_POTION_WATER 0 -#define SV_POTION_APPLE_JUICE 1 -#define SV_POTION_SLIME_MOLD 2 -/* xxx (fixed color) */ -#define SV_POTION_SLOWNESS 4 -#define SV_POTION_SALT_WATER 5 -#define SV_POTION_POISON 6 -#define SV_POTION_BLINDNESS 7 -/* xxx */ -#define SV_POTION_BOOZE 9 -/* xxx */ -#define SV_POTION_SLEEP 11 -/* xxx */ -#define SV_POTION_LOSE_MEMORIES 13 -/* xxx */ -#define SV_POTION_RUINATION 15 -#define SV_POTION_DEC_STR 16 -#define SV_POTION_DEC_INT 17 -#define SV_POTION_DEC_WIS 18 -#define SV_POTION_DEC_DEX 19 -#define SV_POTION_DEC_CON 20 -#define SV_POTION_DEC_CHR 21 -#define SV_POTION_DETONATIONS 22 -#define SV_POTION_DEATH 23 -#define SV_POTION_INFRAVISION 24 -#define SV_POTION_DETECT_INVIS 25 -#define SV_POTION_SLOW_POISON 26 -#define SV_POTION_CURE_POISON 27 -#define SV_POTION_BOLDNESS 28 -#define SV_POTION_SPEED 29 -#define SV_POTION_RESIST_HEAT 30 -#define SV_POTION_RESIST_COLD 31 -#define SV_POTION_HEROISM 32 -#define SV_POTION_BESERK_STRENGTH 33 -#define SV_POTION_CURE_LIGHT 34 -#define SV_POTION_CURE_SERIOUS 35 -#define SV_POTION_CURE_CRITICAL 36 -#define SV_POTION_HEALING 37 -#define SV_POTION_STAR_HEALING 38 -#define SV_POTION_LIFE 39 -#define SV_POTION_RESTORE_MANA 40 -#define SV_POTION_RESTORE_EXP 41 -#define SV_POTION_RES_STR 42 -#define SV_POTION_RES_INT 43 -#define SV_POTION_RES_WIS 44 -#define SV_POTION_RES_DEX 45 -#define SV_POTION_RES_CON 46 -#define SV_POTION_RES_CHR 47 -#define SV_POTION_INC_STR 48 -#define SV_POTION_INC_INT 49 -#define SV_POTION_INC_WIS 50 -#define SV_POTION_INC_DEX 51 -#define SV_POTION_INC_CON 52 -#define SV_POTION_INC_CHR 53 -/* xxx */ -#define SV_POTION_AUGMENTATION 55 -#define SV_POTION_ENLIGHTENMENT 56 -#define SV_POTION_STAR_ENLIGHTENMENT 57 -#define SV_POTION_SELF_KNOWLEDGE 58 -#define SV_POTION_EXPERIENCE 59 -#define SV_POTION_RESISTANCE 60 -#define SV_POTION_CURING 61 -#define SV_POTION_INVULNERABILITY 62 -#define SV_POTION_NEW_LIFE 63 -#define SV_POTION_NEO_TSUYOSHI 64 -#define SV_POTION_TSUYOSHI 65 -#define SV_POTION_POLYMORPH 66 - -/* The "sval" codes for TV_FLASK */ -#define SV_FLASK_OIL 0 - -/* The "sval" codes for TV_FOOD */ -#define SV_FOOD_POISON 0 -#define SV_FOOD_BLINDNESS 1 -#define SV_FOOD_PARANOIA 2 -#define SV_FOOD_CONFUSION 3 -#define SV_FOOD_HALLUCINATION 4 -#define SV_FOOD_PARALYSIS 5 -#define SV_FOOD_WEAKNESS 6 -#define SV_FOOD_SICKNESS 7 -#define SV_FOOD_STUPIDITY 8 -#define SV_FOOD_NAIVETY 9 -#define SV_FOOD_UNHEALTH 10 -#define SV_FOOD_DISEASE 11 -#define SV_FOOD_CURE_POISON 12 -#define SV_FOOD_CURE_BLINDNESS 13 -#define SV_FOOD_CURE_PARANOIA 14 -#define SV_FOOD_CURE_CONFUSION 15 -#define SV_FOOD_CURE_SERIOUS 16 -#define SV_FOOD_RESTORE_STR 17 -#define SV_FOOD_RESTORE_CON 18 -#define SV_FOOD_RESTORING 19 -/* many missing mushrooms */ -#define SV_FOOD_BISCUIT 32 -#define SV_FOOD_JERKY 33 -#define SV_FOOD_RATION 35 -#define SV_FOOD_SLIME_MOLD 36 -#define SV_FOOD_WAYBREAD 37 -#define SV_FOOD_PINT_OF_ALE 38 -#define SV_FOOD_PINT_OF_WINE 39 - - -#define SV_ROD_MIN_DIRECTION 12 /*!< この値以降の小項目IDを持ったロッドは使用時にターゲットを要求する / Special "sval" limit -- first "aimed" rod */ - -#define SV_CHEST_MIN_LARGE 4 /*!< この値以降の小項目IDを持った箱は大型の箱としてドロップ数を増やす / Special "sval" limit -- first "large" chest */ -#define SV_CHEST_KANDUME 50 /*!< 箱アイテムの小項目ID: おもちゃのカンヅメ */ - -/* - * Special "sval" limit -- first "good" magic/prayer book - */ -#define SV_BOOK_MIN_GOOD 2 - #define OBJ_GOLD_LIST 480 /* First "gold" entry */ #define MAX_GOLD 18 /* Number of "gold" entries */ diff --git a/src/object.h b/src/object.h index b6c579516..e83ee9ab4 100644 --- a/src/object.h +++ b/src/object.h @@ -487,3 +487,615 @@ extern void py_pickup_floor(bool pickup); (k_info[(T)->k_idx].x_attr != TERM_DARK)) ? \ (k_info[(T)->k_idx].x_attr) : (r_info[(T)->pval].x_attr))) + + /*** Object "sval" codes ***/ + + /* Any subvalue */ +#define SV_ANY 255 + +/* The "sval" codes for TV_FIGURINE */ +#define SV_FIGURINE_NORMAL 0 + +#define SV_CAPTURE_NONE 0 + +/* The "sval" codes for TV_STATUE */ +#define SV_WOODEN_STATUE 0 +#define SV_CLAY_STATUE 1 +#define SV_STONE_STATUE 2 +#define SV_IRON_STATUE 3 +#define SV_COPPER_STATUE 4 +#define SV_SILVER_STATUE 5 +#define SV_GOLDEN_STATUE 6 +#define SV_IVORY_STATUE 7 +#define SV_MITHRIL_STATUE 8 +#define SV_ORNATE_STATUE 9 +#define SV_PHOTO 50 + +/* The "sval" codes for TV_CORPSE */ +#define SV_SKELETON 0 +#define SV_CORPSE 1 + +/* The "sval" codes for TV_SHOT/TV_ARROW/TV_BOLT */ +#define SV_AMMO_LIGHT 0 /* pebbles */ +#define SV_AMMO_NORMAL 1 /* shots, arrows, bolts */ +#define SV_AMMO_HEAVY 2 /* seeker arrows and bolts, mithril shots */ + +/* The "sval" codes for TV_BOW (note information in "sval") */ +#define SV_SLING 2 /* (x2) */ +#define SV_SHORT_BOW 12 /* (x2) */ +#define SV_LONG_BOW 13 /* (x3) */ +#define SV_LIGHT_XBOW 23 /* (x3) */ +#define SV_HEAVY_XBOW 24 /* (x4) */ +#define SV_CRIMSON 50 /* (x0) */ +#define SV_HARP 51 /* (x0) */ +#define SV_NAMAKE_BOW 63 /* (x3) */ + +/* The "sval" codes for TV_DIGGING */ +#define SV_SHOVEL 1 +#define SV_GNOMISH_SHOVEL 2 +#define SV_DWARVEN_SHOVEL 3 +#define SV_PICK 4 +#define SV_ORCISH_PICK 5 +#define SV_DWARVEN_PICK 6 +#define SV_MATTOCK 7 + +/* The "sval" values for TV_HAFTED */ +#define SV_CLUB 1 /* 1d4 */ +#define SV_WHIP 2 /* 1d6 */ +#define SV_QUARTERSTAFF 3 /* 1d9 */ +#define SV_NUNCHAKU 4 /* 2d3 */ +#define SV_MACE 5 /* 2d4 */ +#define SV_BALL_AND_CHAIN 6 /* 2d4 */ +#define SV_JO_STAFF 7 /* 1d7 */ +#define SV_WAR_HAMMER 8 /* 3d3 */ +#define SV_THREE_PIECE_ROD 11 /* 3d3 */ +#define SV_MORNING_STAR 12 /* 2d6 */ +#define SV_FLAIL 13 /* 2d6 */ +#define SV_BO_STAFF 14 /* 1d11 */ +#define SV_LEAD_FILLED_MACE 15 /* 3d4 */ +#define SV_TETSUBO 16 /* 2d7 */ +#define SV_TWO_HANDED_FLAIL 18 /* 3d6 */ +#define SV_GREAT_HAMMER 19 /* 4d6 */ +#define SV_MACE_OF_DISRUPTION 20 /* 5d8 */ +#define SV_WIZSTAFF 21 /* 1d2 */ +#define SV_GROND 50 /* 3d9 */ +#define SV_NAMAKE_HAMMER 63 /* 1d77 */ + +/* The "sval" values for TV_POLEARM */ +#define SV_HATCHET 1 /* 1d5 */ +#define SV_SPEAR 2 /* 1d6 */ +#define SV_SICKLE 3 /* 2d3 */ +#define SV_AWL_PIKE 4 /* 1d8 */ +#define SV_TRIDENT 5 /* 1d9 */ +#define SV_FAUCHARD 6 /* 1d10 */ +#define SV_BROAD_SPEAR 7 /* 1d9 */ +#define SV_PIKE 8 /* 2d5 */ +#define SV_NAGINATA 9 /* 2d6 */ +#define SV_BEAKED_AXE 10 /* 2d6 */ +#define SV_BROAD_AXE 11 /* 2d6 */ +#define SV_LUCERNE_HAMMER 12 /* 2d5 */ +#define SV_GLAIVE 13 /* 2d6 */ +#define SV_LAJATANG 14 /* 2d7 */ +#define SV_HALBERD 15 /* 3d4 */ +#define SV_GUISARME 16 /* 2d5 */ +#define SV_SCYTHE 17 /* 5d3 */ +#define SV_LANCE 20 /* 2d8 */ +#define SV_BATTLE_AXE 22 /* 2d8 */ +#define SV_GREAT_AXE 25 /* 4d4 */ +#define SV_TRIFURCATE_SPEAR 26 /* 2d9 */ +#define SV_LOCHABER_AXE 28 /* 3d8 */ +#define SV_HEAVY_LANCE 29 /* 4d8 */ +#define SV_SCYTHE_OF_SLICING 30 /* 8d4 */ +#define SV_TSURIZAO 40 /* 1d1 */ +#define SV_DEATH_SCYTHE 50 /* 10d10 */ + +/* The "sval" codes for TV_SWORD */ +#define SV_BROKEN_DAGGER 1 /* 1d1 */ +#define SV_BROKEN_SWORD 2 /* 1d2 */ +#define SV_DAGGER 4 /* 1d4 */ +#define SV_MAIN_GAUCHE 5 /* 1d5 */ +#define SV_TANTO 6 /* 1d5 */ +#define SV_RAPIER 7 /* 1d6 */ +#define SV_SMALL_SWORD 8 /* 1d6 */ +#define SV_BASILLARD 9 /* 1d8 */ +#define SV_SHORT_SWORD 10 /* 1d7 */ +#define SV_SABRE 11 /* 1d7 */ +#define SV_CUTLASS 12 /* 1d7 */ +#define SV_WAKIZASHI 13 /* 2d4 */ +#define SV_KHOPESH 14 /* 2d4 */ +#define SV_TULWAR 15 /* 2d4 */ +#define SV_BROAD_SWORD 16 /* 2d5 */ +#define SV_LONG_SWORD 17 /* 2d5 */ +#define SV_SCIMITAR 18 /* 2d5 */ +#define SV_NINJATO 19 /* 1d9 */ +#define SV_KATANA 20 /* 3d4 */ +#define SV_BASTARD_SWORD 21 /* 3d4 */ +#define SV_GREAT_SCIMITAR 22 /* 4d5 */ +#define SV_CLAYMORE 23 /* 2d8 */ +#define SV_ESPADON 24 /* 2d9 */ +#define SV_TWO_HANDED_SWORD 25 /* 3d6 */ +#define SV_FLAMBERGE 26 /* 3d7 */ +#define SV_NO_DACHI 27 /* 5d4 */ +#define SV_EXECUTIONERS_SWORD 28 /* 4d5 */ +#define SV_ZWEIHANDER 29 /* 4d6 */ +#define SV_BLADE_OF_CHAOS 30 /* 6d5 */ +#define SV_DIAMOND_EDGE 31 /* 7d5 */ +#define SV_DOKUBARI 32 /* 1d1 */ +#define SV_HAYABUSA 33 /* 1d6 */ + +/* The "sval" codes for TV_SHIELD */ +#define SV_SMALL_LEATHER_SHIELD 2 +#define SV_SMALL_METAL_SHIELD 3 +#define SV_LARGE_LEATHER_SHIELD 4 +#define SV_LARGE_METAL_SHIELD 5 +#define SV_DRAGON_SHIELD 6 +#define SV_KNIGHT_SHIELD 7 +#define SV_MIRROR_SHIELD 10 +#define SV_YATA_MIRROR 50 + +/* The "sval" codes for TV_HELM */ +#define SV_HARD_LEATHER_CAP 2 +#define SV_METAL_CAP 3 +#define SV_JINGASA 4 /* 4 */ +#define SV_IRON_HELM 5 +#define SV_STEEL_HELM 6 +#define SV_DRAGON_HELM 7 +#define SV_KABUTO 8 /* 7 */ + +/* The "sval" codes for TV_CROWN */ +#define SV_IRON_CROWN 10 +#define SV_GOLDEN_CROWN 11 +#define SV_JEWELED_CROWN 12 +#define SV_CHAOS 50 + +/* The "sval" codes for TV_BOOTS */ +#define SV_PAIR_OF_SOFT_LEATHER_BOOTS 2 +#define SV_PAIR_OF_HARD_LEATHER_BOOTS 3 +#define SV_PAIR_OF_DRAGON_GREAVE 4 +#define SV_PAIR_OF_METAL_SHOD_BOOTS 6 + +/* The "sval" codes for TV_CLOAK */ +#define SV_CLOAK 1 +#define SV_ELVEN_CLOAK 2 +#define SV_FUR_CLOAK 3 +#define SV_ETHEREAL_CLOAK 5 +#define SV_SHADOW_CLOAK 6 + +/* The "sval" codes for TV_GLOVES */ +#define SV_SET_OF_LEATHER_GLOVES 1 +#define SV_SET_OF_GAUNTLETS 2 +#define SV_SET_OF_DRAGON_GLOVES 3 +#define SV_SET_OF_CESTI 5 + +/* The "sval" codes for TV_SOFT_ARMOR */ +#define SV_T_SHIRT 0 +#define SV_FILTHY_RAG 1 +#define SV_ROBE 2 +#define SV_PAPER_ARMOR 3 /* 4 */ +#define SV_SOFT_LEATHER_ARMOR 4 +#define SV_SOFT_STUDDED_LEATHER 5 +#define SV_HARD_LEATHER_ARMOR 6 +#define SV_HARD_STUDDED_LEATHER 7 +#define SV_RHINO_HIDE_ARMOR 8 +#define SV_CORD_ARMOR 9 /* 6 */ +#define SV_PADDED_ARMOR 10 /* 4 */ +#define SV_LEATHER_SCALE_MAIL 11 +#define SV_LEATHER_JACK 12 +#define SV_KUROSHOUZOKU 13 +#define SV_STONE_AND_HIDE_ARMOR 15 /* 15 */ +#define SV_ABUNAI_MIZUGI 50 +#define SV_YOIYAMI_ROBE 60 +#define SV_NAMAKE_ARMOR 63 + +/* The "sval" codes for TV_HARD_ARMOR */ +#define SV_RUSTY_CHAIN_MAIL 1 /* 14- */ +#define SV_RING_MAIL 2 /* 12 */ +#define SV_METAL_SCALE_MAIL 3 /* 13 */ +#define SV_CHAIN_MAIL 4 /* 14 */ +#define SV_DOUBLE_RING_MAIL 5 /* 15 */ +#define SV_AUGMENTED_CHAIN_MAIL 6 /* 16 */ +#define SV_DOUBLE_CHAIN_MAIL 7 /* 16 */ +#define SV_BAR_CHAIN_MAIL 8 /* 18 */ +#define SV_METAL_BRIGANDINE_ARMOUR 9 /* 19 */ +#define SV_SPLINT_MAIL 10 /* 19 */ +#define SV_DO_MARU 11 /* 20 */ +#define SV_PARTIAL_PLATE_ARMOUR 12 /* 22 */ +#define SV_METAL_LAMELLAR_ARMOUR 13 /* 23 */ +#define SV_HARAMAKIDO 14 /* 17 */ +#define SV_FULL_PLATE_ARMOUR 15 /* 25 */ +#define SV_O_YOROI 16 /* 24 */ +#define SV_RIBBED_PLATE_ARMOUR 18 /* 28 */ +#define SV_MITHRIL_CHAIN_MAIL 20 /* 28+ */ +#define SV_MITHRIL_PLATE_MAIL 25 /* 35+ */ +#define SV_ADAMANTITE_PLATE_MAIL 30 /* 40+ */ + +/* The "sval" codes for TV_DRAG_ARMOR */ +#define SV_DRAGON_BLACK 1 +#define SV_DRAGON_BLUE 2 +#define SV_DRAGON_WHITE 3 +#define SV_DRAGON_RED 4 +#define SV_DRAGON_GREEN 5 +#define SV_DRAGON_MULTIHUED 6 +#define SV_DRAGON_SHINING 10 +#define SV_DRAGON_LAW 12 +#define SV_DRAGON_BRONZE 14 +#define SV_DRAGON_GOLD 16 +#define SV_DRAGON_CHAOS 18 +#define SV_DRAGON_BALANCE 20 +#define SV_DRAGON_POWER 30 + +/* The sval codes for TV_LITE */ +#define SV_LITE_TORCH 0 +#define SV_LITE_LANTERN 1 +#define SV_LITE_FEANOR 2 +#define SV_LITE_EDISON 3 +#define SV_LITE_GALADRIEL 4 +#define SV_LITE_ELENDIL 5 +#define SV_LITE_JUDGE 6 +#define SV_LITE_LORE 7 +#define SV_LITE_PALANTIR 8 +#define SV_LITE_FLY_STONE 9 + +/* The "sval" codes for TV_AMULET */ +#define SV_AMULET_DOOM 0 +#define SV_AMULET_TELEPORT 1 +#define SV_AMULET_ADORNMENT 2 +#define SV_AMULET_SLOW_DIGEST 3 +#define SV_AMULET_RESIST_ACID 4 +#define SV_AMULET_SEARCHING 5 +#define SV_AMULET_BRILLIANCE 6 +#define SV_AMULET_CHARISMA 7 +#define SV_AMULET_THE_MAGI 8 +#define SV_AMULET_REFLECTION 9 +#define SV_AMULET_CARLAMMAS 10 +#define SV_AMULET_INGWE 11 +#define SV_AMULET_DWARVES 12 +#define SV_AMULET_NO_MAGIC 13 +#define SV_AMULET_NO_TELE 14 +#define SV_AMULET_RESISTANCE 15 +#define SV_AMULET_TELEPATHY 16 +#define SV_AMULET_FARAMIR 17 +#define SV_AMULET_BOROMIR 18 +#define SV_AMULET_MAGATAMA 19 +#define SV_AMULET_INROU 20 +#define SV_AMULET_INTELLIGENCE 21 +#define SV_AMULET_WISDOM 22 +#define SV_AMULET_MAGIC_MASTERY 23 +#define SV_AMULET_NIGHT 24 + +/* The sval codes for TV_RING */ +#define SV_RING_WOE 0 +#define SV_RING_AGGRAVATION 1 +#define SV_RING_WEAKNESS 2 +#define SV_RING_STUPIDITY 3 +#define SV_RING_TELEPORTATION 4 +#define SV_RING_SLOW_DIGESTION 6 +#define SV_RING_LEVITATION_FALL 7 +#define SV_RING_RESIST_FIRE 8 +#define SV_RING_RESIST_COLD 9 +#define SV_RING_SUSTAIN_STR 10 +#define SV_RING_SUSTAIN_INT 11 +#define SV_RING_SUSTAIN_WIS 12 +#define SV_RING_SUSTAIN_CON 13 +#define SV_RING_SUSTAIN_DEX 14 +#define SV_RING_SUSTAIN_CHR 15 +#define SV_RING_PROTECTION 16 +#define SV_RING_ACID 17 +#define SV_RING_FLAMES 18 +#define SV_RING_ICE 19 +#define SV_RING_RESIST_POIS 20 +#define SV_RING_FREE_ACTION 21 +#define SV_RING_SEE_INVIS 22 +#define SV_RING_SEARCHING 23 +#define SV_RING_STR 24 +#define SV_RING_ELEC 25 +#define SV_RING_DEX 26 +#define SV_RING_CON 27 +#define SV_RING_ACCURACY 28 +#define SV_RING_DAMAGE 29 +#define SV_RING_SLAYING 30 +#define SV_RING_SPEED 31 +#define SV_RING_FRAKIR 32 +#define SV_RING_TULKAS 33 +#define SV_RING_NARYA 34 +#define SV_RING_NENYA 35 +#define SV_RING_VILYA 36 +#define SV_RING_POWER 37 +#define SV_RING_RES_FEAR 38 +#define SV_RING_RES_LD 39 +#define SV_RING_RES_NETHER 40 +#define SV_RING_RES_NEXUS 41 +#define SV_RING_RES_SOUND 42 +#define SV_RING_RES_CONFUSION 43 +#define SV_RING_RES_SHARDS 44 +#define SV_RING_RES_DISENCHANT 45 +#define SV_RING_RES_CHAOS 46 +#define SV_RING_RES_BLINDNESS 47 +#define SV_RING_LORDLY 48 +#define SV_RING_ATTACKS 49 +#define SV_RING_AHO 50 +#define SV_RING_SHOTS 51 +#define SV_RING_SUSTAIN 52 +#define SV_RING_DEC_MANA 53 +#define SV_RING_WARNING 54 +#define SV_RING_MUSCLE 55 + +#define SV_EXPRESS_CARD 0 + +/* The "sval" codes for TV_STAFF */ +#define SV_STAFF_DARKNESS 0 +#define SV_STAFF_SLOWNESS 1 +#define SV_STAFF_HASTE_MONSTERS 2 +#define SV_STAFF_SUMMONING 3 +#define SV_STAFF_TELEPORTATION 4 +#define SV_STAFF_IDENTIFY 5 +#define SV_STAFF_REMOVE_CURSE 6 +#define SV_STAFF_STARLITE 7 +#define SV_STAFF_LITE 8 +#define SV_STAFF_MAPPING 9 +#define SV_STAFF_DETECT_GOLD 10 +#define SV_STAFF_DETECT_ITEM 11 +#define SV_STAFF_DETECT_TRAP 12 +#define SV_STAFF_DETECT_DOOR 13 +#define SV_STAFF_DETECT_INVIS 14 +#define SV_STAFF_DETECT_EVIL 15 +#define SV_STAFF_CURE_LIGHT 16 +#define SV_STAFF_CURING 17 +#define SV_STAFF_HEALING 18 +#define SV_STAFF_THE_MAGI 19 +#define SV_STAFF_SLEEP_MONSTERS 20 +#define SV_STAFF_SLOW_MONSTERS 21 +#define SV_STAFF_SPEED 22 +#define SV_STAFF_PROBING 23 +#define SV_STAFF_DISPEL_EVIL 24 +#define SV_STAFF_POWER 25 +#define SV_STAFF_HOLINESS 26 +#define SV_STAFF_GENOCIDE 27 +#define SV_STAFF_EARTHQUAKES 28 +#define SV_STAFF_DESTRUCTION 29 +#define SV_STAFF_ANIMATE_DEAD 30 +#define SV_STAFF_MSTORM 31 +#define SV_STAFF_NOTHING 32 + + +/* The "sval" codes for TV_WAND */ +#define SV_WAND_HEAL_MONSTER 0 +#define SV_WAND_HASTE_MONSTER 1 +#define SV_WAND_CLONE_MONSTER 2 +#define SV_WAND_TELEPORT_AWAY 3 +#define SV_WAND_DISARMING 4 +#define SV_WAND_TRAP_DOOR_DEST 5 +#define SV_WAND_STONE_TO_MUD 6 +#define SV_WAND_LITE 7 +#define SV_WAND_SLEEP_MONSTER 8 +#define SV_WAND_SLOW_MONSTER 9 +#define SV_WAND_CONFUSE_MONSTER 10 +#define SV_WAND_FEAR_MONSTER 11 +#define SV_WAND_HYPODYNAMIA 12 +#define SV_WAND_POLYMORPH 13 +#define SV_WAND_STINKING_CLOUD 14 +#define SV_WAND_MAGIC_MISSILE 15 +#define SV_WAND_ACID_BOLT 16 +#define SV_WAND_CHARM_MONSTER 17 +#define SV_WAND_FIRE_BOLT 18 +#define SV_WAND_COLD_BOLT 19 +#define SV_WAND_ACID_BALL 20 +#define SV_WAND_ELEC_BALL 21 +#define SV_WAND_FIRE_BALL 22 +#define SV_WAND_COLD_BALL 23 +#define SV_WAND_WONDER 24 +#define SV_WAND_DISINTEGRATE 25 +#define SV_WAND_DRAGON_FIRE 26 +#define SV_WAND_DRAGON_COLD 27 +#define SV_WAND_DRAGON_BREATH 28 +#define SV_WAND_ROCKETS 29 +#define SV_WAND_STRIKING 30 +#define SV_WAND_GENOCIDE 31 + +/* The "sval" codes for TV_ROD */ +#define SV_ROD_DETECT_TRAP 0 +#define SV_ROD_DETECT_DOOR 1 +#define SV_ROD_IDENTIFY 2 +#define SV_ROD_RECALL 3 +#define SV_ROD_ILLUMINATION 4 +#define SV_ROD_MAPPING 5 +#define SV_ROD_DETECTION 6 +#define SV_ROD_PROBING 7 +#define SV_ROD_CURING 8 +#define SV_ROD_HEALING 9 +#define SV_ROD_RESTORATION 10 +#define SV_ROD_SPEED 11 +#define SV_ROD_PESTICIDE 12 +#define SV_ROD_TELEPORT_AWAY 13 +#define SV_ROD_DISARMING 14 +#define SV_ROD_LITE 15 +#define SV_ROD_SLEEP_MONSTER 16 +#define SV_ROD_SLOW_MONSTER 17 +#define SV_ROD_HYPODYNAMIA 18 +#define SV_ROD_POLYMORPH 19 +#define SV_ROD_ACID_BOLT 20 +#define SV_ROD_ELEC_BOLT 21 +#define SV_ROD_FIRE_BOLT 22 +#define SV_ROD_COLD_BOLT 23 +#define SV_ROD_ACID_BALL 24 +#define SV_ROD_ELEC_BALL 25 +#define SV_ROD_FIRE_BALL 26 +#define SV_ROD_COLD_BALL 27 +#define SV_ROD_HAVOC 28 +#define SV_ROD_STONE_TO_MUD 29 +#define SV_ROD_AGGRAVATE 30 + + +/* The "sval" codes for TV_SCROLL */ + +#define SV_SCROLL_DARKNESS 0 +#define SV_SCROLL_AGGRAVATE_MONSTER 1 +#define SV_SCROLL_CURSE_ARMOR 2 +#define SV_SCROLL_CURSE_WEAPON 3 +#define SV_SCROLL_SUMMON_MONSTER 4 +#define SV_SCROLL_SUMMON_UNDEAD 5 +#define SV_SCROLL_SUMMON_PET 6 +#define SV_SCROLL_TRAP_CREATION 7 +#define SV_SCROLL_PHASE_DOOR 8 +#define SV_SCROLL_TELEPORT 9 +#define SV_SCROLL_TELEPORT_LEVEL 10 +#define SV_SCROLL_WORD_OF_RECALL 11 +#define SV_SCROLL_IDENTIFY 12 +#define SV_SCROLL_STAR_IDENTIFY 13 +#define SV_SCROLL_REMOVE_CURSE 14 +#define SV_SCROLL_STAR_REMOVE_CURSE 15 +#define SV_SCROLL_ENCHANT_ARMOR 16 +#define SV_SCROLL_ENCHANT_WEAPON_TO_HIT 17 +#define SV_SCROLL_ENCHANT_WEAPON_TO_DAM 18 +/* xxx enchant missile? */ +#define SV_SCROLL_STAR_ENCHANT_ARMOR 20 +#define SV_SCROLL_STAR_ENCHANT_WEAPON 21 +#define SV_SCROLL_RECHARGING 22 +#define SV_SCROLL_MUNDANITY 23 +#define SV_SCROLL_LIGHT 24 +#define SV_SCROLL_MAPPING 25 +#define SV_SCROLL_DETECT_GOLD 26 +#define SV_SCROLL_DETECT_ITEM 27 +#define SV_SCROLL_DETECT_TRAP 28 +#define SV_SCROLL_DETECT_DOOR 29 +#define SV_SCROLL_DETECT_INVIS 30 +/* xxx (detect evil?) */ +#define SV_SCROLL_SATISFY_HUNGER 32 +#define SV_SCROLL_BLESSING 33 +#define SV_SCROLL_HOLY_CHANT 34 +#define SV_SCROLL_HOLY_PRAYER 35 +#define SV_SCROLL_MONSTER_CONFUSION 36 +#define SV_SCROLL_PROTECTION_FROM_EVIL 37 +#define SV_SCROLL_RUNE_OF_PROTECTION 38 +#define SV_SCROLL_TRAP_DOOR_DESTRUCTION 39 +/* xxx */ +#define SV_SCROLL_STAR_DESTRUCTION 41 +#define SV_SCROLL_DISPEL_UNDEAD 42 +#define SV_SCROLL_SPELL 43 +#define SV_SCROLL_GENOCIDE 44 +#define SV_SCROLL_MASS_GENOCIDE 45 +#define SV_SCROLL_ACQUIREMENT 46 +#define SV_SCROLL_STAR_ACQUIREMENT 47 +#define SV_SCROLL_FIRE 48 +#define SV_SCROLL_ICE 49 +#define SV_SCROLL_CHAOS 50 +#define SV_SCROLL_RUMOR 51 +#define SV_SCROLL_ARTIFACT 52 +#define SV_SCROLL_RESET_RECALL 53 +#define SV_SCROLL_SUMMON_KIN 54 +#define SV_SCROLL_AMUSEMENT 55 +#define SV_SCROLL_STAR_AMUSEMENT 56 + +/* The "sval" codes for TV_POTION */ +#define SV_POTION_WATER 0 +#define SV_POTION_APPLE_JUICE 1 +#define SV_POTION_SLIME_MOLD 2 +/* xxx (fixed color) */ +#define SV_POTION_SLOWNESS 4 +#define SV_POTION_SALT_WATER 5 +#define SV_POTION_POISON 6 +#define SV_POTION_BLINDNESS 7 +/* xxx */ +#define SV_POTION_BOOZE 9 +/* xxx */ +#define SV_POTION_SLEEP 11 +/* xxx */ +#define SV_POTION_LOSE_MEMORIES 13 +/* xxx */ +#define SV_POTION_RUINATION 15 +#define SV_POTION_DEC_STR 16 +#define SV_POTION_DEC_INT 17 +#define SV_POTION_DEC_WIS 18 +#define SV_POTION_DEC_DEX 19 +#define SV_POTION_DEC_CON 20 +#define SV_POTION_DEC_CHR 21 +#define SV_POTION_DETONATIONS 22 +#define SV_POTION_DEATH 23 +#define SV_POTION_INFRAVISION 24 +#define SV_POTION_DETECT_INVIS 25 +#define SV_POTION_SLOW_POISON 26 +#define SV_POTION_CURE_POISON 27 +#define SV_POTION_BOLDNESS 28 +#define SV_POTION_SPEED 29 +#define SV_POTION_RESIST_HEAT 30 +#define SV_POTION_RESIST_COLD 31 +#define SV_POTION_HEROISM 32 +#define SV_POTION_BESERK_STRENGTH 33 +#define SV_POTION_CURE_LIGHT 34 +#define SV_POTION_CURE_SERIOUS 35 +#define SV_POTION_CURE_CRITICAL 36 +#define SV_POTION_HEALING 37 +#define SV_POTION_STAR_HEALING 38 +#define SV_POTION_LIFE 39 +#define SV_POTION_RESTORE_MANA 40 +#define SV_POTION_RESTORE_EXP 41 +#define SV_POTION_RES_STR 42 +#define SV_POTION_RES_INT 43 +#define SV_POTION_RES_WIS 44 +#define SV_POTION_RES_DEX 45 +#define SV_POTION_RES_CON 46 +#define SV_POTION_RES_CHR 47 +#define SV_POTION_INC_STR 48 +#define SV_POTION_INC_INT 49 +#define SV_POTION_INC_WIS 50 +#define SV_POTION_INC_DEX 51 +#define SV_POTION_INC_CON 52 +#define SV_POTION_INC_CHR 53 +/* xxx */ +#define SV_POTION_AUGMENTATION 55 +#define SV_POTION_ENLIGHTENMENT 56 +#define SV_POTION_STAR_ENLIGHTENMENT 57 +#define SV_POTION_SELF_KNOWLEDGE 58 +#define SV_POTION_EXPERIENCE 59 +#define SV_POTION_RESISTANCE 60 +#define SV_POTION_CURING 61 +#define SV_POTION_INVULNERABILITY 62 +#define SV_POTION_NEW_LIFE 63 +#define SV_POTION_NEO_TSUYOSHI 64 +#define SV_POTION_TSUYOSHI 65 +#define SV_POTION_POLYMORPH 66 + +/* The "sval" codes for TV_FLASK */ +#define SV_FLASK_OIL 0 + +/* The "sval" codes for TV_FOOD */ +#define SV_FOOD_POISON 0 +#define SV_FOOD_BLINDNESS 1 +#define SV_FOOD_PARANOIA 2 +#define SV_FOOD_CONFUSION 3 +#define SV_FOOD_HALLUCINATION 4 +#define SV_FOOD_PARALYSIS 5 +#define SV_FOOD_WEAKNESS 6 +#define SV_FOOD_SICKNESS 7 +#define SV_FOOD_STUPIDITY 8 +#define SV_FOOD_NAIVETY 9 +#define SV_FOOD_UNHEALTH 10 +#define SV_FOOD_DISEASE 11 +#define SV_FOOD_CURE_POISON 12 +#define SV_FOOD_CURE_BLINDNESS 13 +#define SV_FOOD_CURE_PARANOIA 14 +#define SV_FOOD_CURE_CONFUSION 15 +#define SV_FOOD_CURE_SERIOUS 16 +#define SV_FOOD_RESTORE_STR 17 +#define SV_FOOD_RESTORE_CON 18 +#define SV_FOOD_RESTORING 19 +/* many missing mushrooms */ +#define SV_FOOD_BISCUIT 32 +#define SV_FOOD_JERKY 33 +#define SV_FOOD_RATION 35 +#define SV_FOOD_SLIME_MOLD 36 +#define SV_FOOD_WAYBREAD 37 +#define SV_FOOD_PINT_OF_ALE 38 +#define SV_FOOD_PINT_OF_WINE 39 + + +#define SV_ROD_MIN_DIRECTION 12 /*!< ‚±‚Ì’lˆÈ~‚̏¬€–ÚID‚ðŽ‚Á‚½ƒƒbƒh‚ÍŽg—pŽž‚Ƀ^[ƒQƒbƒg‚ð—v‹‚·‚é / Special "sval" limit -- first "aimed" rod */ + +#define SV_CHEST_MIN_LARGE 4 /*!< ‚±‚Ì’lˆÈ~‚̏¬€–ÚID‚ðŽ‚Á‚½” ‚Í‘åŒ^‚Ì” ‚Æ‚µ‚ăhƒƒbƒv”‚𑝂₷ / Special "sval" limit -- first "large" chest */ +#define SV_CHEST_KANDUME 50 /*!< ” ƒAƒCƒeƒ€‚̏¬€–ÚID: ‚¨‚à‚¿‚á‚̃Jƒ“ƒdƒ */ + +/* + * Special "sval" limit -- first "good" magic/prayer book + */ +#define SV_BOOK_MIN_GOOD 2 + -- 2.11.0