Skip to content
Snippets Groups Projects
Commit 1610e162 authored by dg's avatar dg
Browse files

fix

git-svn-id: http://svn.net-core.org/repos/t-engine4@3223 51575b47-30f0-44d4-a5cc-537603b46e54
parent c09398fc
No related branches found
No related tags found
No related merge requests found
......@@ -243,7 +243,7 @@ function _M:dumpToJSON(js)
local achs = js:newSection("achievements", "achievements", "pairs", "break")
for id, data in pairs(self.achievements or {}) do
local a = world:getAchievementFromId(id)
achs[#achs+1] = { [a.name] = {val=game.calendar:getTimeDate(data.turn, "%s %s %s year of Ascendancy at %02d:%02d"), tooltip=a.desc.."\nBy "..data.who} }
achs[#achs+1] = { [a.name] = {val=game.calendar:getTimeDate(data.turn, "%s %s %s year of Ascendancy at %02d:%02d"), tooltip=a.desc.."\nBy "..(data.who or "???")} }
end
table.sort(achs, function(a, b) local aname = next(a) local bname = next(b) return aname < bname end)
......
......@@ -93,7 +93,7 @@ local function createDarkTendrils(summoner, x, y, target, damage, duration, pinD
if hitTarget then
-- attack the target
game.logSeen(self, "The dark tendrils lash at %s.", target.name)
game.logSeen(self, "The dark tendrils lash at %s.", self.target.name)
-- pin target
self.target:setEffect(self.target.EFF_PINNED, self.pinDuration, {})
......
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