hunters start with javelins.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1879 c06c8d41-db1a-0410-9941-cceddc491573
3NIWNYMNSQZEEXZLEQADAAB3D7GLO5FIH64U5P5YQUVIV5MOURCAC
you.inv[4].quantity = 1;
you.inv[4].base_type = OBJ_ARMOUR;
you.inv[4].sub_type = ARM_LEATHER_ARMOUR;
you.inv[4].plus = 0;
you.inv[4].special = 0;
you.inv[2].quantity = 1;
you.inv[2].base_type = OBJ_ARMOUR;
you.inv[2].sub_type = ARM_LEATHER_ARMOUR;
you.inv[2].plus = 0;
you.inv[2].special = 0;
if (you.species != SP_MERFOLK)
if (you.species == SP_MERFOLK)
// Merfolk are spear hunters -- clobber bow, give six javelins
{
you.inv[1].quantity = 6;
you.inv[1].base_type = OBJ_MISSILES;
you.inv[1].sub_type = MI_JAVELIN;
you.inv[1].plus = 0;
you.inv[1].plus2 = 0;
you.inv[1].special = 0;
}
else
you.inv[2].quantity = 15 + random2avg(21, 5);
you.inv[2].base_type = OBJ_MISSILES;
you.inv[2].sub_type = MI_ARROW;
you.inv[2].plus = 0;
you.inv[2].plus2 = 0;
you.inv[2].special = 0;
you.inv[3].quantity = 15 + random2avg(21, 5);
you.inv[3].base_type = OBJ_MISSILES;
you.inv[3].sub_type = MI_ARROW;
you.inv[3].plus = 0;
you.inv[3].plus2 = 0;
you.inv[3].special = 0;
}
else
{
// Merfolk are spear hunters -- clobber bow, give three spears
for (unsigned char i = 1; i <= 3; i++)
{
you.inv[i].quantity = 1;
you.inv[i].base_type = OBJ_WEAPONS;
you.inv[i].sub_type = WPN_SPEAR;
you.inv[i].plus = 0;
you.inv[i].plus2 = 0;
you.inv[i].special = 0;
}