Commit ae9feae3 authored by Peter Xin's avatar Peter Xin

Fix en-US

parent a5176d49
......@@ -72,6 +72,7 @@ module MSETranslator
word = word.delete "\r"
word = word.squeeze "\n"
word = word.gsub "。\n", "。"
word = word.gsub ".\n", "."
word
end
......@@ -87,9 +88,9 @@ module MSETranslator
word = reline word
words = word.split LanguageConstants.current.monster_effect_head
return ["", words[0]] if words.count <= 1
pendulum_effect = words[0].split(LanguageConstants.current.pendulum_effect_head).last
pendulum_effect = words[0].gsub(LanguageConstants.current.pendulum_effect_head, "").strip
pendulum_effect = "" if pendulum_effect == nil
return [pendulum_effect, words[words.length - 1]]
return [pendulum_effect, words[words.length - 1].strip]
end
def generate_mse(data, key = "")
......
......@@ -49,7 +49,7 @@ en-US:
- "Divine-Beast"
- "Creator God"
- "Wyrm"
pendulum_effect_head: !ruby/regexp /Pendulum Effect\n+?/
monster_effect_head: !ruby/regexp /(\n)?Monster Effect\n/
pendulum_effect_head: !ruby/regexp /Pendulum Scale\s?=\s?\d+?\n?\[\s?Pendulum Effect\s?\]\n?(\-n\/a\-)?/
monster_effect_head: !ruby/regexp /\n?(-+?\n+)?\n?\[\s?(Monster Effect|Flavor Text)\s?\]/
mse_language: en
mse_stylesheet: standard
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment