Skip to content

Commit

Permalink
Add compatibility with TR Publicans
Browse files Browse the repository at this point in the history
  • Loading branch information
jhaakma committed Dec 1, 2021
1 parent 2c598a8 commit ac2eb54
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Data Files/MWSE/mods/mer/bardicInspiration/common.lua
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ end

function this.isInnkeeper(ref)
local id = ref.baseObject.id:lower()
if (ref.object.class and ref.object.class.id == "Publican") or this.config.innkeepers[id] then
if (ref.object.class and this.staticData.publicanClasses[ref.object.class.id:lower()]) or this.config.innkeepers[id] then
return true
end
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ return {
containerContents = {
{ item = "mer_lute", count = 1},
},

--Lute id mapping
lutes = {
["mer_lute"] = true,
Expand All @@ -19,6 +20,11 @@ return {
taverns = {},
knownSongs = {}
},
publicanClasses = {
publican = true,
t_sky_publican = true,
t_cyr_publican = true
},
bardTeachIntervalHours = 48,
bardTeachSongPlayedMin = 1,
difficulties = {
Expand Down

0 comments on commit ac2eb54

Please sign in to comment.