From 693f7b37849f439f7910882aa07761d869100eda Mon Sep 17 00:00:00 2001
From: dg <dg@51575b47-30f0-44d4-a5cc-537603b46e54>
Date: Mon, 5 Dec 2011 15:46:37 +0000
Subject: [PATCH] plop

git-svn-id: http://svn.net-core.org/repos/t-engine4@4712 51575b47-30f0-44d4-a5cc-537603b46e54
---
 game/modules/tome/class/interface/PlayerDumpJSON.lua | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/game/modules/tome/class/interface/PlayerDumpJSON.lua b/game/modules/tome/class/interface/PlayerDumpJSON.lua
index 846e92315e..822a23903c 100644
--- a/game/modules/tome/class/interface/PlayerDumpJSON.lua
+++ b/game/modules/tome/class/interface/PlayerDumpJSON.lua
@@ -320,6 +320,15 @@ function _M:dumpToJSON(js)
 		dead = self.dead and "dead" or nil,
 		winner = self.winner and "winner" or nil,
 	}
+
+	local addons = {}
+	for name, add in pairs(game.__mod_info.addons) do
+		addons[#addons+1] = add.short_name
+	end
+	if #addons > 0 then
+		tags.addons = table.concat(addons, ',')
+	end
+
 	if self.has_custom_tile then
 		tags.tile = self.has_custom_tile
 		js:hiddenData("tile", self.has_custom_tile)
-- 
GitLab