summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/ng-wanderer.cc
diff options
context:
space:
mode:
authorDavid Lawrence Ramsey <dolorous@users.sourceforge.net>2011-02-06 14:26:29 -0600
committerDavid Lawrence Ramsey <dolorous@users.sourceforge.net>2011-02-06 14:27:56 -0600
commite1c1cff9e60703c98b6c68eaa735c413544025a9 (patch)
tree64ed71f2843a6891559691d8768ae1730e502fb3 /crawl-ref/source/ng-wanderer.cc
parente7ce08aa0f6d746d62bcae614a821b9040e981a6 (diff)
downloadcrawl-ref-e1c1cff9e60703c98b6c68eaa735c413544025a9.tar.gz
crawl-ref-e1c1cff9e60703c98b6c68eaa735c413544025a9.zip
Let wanderers start with falchions, as they're now available starting weapons.
Diffstat (limited to 'crawl-ref/source/ng-wanderer.cc')
-rw-r--r--crawl-ref/source/ng-wanderer.cc16
1 files changed, 12 insertions, 4 deletions
diff --git a/crawl-ref/source/ng-wanderer.cc b/crawl-ref/source/ng-wanderer.cc
index 2e70809554..e42bb08e54 100644
--- a/crawl-ref/source/ng-wanderer.cc
+++ b/crawl-ref/source/ng-wanderer.cc
@@ -52,6 +52,10 @@ static bool _give_wanderer_weapon(int & slot, int wpn_skill, int plus)
you.inv[slot].sub_type = WPN_SHORT_SWORD;
break;
+ case SK_LONG_BLADES:
+ you.inv[slot].sub_type = WPN_FALCHION;
+ break;
+
case SK_MACES_FLAILS:
you.inv[slot].sub_type = WPN_MACE;
break;
@@ -213,7 +217,8 @@ static skill_type _wanderer_role_weapon_select(stat_type role)
int str_size = sizeof(str_weapons) / sizeof(skill_type);
const skill_type dex_weapons[] =
- { SK_SHORT_BLADES, SK_STAVES, SK_UNARMED_COMBAT, SK_POLEARMS };
+ { SK_SHORT_BLADES, SK_LONG_BLADES, SK_STAVES, SK_UNARMED_COMBAT,
+ SK_POLEARMS };
int dex_size = sizeof(dex_weapons) / sizeof(skill_type);
@@ -524,8 +529,8 @@ static void _wanderer_good_equipment(skill_type & skill, int & slot)
{
const skill_type combined_weapon_skills[] =
{ SK_AXES, SK_MACES_FLAILS, SK_BOWS, SK_CROSSBOWS,
- SK_SHORT_BLADES, SK_STAVES, SK_UNARMED_COMBAT, SK_POLEARMS };
-
+ SK_SHORT_BLADES, SK_LONG_BLADES, SK_STAVES, SK_UNARMED_COMBAT,
+ SK_POLEARMS };
int total_weapons = sizeof(combined_weapon_skills) / sizeof(skill_type);
@@ -556,6 +561,7 @@ static void _wanderer_good_equipment(skill_type & skill, int & slot)
case SK_THROWING:
case SK_STAVES:
case SK_SHORT_BLADES:
+ case SK_LONG_BLADES:
_give_wanderer_weapon(slot, skill, 3);
slot++;
break;
@@ -679,7 +685,8 @@ static void _wanderer_decent_equipment(skill_type & skill,
{
const skill_type combined_weapon_skills[] =
{ SK_AXES, SK_MACES_FLAILS, SK_BOWS, SK_CROSSBOWS,
- SK_SHORT_BLADES, SK_STAVES, SK_UNARMED_COMBAT, SK_POLEARMS };
+ SK_SHORT_BLADES, SK_LONG_BLADES, SK_STAVES, SK_UNARMED_COMBAT,
+ SK_POLEARMS };
int total_weapons = sizeof(combined_weapon_skills) / sizeof(skill_type);
@@ -738,6 +745,7 @@ static void _wanderer_decent_equipment(skill_type & skill,
case SK_THROWING:
case SK_STAVES:
case SK_SHORT_BLADES:
+ case SK_LONG_BLADES:
_give_wanderer_weapon(slot, skill, 0);
slot++;
break;