summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2009-06-09 19:22:07 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2009-06-09 19:22:07 +0000
commit71ba37e86b94376ca01be3decab6145766b04bf4 (patch)
tree53402ae2f291d71cf7dad436794d55fb79c3da51
parentc82f601c8053016ca0c1a3f19989b5a27880ef26 (diff)
downloadcrawl-ref-71ba37e86b94376ca01be3decab6145766b04bf4.tar.gz
crawl-ref-71ba37e86b94376ca01be3decab6145766b04bf4.zip
Don't make Artificers start out wielding a knife. Instead, if the player
picked an offensive wand, don't give them any weapon at all. (Otherwise, as before, they get a dagger.) git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/branches/stone_soup-0.5@9932 c06c8d41-db1a-0410-9941-cceddc491573
-rw-r--r--crawl-ref/source/newgame.cc24
1 files changed, 13 insertions, 11 deletions
diff --git a/crawl-ref/source/newgame.cc b/crawl-ref/source/newgame.cc
index a087f4b735..6ffd6d2bad 100644
--- a/crawl-ref/source/newgame.cc
+++ b/crawl-ref/source/newgame.cc
@@ -5646,30 +5646,32 @@ bool _give_items_skills()
break;
case JOB_ARTIFICER:
- // Equipment. Knife and armor or robe.
- _newgame_make_item(0, EQ_WEAPON, OBJ_WEAPONS, WPN_KNIFE);
+ // Equipment. Dagger, and armour or robe.
+ _newgame_make_item(0, EQ_WEAPON, OBJ_WEAPONS, WPN_DAGGER);
_newgame_make_item(1, EQ_BODY_ARMOUR, OBJ_ARMOUR,
ARM_LEATHER_ARMOUR, ARM_ROBE);
+
// Choice of lesser wands, 15 charges plus wand of random
// effects: confusion, enslavement, slowing, magic dart, frost,
// flame; OR a rod of striking, 8 charges and no random effects.
if (!_choose_wand())
return (false);
- // If a supporting wand was chosen, hand out a dagger instead of
- // the knife.
- if (you.inv[3].sub_type == WAND_CONFUSION
- || you.inv[3].sub_type == WAND_ENSLAVEMENT)
+ // 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)
{
- you.inv[0].sub_type = WPN_DAGGER;
+ _newgame_clear_item(0);
}
// Skills
- you.skills[SK_EVOCATIONS] = 4;
+ you.skills[SK_EVOCATIONS] = 4;
you.skills[SK_TRAPS_DOORS] = 3;
- you.skills[SK_DODGING] = 2;
- you.skills[SK_FIGHTING] = 1;
- you.skills[SK_STEALTH] = 1;
+ you.skills[SK_DODGING] = 2;
+ you.skills[SK_FIGHTING] = 1;
+ you.skills[SK_STEALTH] = 1;
break;
default: