Skip to content

Commit

Permalink
Scale poison needles with throwing skill
Browse files Browse the repository at this point in the history
Instead of having poison needles do a fixed amount of poison, now the
amount of poison delivered scales heavily with Throwing skill and slightly
less heavily with launcher enchantment.

The practical impact of this is that poison needles are worse at very low
skill, break even at around 8 skill, and then are better at higher skill.
And also blowgun enchantment matters.
  • Loading branch information
cbuchananhowland committed Mar 27, 2016
1 parent a94d5ab commit 3ae59fa
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion crawl-ref/source/ranged_attack.cc
Original file line number Diff line number Diff line change
Expand Up @@ -580,7 +580,8 @@ bool ranged_attack::blowgun_check(special_missile_type type)

int ranged_attack::blowgun_duration_roll(special_missile_type type)
{
if (type == SPMSL_POISONED)
// Leaving monster poison the same by separating it from player poison
if (type == SPMSL_POISONED && attacker->is_monster())
return 6 + random2(8);

if (type == SPMSL_CURARE)
Expand Down Expand Up @@ -610,6 +611,8 @@ int ranged_attack::blowgun_duration_roll(special_missile_type type)
return 5 + random2(5);
}
}
else if (type == SPMSL_POISONED) // Player poison needles
return random2(3 + base_power * 2 + plus);
else
return 5 + random2(base_power + plus);
}
Expand Down

0 comments on commit 3ae59fa

Please sign in to comment.