Page 1 of 1

[Embers 1.0.2] Gun talents do not grant Shoot to Adventurers

Posted: Fri Mar 04, 2016 7:03 am
by nsrr
As an Adventurer, learning gun talents will not grant the Shoot talent required to equip and use Steamguns.

It appears that currently Shoot is granted to Adventurers (or any actor that doesn't already know it) when they learn any talent in a tree that starts with "technique/archery".
-- If we learn an archery talent, also learn to shoot
if t.type[1]:find("^technique/archery") then
self:checkPool(t.id, self.T_SHOOT)
end
This would not easily be updated to include guns, as the talents which use them do not all begin the same, as with archery.
Perhaps adding a new parameter to the relevant talent types (something like "can_shoot") and checking for that would work?
if tt.can_shoot then
self:checkPool(t.id, self.T_SHOOT)
end