For example, this is what I want the description to be for Shalore:
Code: Select all
desc = {
"Shaloren elves have close ties with the magic of the world, and produced in the past many great mages.",
"Yet they remain quiet and try to hide their magic from the world, for they remember too well the Spellblaze - and the Spellhunt that followed.",
"They possess the #GOLD#Grace of the Eternals#WHITE# talent which allows them a boost of speed every once in a while.",
"#GOLD#Stat modifiers:",
"#LIGHT_BLUE# * -2 Strength, +1 Dexterity, +0 Constitution",
"#LIGHT_BLUE# * +2 Magic, +3 Willpower, +1 Cunning",
"#GOLD#Life per level:#LIGHT_BLUE# 9",
"#GOLD#Experience penalty:#LIGHT_BLUE# 35%",
}
Code: Select all
desc = {
"Thaloren elves have spent most of the ages hidden within their forests, seldom leaving them.",
"The ages of the world passed by and yet they remained unchanged.",
"Their affinity for nature and their reclusion have made them great protectors of the natural order, often opposing their Shaloren cousins.",
"They possess the #GOLD#Wrath of the Woods#WHITE# talent, which allows them a boost to the damage both inflicted and resisted once in a while.",
"#GOLD#Stat modifiers:",
"#LIGHT_BLUE# * +2 Strength, +3 Dexterity, +1 Constitution",
"#LIGHT_BLUE# * -2 Magic, +1 Willpower, +0 Cunning",
"#GOLD#Life per level:#LIGHT_BLUE# 11",
"#GOLD#Experience penalty:#LIGHT_BLUE# 25%",
}
experience = 1.35,
or
experience = 1.25
respectively.
Based on my persistent dungeons addon that I made for Zizzo's T2 remake, my current hooks code is this:
Code: Select all
local Zone = require "engine.Zone" -> These need to
local GameOptions = require "mod.dialogs.GameOptions" -> be replaced
class:bindHook("TOME:load", function(self, data)
if type(config.settings.tome.xppenaltytweak) == 'nil' then
config.settings.tome.xppenaltytweak = true
end
Birther?:edit?Definition('/data-xppenaltytweak/elf.lua') etc.
end)