diff options
author | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2006-12-04 21:24:33 +0000 |
---|---|---|
committer | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2006-12-04 21:24:33 +0000 |
commit | b69f4b3d80b1ec5b40c27aea393a072dde9551f3 (patch) | |
tree | 03728b16e3a91d13a6d292c59bcbc1e3c6b691e8 /crawl-ref/source/newgame.cc | |
parent | 5a4349f58cc28bbcae6cc6967a854d1f7041bbcf (diff) | |
download | crawl-ref-b69f4b3d80b1ec5b40c27aea393a072dde9551f3.tar.gz crawl-ref-b69f4b3d80b1ec5b40c27aea393a072dde9551f3.zip |
[1608520] No more special treatment for rods of striking.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@567 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/newgame.cc')
-rw-r--r-- | crawl-ref/source/newgame.cc | 29 |
1 files changed, 14 insertions, 15 deletions
diff --git a/crawl-ref/source/newgame.cc b/crawl-ref/source/newgame.cc index 5a1c97671c..7901f32611 100644 --- a/crawl-ref/source/newgame.cc +++ b/crawl-ref/source/newgame.cc @@ -2362,6 +2362,17 @@ static bool give_wanderer_weapon( int slot, int wpn_skill ) return (ret); } +static void make_rod(item_def &item, int rod_type) +{ + item.base_type = OBJ_STAVES; + item.sub_type = rod_type; + item.quantity = 1; + item.special = 0; + item.colour = BROWN; + + init_rod_mp(item); +} + // // The idea behind wanderers is a class that has various different // random skills that's a challenge to play... not a class that can @@ -4143,11 +4154,7 @@ void give_items_skills() you.inv[3].colour = LIGHTCYAN; if (you.species == SP_SPRIGGAN) - { - you.inv[0].base_type = OBJ_STAVES; - you.inv[0].sub_type = STAFF_STRIKING; - you.inv[0].colour = BROWN; - } + make_rod(you.inv[0], STAFF_STRIKING); break; case JOB_FIRE_ELEMENTALIST: @@ -4336,13 +4343,7 @@ void give_items_skills() if (you.species == SP_SPRIGGAN) { - you.inv[0].base_type = OBJ_STAVES; - you.inv[0].sub_type = STAFF_STRIKING; - you.inv[0].quantity = 1; - you.inv[0].plus = 0; - you.inv[0].plus2 = 0; - you.inv[0].special = 0; - you.inv[0].colour = BROWN; + make_rod(you.inv[0], STAFF_STRIKING); you.skills[SK_EVOCATIONS] = 2; you.skills[SK_FIGHTING] = 0; @@ -4360,9 +4361,7 @@ void give_items_skills() if (you.species == SP_SPRIGGAN) { - you.inv[0].base_type = OBJ_STAVES; - you.inv[0].sub_type = STAFF_STRIKING; - you.inv[0].colour = BROWN; + make_rod(you.inv[0], STAFF_STRIKING); you.skills[SK_EVOCATIONS] = 3; } |