[Embers 1.0.2] Gun talents do not grant Shoot to Adventurers
Posted: Fri Mar 04, 2016 7:03 am
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".
Perhaps adding a new parameter to the relevant talent types (something like "can_shoot") and checking for that would work?
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".
This would not easily be updated to include guns, as the talents which use them do not all begin the same, as with 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
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