diff options
author | Haran Pilpel <haranp@users.sourceforge.net> | 2010-01-03 23:26:23 +0200 |
---|---|---|
committer | Haran Pilpel <haranp@users.sourceforge.net> | 2010-01-03 23:26:23 +0200 |
commit | a549338acb9b85755c01065b3fb0e2198506e75a (patch) | |
tree | 4fa9c3beb52f13e8fdbaa03935f463273ae030e9 | |
parent | da5a6f678e819f92d5d3dc2f26e62de2006eadaf (diff) | |
download | crawl-ref-a549338acb9b85755c01065b3fb0e2198506e75a.tar.gz crawl-ref-a549338acb9b85755c01065b3fb0e2198506e75a.zip |
Issue 318: artificers with rods of striking should start out wielding them
(this is done regardless of M&F skill because they have no other weapon.)
-rw-r--r-- | crawl-ref/source/newgame.cc | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/crawl-ref/source/newgame.cc b/crawl-ref/source/newgame.cc index 38b601eb7b..cf51b30a1a 100644 --- a/crawl-ref/source/newgame.cc +++ b/crawl-ref/source/newgame.cc @@ -4646,9 +4646,17 @@ bool _give_items_skills() // If an offensive wand or the rod of striking was chosen, // don't hand out a weapon. - if (you.inv[3].base_type != OBJ_WANDS - || you.inv[3].sub_type != WAND_CONFUSION - && you.inv[3].sub_type != WAND_ENSLAVEMENT) + if (item_is_rod(you.inv[2])) + { + // If the rod of striking was chosen, put it in the first + // slot and wield it. + you.inv[0] = you.inv[2]; + you.equip[EQ_WEAPON] = 0; + _newgame_clear_item(2); + } + else if (you.inv[3].base_type != OBJ_WANDS + || you.inv[3].sub_type != WAND_CONFUSION + && you.inv[3].sub_type != WAND_ENSLAVEMENT) { _newgame_clear_item(0); } |