From ac2eb54d89703b1f536c3167aaafe8c24f786f23 Mon Sep 17 00:00:00 2001 From: jhaakma Date: Thu, 2 Dec 2021 02:12:24 +1300 Subject: [PATCH] Add compatibility with TR Publicans --- Data Files/MWSE/mods/mer/bardicInspiration/common.lua | 2 +- .../MWSE/mods/mer/bardicInspiration/data/staticData.lua | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Data Files/MWSE/mods/mer/bardicInspiration/common.lua b/Data Files/MWSE/mods/mer/bardicInspiration/common.lua index 4647def..bd6828f 100644 --- a/Data Files/MWSE/mods/mer/bardicInspiration/common.lua +++ b/Data Files/MWSE/mods/mer/bardicInspiration/common.lua @@ -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 diff --git a/Data Files/MWSE/mods/mer/bardicInspiration/data/staticData.lua b/Data Files/MWSE/mods/mer/bardicInspiration/data/staticData.lua index f1669ac..7e8f394 100644 --- a/Data Files/MWSE/mods/mer/bardicInspiration/data/staticData.lua +++ b/Data Files/MWSE/mods/mer/bardicInspiration/data/staticData.lua @@ -6,6 +6,7 @@ return { containerContents = { { item = "mer_lute", count = 1}, }, + --Lute id mapping lutes = { ["mer_lute"] = true, @@ -19,6 +20,11 @@ return { taverns = {}, knownSongs = {} }, + publicanClasses = { + publican = true, + t_sky_publican = true, + t_cyr_publican = true + }, bardTeachIntervalHours = 48, bardTeachSongPlayedMin = 1, difficulties = {