Skip to content
Snippets Groups Projects
Commit a523066c authored by DarkGod's avatar DarkGod
Browse files

Fixed Hymns of Moonlight not working with Ranged Amplification Device (from Embers of Rage)

Fixed Swap Tinker option to not reset to enabled when the game restarts
parent 7ef39732
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -172,7 +172,7 @@ newTalent{
if self:getNegative() < t.getNegativeDrain(self, t) then return end
local tgts = {}
local grids = core.fov.circle_grids(self.x, self.y, 5, true)
local grids = core.fov.circle_grids(self.x, self.y, self:getTalentRange(t), true)
for x, yy in pairs(grids) do for y, _ in pairs(grids[x]) do
local a = game.level.map(x, y, Map.ACTOR)
if a and self:reactionToward(a) < 0 then
......
......@@ -538,7 +538,7 @@ function _M:generateListGameplay()
return tostring(config.settings.tome.tinker_auto_switch and "enabled" or "disabled")
end, fct=function(item)
config.settings.tome.tinker_auto_switch = not config.settings.tome.tinker_auto_switch
game:saveSettings("tome.tinker_auto_switch", ("tome.tinker_auto_switch = %s\n"):format(tostring(config.settings.tome.rest_before_explore)))
game:saveSettings("tome.tinker_auto_switch", ("tome.tinker_auto_switch = %s\n"):format(tostring(config.settings.tome.tinker_auto_switch)))
self.c_list:drawItem(item)
end,}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment