Skip to content
Snippets Groups Projects
Commit 3de8dc84 authored by Sebastian Vråle's avatar Sebastian Vråle
Browse files

fix to use concatNice

parent 19c45b08
No related branches found
No related tags found
1 merge request!15Descriptions
......@@ -181,19 +181,11 @@ newInscription{
end,
info = function(self, t)
local data = self:getInscriptionData(t.short_name)
local what = table.keys(data.what)
local what_string = ""
if #what > 1 then
local first_effects = {}
for i=1, #what-1 do
table.insert(first_effects, what[i])
end
what_string = what_string .. table.concat(first_effects, ", ") .. " or " .. what[#what]
else
what_string = what[1]
end
local what = table.concatNice(table.keys(data.what), ", ", " or ")
return ([[Activate the infusion to cure yourself of one random %s effect and reduce all damage taken by %d%% for %d turns.
return ([[Activate the infusion to cure yourself of one random %s effect and reduce all damage taken by %d%% for %d turns.]]):format(what_string, data.power+data.inc_stat, data.dur)
Also removes cross-tier effects of the affected types for free.]]):format(what, data.power+data.inc_stat, data.dur)
end,
short_info = function(self, t)
local data = self:getInscriptionData(t.short_name)
......@@ -266,19 +258,11 @@ newInscription{
end,
info = function(self, t)
local data = self:getInscriptionData(t.short_name)
local what = table.keys(data.what)
local what_string = ""
if #what > 1 then
local first_effects = {}
for i=1, #what-1 do
table.insert(first_effects, what[i])
end
what_string = what_string .. table.concat(first_effects, ", ") .. " or " .. what[#what]
else
what_string = what[1]
end
local what = table.concatNice(table.keys(data.what), ", ", " or ")
return ([[Activate the infusion to cure yourself of one random %s effect and increase affinity for all damage by %d%% for %d turns.
return ([[Activate the infusion to cure yourself of one random %s effect and increase affinity for all damage by %d%% for %d turns.]]):format(what_string, data.power+data.inc_stat, data.dur)
Also removes cross-tier effects of the affected types for free.]]):format(what, data.power+data.inc_stat, data.dur)
end,
short_info = function(self, t)
local data = self:getInscriptionData(t.short_name)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment