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
|
@ -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