Fix key for entities
All checks were successful
forgejo/Czech Quests/addon/pipeline/head This commit looks good
All checks were successful
forgejo/Czech Quests/addon/pipeline/head This commit looks good
This commit is contained in:
parent
908f45eb9b
commit
f2d35d65d5
13 changed files with 3206 additions and 3200 deletions
|
@ -74,7 +74,7 @@ end
|
|||
|
||||
local function ColorSpellNames(text, color)
|
||||
return text:gsub("%[(.-)%]", function(match)
|
||||
return string.format("|c%s[%s]|r", color or "ffffffff", match)
|
||||
return string.format("|c%s[%s]|r", color or "FF0000FF", match)
|
||||
end)
|
||||
end
|
||||
|
||||
|
|
|
@ -79,13 +79,13 @@ local function ShowBookTranslation()
|
|||
local itemPageContentTranslation = CzechQuestsAddon:GetData("book", itemName .. '_page_' .. pageNum)
|
||||
if itemPageContentTranslation then
|
||||
frame:SetData(
|
||||
itemNameTranslation.title,
|
||||
itemPageContentTranslation.text,
|
||||
itemNameTranslation.m,
|
||||
addon.API.ResolveGender(itemPageContentTranslation),
|
||||
"",
|
||||
"",
|
||||
ItemTextFrame,
|
||||
-20,
|
||||
0
|
||||
5
|
||||
)
|
||||
end
|
||||
end
|
||||
|
|
|
@ -78,17 +78,20 @@ local function FillPlaceholders(text)
|
|||
end
|
||||
|
||||
local function GetQuestText(questTranslation, original)
|
||||
if questTranslation == nil then
|
||||
return nil
|
||||
end
|
||||
local translation = addon.API.ResolveGender(questTranslation)
|
||||
local paragraphs = addon.API.ParseParagraphs(original, translation)
|
||||
return FillPlaceholders(paragraphs)
|
||||
end
|
||||
|
||||
local function GetQuest(id)
|
||||
local questName = addon.data.quest[id .. '_name'];
|
||||
local questObjective = addon.data.quest[id .. '_objective'];
|
||||
local questDescription = addon.data.quest[id .. '_description'];
|
||||
local questProgress = addon.data.quest[id .. '_progress'];
|
||||
local questCompletion = addon.data.quest[id .. '_completion'];
|
||||
local questName = addon.data.quest['q' .. id .. '_name'];
|
||||
local questObjective = addon.data.quest['q' .. id .. '_objective'];
|
||||
local questDescription = addon.data.quest['q' .. id .. '_description'];
|
||||
local questProgress = addon.data.quest['q' .. id .. '_progress'];
|
||||
local questCompletion = addon.data.quest['q' .. id .. '_completion'];
|
||||
|
||||
if questName or questObjective or questDescription or questProgress or questCompletion then
|
||||
local description = ""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue