Line 38: |
Line 38: |
| | | |
| _simple_node_template = [[|style="text-align:center"|${node} | | _simple_node_template = [[|style="text-align:center"|${node} |
− | |colspan="3" style="text-align:center"|${en}<br><span lang="ja">${ja}</span>]], | + | |colspan="3" style="text-align:center"|<span lang="ja">${ja}</span><br>${en}]], |
| | | |
| _empty_node_en = 'Must be my imagination./No enemy spotted./Calm seas./Calm straits./Be alert./Peaceful seas.', | | _empty_node_en = 'Must be my imagination./No enemy spotted./Calm seas./Calm straits./Be alert./Peaceful seas.', |
Line 526: |
Line 526: |
| local nodeString = string.format("%s %s %s", world, map, node) | | local nodeString = string.format("%s %s %s", world, map, node) |
| local kind = values[2] == "select" and 2 or self._args.kind | | local kind = values[2] == "select" and 2 or self._args.kind |
− | local nodeText = mapNodeTranslations[nodeString] or mapNodeTranslations[kind] | + | local nodeText = mapNodeTranslations[kind] |
| + | local nodeFlavorText = mapNodeTranslations[nodeString] |
| + | local enText = nodeText and nodeText.en |
| + | local jaText = nodeText and nodeText.ja |
| + | if nodeFlavorText then |
| + | enText = enText and (enText .. '<br>' .. nodeFlavorText.en) or nodeFlavorText.en |
| + | jaText = jaText and (jaText .. '<br>' .. nodeFlavorText.ja) or nodeFlavorText.ja |
| + | end |
| if values[2] == "empty" then | | if values[2] == "empty" then |
| table.insert(self._rows, format{ | | table.insert(self._rows, format{ |
| self._simple_node_template, | | self._simple_node_template, |
| node = node, | | node = node, |
− | en = nodeText and nodeText.en or self._empty_node_en, | + | en = enText or self._empty_node_en, |
− | ja = nodeText and nodeText.ja or self._empty_node_ja, | + | ja = jaText or self._empty_node_ja, |
| }) | | }) |
| elseif values[2] == "select" then | | elseif values[2] == "select" then |
Line 538: |
Line 545: |
| self._simple_node_template, | | self._simple_node_template, |
| node = node, | | node = node, |
− | en = nodeText and nodeText.en or self._select_node_en, | + | en = enText or self._select_node_en, |
− | ja = nodeText and nodeText.ja or self._select_node_ja, | + | ja = jaText or self._select_node_ja, |
| }) | | }) |
| else | | else |