GlitchyVirus wrote:-This is located in \data\birth\classes\rogue.lua of my add-on
-data is set to true in the init.lua
That… seems wrong. data/ in my experience is supposed to be used for stuff like definitions of
new talents and birth descriptors. I think the engine supports "superloading" a talent definition file by putting it in the right subdirectory under superload/data/talents/ (AFAICT, basically it loads your definition file after the module's definition file in the same context, so that you can modify previous definitions in place), which seems like what you're trying for here, but I don't know if that works the same way for birth descriptor definition files.
Myself, I've always done that sort of thing via hooks. See for instance my
Mindstar Mindslayer addon, which adds Mindstar Mastery to Mindslayers (hence the name). So you'd have something in hooks/load.lua like:
Code: Select all
class:bindHook('ToME:load', function(self, data)
local Birther = require 'engine.Birther'
local desc = Birther:getBirthDescriptor('subclass', 'Shadowblade')
desc.talents_types["cunning/poisons"] = { false, 0.3 }
end)
possibly modified as per nsrr's note above.