Commit 6e6e77f0 authored by 神楽坂玲奈's avatar 神楽坂玲奈

fix, not tested

parent 21e3c976
......@@ -30,7 +30,7 @@ module MSEConstants
FileConfigName = "Chinese-Simplified"
PathImage = "Images"
Head = "mse version: 0.3.8\r\ngame: yugioh\r\nstylesheet: standard\r\nset info:\r\n\tlanguage: %s\r\n\tedition: \r\n\tST mark is text: yes\r\n\tpendulum image is small: yes\r\n\thide gamecode: yes\r\n"
Head = "mse version: 0.3.8\ngame: yugioh\nstylesheet: standard\nset info:\n\tlanguage: %s\n\tedition: \n\tno corner: yes\tST mark is text: yes\n\tpendulum image is small: yes\n\thide gamecode: yes\n"
End = "version control:\n\ttype: none\napprentice code: "
Width = 319
......@@ -105,6 +105,7 @@ module MSEConstants
Synchro = "synchro monster"
Spell = "spell card"
Trap = "trap card"
Special = {10000001 => "obelisk", 10000011 => "ra", 10000021 => "slifer"}
end
SetFileName = "set"
......
......@@ -68,13 +68,7 @@ module MSETranslator
end
def reline(word)
word = word.gsub "\n\r", "\n"
word = word.gsub "\r\n", "\n"
word = word.gsub "\r", ""
word = word.gsub "\n\n", "\n"
# 这是特别处理。
word = word.gsub "。\n", "。" if Global.language == "jp"
word
word.delete "\r\n"
end
def generate_text(key, word)
......
......@@ -285,8 +285,10 @@ module YGOCoreJudgers
end
def get_cardtype_str(card)
if self.is_spell card
return MSEConstants::MSECardType::Spell
if MSEConstants::MSECardType::Special[self.get_id(card)]
return MSEConstants::MSECardType::Special[self.get_id(card)]
elsif self.is_spell card
return MSEConstants::MSECardType::Spell
elsif self.is_trap card
return MSEConstants::MSECardType::Trap
elsif self.is_monster card
......
......@@ -49,6 +49,6 @@ ja-JP:
- "幻神獣族"
- "創造神族"
- "幻竜族"
pendulum_effect_head: !ruby/regexp /【Pスケール:青(.*)/赤(.*)】(\n)?/
monster_effect_head: !ruby/regexp /(\n)?【モンスター効果】\n/
pendulum_effect_head: !ruby/regexp /【Pスケール:青(.*)/赤(.*)】/
monster_effect_head: !ruby/regexp /【モンスター効果】/
mse_language: jp
......@@ -49,6 +49,6 @@ zh-CN:
- "幻兽神族"
- "创世神族"
- "幻龙族"
pendulum_effect_head: !ruby/regexp /←\\d 【灵摆】 \\d→(\\n)?/
monster_effect_head: "\n【怪兽效果】\n"
pendulum_effect_head: !ruby/regexp /←\\d 【灵摆】 \\d→/
monster_effect_head: !ruby/regexp /【怪兽效果】|【怪兽简介】|【怪兽描述】/
mse_language: cn
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