Code: Select all
copy = {
resolvers.genericlast(function(e) e.faction = "allied-kingdoms" end),
starting_zone = "blighted-ruins",
starting_level = 3, starting_level_force_down = true,
starting_quest = "start-undead",
undead = 1,
forbid_nature = 1,
inscription_restrictions = { ["inscriptions/runes"] = true, ["inscriptions/taints"] = true, },
resolvers.inscription("RUNE:_SHIELDING", {cooldown=14, dur=5, power=130}),
--resolvers.inscription("RUNE:_PHASE_DOOR", {cooldown=7, range=10, dur=5, power=15}),
resolvers.inscription("RUNE:_HEAT_BEAM", {cooldown=18, range=8, power=40}), -- yeek and undead starts are unfun to the point of absurdity
resolvers.inventory({id=true, transmo=false,
{type="scroll", subtype="rune", name="phase door rune", ego_chance=-1000, ego_chance=-1000}}), -- keep this in inventory incase people actually want it, can't add it baseline because some classes start with 3 inscribed
},
I tried to change just the faction with a ToME:load hook as here:
Code: Select all
class:bindHook('ToME:load', function(self, data)
local Birther = require 'engine.Birther'
local undeadrace = Birther:getBirthDescriptor('race', 'Undead')
undeadrace.copy.faction = resolvers.genericlast(function(e) e.faction = "allied-kingdoms" end)
end)
What is the way to change this so all Maj'Eyal Undead Players always start with Allied Kingdoms faction? Do I need to superload the undead.lua birther file instead?