diff options
author | Adam Borowski <kilobyte@angband.pl> | 2009-11-20 00:52:16 +0100 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2009-11-20 00:54:27 +0100 |
commit | 8b5fc4449a2480470ff65f42bb883eed0a034386 (patch) | |
tree | b296060edacc14900da7956eb8e4106bd6f01584 /crawl-ref/source/itemprop.cc | |
parent | 2ad3fffbef12830121e827d20097f410ce88f907 (diff) | |
download | crawl-ref-8b5fc4449a2480470ff65f42bb883eed0a034386.tar.gz crawl-ref-8b5fc4449a2480470ff65f42bb883eed0a034386.zip |
Improve demon whips, just like regular ones were upgraded. Let people bless them.
Diffstat (limited to 'crawl-ref/source/itemprop.cc')
-rw-r--r-- | crawl-ref/source/itemprop.cc | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/crawl-ref/source/itemprop.cc b/crawl-ref/source/itemprop.cc index 095d19df50..1c249da23c 100644 --- a/crawl-ref/source/itemprop.cc +++ b/crawl-ref/source/itemprop.cc @@ -190,7 +190,10 @@ static weapon_def Weapon_prop[NUM_WEAPONS] = { WPN_MORNINGSTAR, "morningstar", 10, -1, 15, 140, 8, SK_MACES_FLAILS, HANDS_ONE, SIZE_MEDIUM, MI_NONE, false, DAMV_PIERCING | DAM_BLUDGEON, 10 }, - { WPN_DEMON_WHIP, "demon whip", 10, 1, 11, 30, 2, + { WPN_DEMON_WHIP, "demon whip", 12, 1, 11, 30, 2, + SK_MACES_FLAILS, HANDS_ONE, SIZE_MEDIUM, MI_NONE, false, + DAMV_SLASHING, 2 }, + { WPN_HOLY_SCOURGE, "holy scourge", 14, 0, 11, 30, 2, SK_MACES_FLAILS, HANDS_ONE, SIZE_MEDIUM, MI_NONE, false, DAMV_SLASHING, 2 }, { WPN_SPIKED_FLAIL, "spiked flail", 12, -2, 16, 190, 8, @@ -427,7 +430,7 @@ void init_properties() { // Compare with enum comments, to catch changes. COMPILE_CHECK(NUM_ARMOURS == 37, c1); - COMPILE_CHECK(NUM_WEAPONS == 55, c2); + COMPILE_CHECK(NUM_WEAPONS == 56, c2); COMPILE_CHECK(NUM_MISSILES == 9, c3); COMPILE_CHECK(NUM_FOODS == 22, c4); @@ -1325,6 +1328,7 @@ int weapon_rarity( int w_type ) case WPN_BLESSED_DOUBLE_SWORD: case WPN_BLESSED_GREAT_SWORD: case WPN_BLESSED_TRIPLE_SWORD: + case WPN_HOLY_SCOURGE: // Zero value weapons must be placed specially -- see make_item() {dlb} return (0); @@ -1510,6 +1514,7 @@ bool is_blessed_blade(const item_def &item) case WPN_BLESSED_DOUBLE_SWORD: case WPN_BLESSED_GREAT_SWORD: case WPN_BLESSED_TRIPLE_SWORD: + case WPN_HOLY_SCOURGE: return (true); default: @@ -1588,7 +1593,10 @@ bool convert2good(item_def &item, bool allow_blessed) break; case WPN_DEMON_WHIP: - item.sub_type = WPN_WHIP; + if (!allow_blessed) + item.sub_type = WPN_WHIP; + else + item.sub_type = WPN_HOLY_SCOURGE; break; case WPN_DEMON_TRIDENT: @@ -1643,6 +1651,10 @@ bool convert2bad(item_def &item) case WPN_BLESSED_TRIPLE_SWORD: item.sub_type = WPN_TRIPLE_SWORD; break; + + case WPN_HOLY_SCOURGE: + item.sub_type = WPN_DEMON_WHIP; + break; } return (true); |