From a549338acb9b85755c01065b3fb0e2198506e75a Mon Sep 17 00:00:00 2001 From: Haran Pilpel Date: Sun, 3 Jan 2010 23:26:23 +0200 Subject: 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.) --- crawl-ref/source/newgame.cc | 14 +++++++++++--- 1 file 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); } -- cgit v1.2.3-54-g00ecf