Various hook requests
Posted: Fri Jun 17, 2016 1:00 pm
And here I am, for another round of hook additions, these are all tested and working (and ripped off Fated) and could be really useful in general.
mod/dialogs/CharacterSheet.lua: 3 hooks here, the first one is for showing new stats in the character sheet, should be put at line 769
the second one is for showing new stats in the character dump, to be put at what's currently line 1456 (1458 after adding the hook above)
last one is for custom resources, also in the character dump, its place is at line 1548 (1552 after those 2 hooks have been added)
mod/dialogs/CharacterSheet.lua: 3 hooks here, the first one is for showing new stats in the character sheet, should be put at line 769
Code: Select all
local hd = {"CharacterSheet:drawDialog:Stats", print_stat = print_stat}
self:triggerHook(hd)
Code: Select all
local hd = {"CharacterSheet:dump:Stats", makelabel = makelabel, nl = nl, nnl = nnl}
self:triggerHook(hd)
Code: Select all
local hd = {"CharacterSheet:dump:Resources", makelabel = makelabel, nl = nl}
self:triggerHook(hd)