From 2cbbec1b2a1acbed4db00a41a900e58cd0fbec9d Mon Sep 17 00:00:00 2001 From: dolorous Date: Thu, 22 Jan 2009 06:05:50 +0000 Subject: Various cleanups: 1. Move the blessed eudemon blade down in the weapon_type enum so that it's with the other blessed weapons, add a WPN_MAX_NONBLESSED parameter to indicate where the non-blessed weapons end, and make weapon mimics use it. Mimics can now no longer imitate blessed weapons, which makes them less of a giveaway, since only the blessed eudemon blade shows up normally, and it's normally colored yellow, neither of which are true for mimic versions. 2. Since all non-racial armors are in one contiguous block at the end of the armour_type enum, and since very little code depends on the armors' being in a particular order, add an ARM_MAX_RACIAL parameter to indicate where the potentially racial weapons end, and make set_equip_race() use it. Also, rearrange the armors a bit in the enum. 3. Since no code depends on the missiles' being in a particular order, move the non-racial missiles down to the end of the missile_type enum, add a MI_MAX_RACIAL parameter to indicate where the potentially racial missiles end, and make set_equip_race() use it. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8681 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/itemprop.h | 49 ++++++++++++++++++++++++--------------------- 1 file changed, 26 insertions(+), 23 deletions(-) (limited to 'crawl-ref/source/itemprop.h') diff --git a/crawl-ref/source/itemprop.h b/crawl-ref/source/itemprop.h index 8d8b2fe4dc..24b48f4a5b 100644 --- a/crawl-ref/source/itemprop.h +++ b/crawl-ref/source/itemprop.h @@ -24,31 +24,32 @@ enum armour_type ARM_SPLINT_MAIL, // 5 ARM_BANDED_MAIL, ARM_PLATE_MAIL, - ARM_SHIELD, ARM_CLOAK, - ARM_HELMET, // 10 ARM_CAP, - ARM_WIZARD_HAT, + ARM_WIZARD_HAT, // 10 + ARM_HELMET, ARM_GLOVES, ARM_BOOTS, - ARM_BUCKLER, // 15 + ARM_BUCKLER, + ARM_SHIELD, // 15 ARM_LARGE_SHIELD, - ARM_DRAGON_HIDE, - ARM_TROLL_HIDE, + ARM_MAX_RACIAL = ARM_LARGE_SHIELD, ARM_CRYSTAL_PLATE_MAIL, - ARM_DRAGON_ARMOUR, // 20 - ARM_TROLL_LEATHER_ARMOUR, + ARM_ANIMAL_SKIN, + ARM_TROLL_HIDE, + ARM_TROLL_LEATHER_ARMOUR, // 20 + ARM_DRAGON_HIDE, + ARM_DRAGON_ARMOUR, ARM_ICE_DRAGON_HIDE, ARM_ICE_DRAGON_ARMOUR, - ARM_STEAM_DRAGON_HIDE, - ARM_STEAM_DRAGON_ARMOUR, // 25 + ARM_STEAM_DRAGON_HIDE, // 25 + ARM_STEAM_DRAGON_ARMOUR, ARM_MOTTLED_DRAGON_HIDE, ARM_MOTTLED_DRAGON_ARMOUR, ARM_STORM_DRAGON_HIDE, - ARM_STORM_DRAGON_ARMOUR, - ARM_GOLD_DRAGON_HIDE, // 30 + ARM_STORM_DRAGON_ARMOUR, // 30 + ARM_GOLD_DRAGON_HIDE, ARM_GOLD_DRAGON_ARMOUR, - ARM_ANIMAL_SKIN, ARM_SWAMP_DRAGON_HIDE, ARM_SWAMP_DRAGON_ARMOUR, ARM_CENTAUR_BARDING, // 35 @@ -254,14 +255,15 @@ enum misc_item_type enum missile_type { - MI_STONE, // 0 + MI_DART, // 0 + MI_NEEDLE, MI_ARROW, MI_BOLT, - MI_DART, - MI_NEEDLE, - MI_LARGE_ROCK, // 5 - MI_SLING_BULLET, MI_JAVELIN, + MI_MAX_RACIAL = MI_JAVELIN, + MI_STONE, // 5 + MI_LARGE_ROCK, + MI_SLING_BULLET, MI_THROWING_NET, NUM_MISSILES, // 9 MI_NONE // was MI_EGGPLANT... used for launch type detection @@ -474,14 +476,15 @@ enum weapon_type WPN_KNIFE, WPN_BLOWGUN, WPN_FALCHION, - WPN_BLESSED_EUDEMON_BLADE, - WPN_LONGBOW, // 45 - WPN_LAJATANG, + WPN_LONGBOW, + WPN_LAJATANG, // 45 WPN_BARDICHE, + WPN_MAX_NONBLESSED = WPN_BARDICHE, WPN_BLESSED_FALCHION, WPN_BLESSED_LONG_SWORD, - WPN_BLESSED_SCIMITAR, // 50 - WPN_BLESSED_KATANA, + WPN_BLESSED_SCIMITAR, + WPN_BLESSED_KATANA, // 50 + WPN_BLESSED_EUDEMON_BLADE, WPN_BLESSED_DOUBLE_SWORD, WPN_BLESSED_GREAT_SWORD, WPN_BLESSED_TRIPLE_SWORD, -- cgit v1.2.3-54-g00ecf