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

Where bugs go to lie down and rest

Moderator: Moderator

Post Reply
Message
Author
nsrr
Sher'Tul
Posts: 1126
Joined: Mon Sep 21, 2015 8:45 pm
Location: Middle of Nowhere

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

#1 Post 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

Post Reply