summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mon-gear.cc
diff options
context:
space:
mode:
authorDarshan Shaligram <dshaligram@users.sourceforge.net>2009-12-29 17:56:26 +0530
committerDarshan Shaligram <dshaligram@users.sourceforge.net>2009-12-29 17:56:38 +0530
commitcfdb6e14f51f38e104444acf22e17706fcda104d (patch)
treecc5b352f27be1e10bf258f72910ecbc8f9744bda /crawl-ref/source/mon-gear.cc
parentfe97e90bb05bca87d2df81bf3a2d7ded964fd42c (diff)
downloadcrawl-ref-cfdb6e14f51f38e104444acf22e17706fcda104d.tar.gz
crawl-ref-cfdb6e14f51f38e104444acf22e17706fcda104d.zip
Add merfolk javelineers to the Shoals, add descriptions for the three new merfolk types.
Diffstat (limited to 'crawl-ref/source/mon-gear.cc')
-rw-r--r--crawl-ref/source/mon-gear.cc49
1 files changed, 30 insertions, 19 deletions
diff --git a/crawl-ref/source/mon-gear.cc b/crawl-ref/source/mon-gear.cc
index a012972cc3..393d4680b7 100644
--- a/crawl-ref/source/mon-gear.cc
+++ b/crawl-ref/source/mon-gear.cc
@@ -412,14 +412,6 @@ static item_make_species_type _give_weapon(monsters *mon, int level,
item.sub_type = WPN_LONGBOW;
break;
- case MONS_MERFOLK_AQUAMANCER:
- item_race = MAKE_ITEM_NO_RACE;
- item.base_type = OBJ_WEAPONS;
- item.sub_type = WPN_SABRE;
- if (coinflip())
- level = MAKE_GOOD_ITEM;
- break;
-
case MONS_DEEP_ELF_ANNIHILATOR:
case MONS_DEEP_ELF_CONJURER:
case MONS_DEEP_ELF_DEATH_MAGE:
@@ -593,11 +585,8 @@ static item_make_species_type _give_weapon(monsters *mon, int level,
case MONS_MERFOLK_IMPALER:
item_race = MAKE_ITEM_NO_RACE;
item.base_type = OBJ_WEAPONS;
- // Weapon types are not strictly sorted by quality. This is intentional.
item.sub_type = random_choose_weighted(100, WPN_TRIDENT,
- 45, WPN_BARDICHE,
15, WPN_DEMON_TRIDENT,
- 15, WPN_HALBERD,
0);
if (coinflip())
level = MAKE_GOOD_ITEM;
@@ -611,6 +600,23 @@ static item_make_species_type _give_weapon(monsters *mon, int level,
}
break;
+
+ case MONS_MERFOLK_AQUAMANCER:
+ item_race = MAKE_ITEM_NO_RACE;
+ item.base_type = OBJ_WEAPONS;
+ item.sub_type = WPN_SABRE;
+ if (coinflip())
+ level = MAKE_GOOD_ITEM;
+ break;
+
+ case MONS_MERFOLK_JAVELINEER:
+ item_race = MAKE_ITEM_NO_RACE;
+ item.base_type = OBJ_WEAPONS;
+ item.sub_type = WPN_SPEAR;
+ if (!one_chance_in(3))
+ level = MAKE_GOOD_ITEM;
+ break;
+
case MONS_MERFOLK:
if (one_chance_in(3))
{
@@ -1057,14 +1063,13 @@ static void _give_ammo(monsters *mon, int level,
qty = random_range(4, 7);
break;
- case MONS_MERFOLK_IMPALER:
- // Gladiators rarely get javelins.
- if (one_chance_in(4))
- {
- weap_class = OBJ_MISSILES;
- weap_type = MI_JAVELIN;
- qty = random_range(3, 8, 2);
- }
+ case MONS_MERFOLK_JAVELINEER:
+ weap_class = OBJ_MISSILES;
+ weap_type = MI_JAVELIN;
+ item_race = MAKE_ITEM_NO_RACE;
+ qty = random_range(9, 23, 2);
+ if (one_chance_in(3))
+ level = MAKE_GOOD_ITEM;
break;
case MONS_MERFOLK:
@@ -1391,6 +1396,12 @@ void give_armour(monsters *mon, int level)
0);
break;
+ case MONS_MERFOLK_JAVELINEER:
+ item_race = MAKE_ITEM_NO_RACE;
+ item.base_type = OBJ_ARMOUR;
+ item.sub_type = ARM_LEATHER_ARMOUR;
+ break;
+
case MONS_ANGEL:
case MONS_SIGMUND:
case MONS_WIGHT: