diff options
Diffstat (limited to 'util/generate_gamedata.rb')
-rw-r--r-- | util/generate_gamedata.rb | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/util/generate_gamedata.rb b/util/generate_gamedata.rb index 7f4216f..5940480 100644 --- a/util/generate_gamedata.rb +++ b/util/generate_gamedata.rb | |||
@@ -22,7 +22,13 @@ end.map do |panel| | |||
22 | ret["link"] = "\"#{panel["link"]}\"" | 22 | ret["link"] = "\"#{panel["link"]}\"" |
23 | end | 23 | end |
24 | if panel.include? "copy_to_sign" | 24 | if panel.include? "copy_to_sign" |
25 | ret["copy_to_sign"] = "\"#{panel["copy_to_sign"]}\"" | 25 | copytos = [] |
26 | if panel["copy_to_sign"].kind_of? String | ||
27 | copytos = [panel["copy_to_sign"]] | ||
28 | else | ||
29 | copytos = panel["copy_to_sign"] | ||
30 | end | ||
31 | ret["copy_to_sign"] = "[\"" + copytos.join("\",\"") + "\"]" | ||
26 | end | 32 | end |
27 | ret | 33 | ret |
28 | end.map do |panel| | 34 | end.map do |panel| |