Commit 661eacf3 authored by keyongyu's avatar keyongyu

fix

parent a6e12f1a
...@@ -135,11 +135,9 @@ static string getMonster(Card c,string img,bool isPendulum) ...@@ -135,11 +135,9 @@ static string getMonster(Card c,string img,bool isPendulum)
} }
else else
sb.Replace("%desc%", MSEConvert.ReDesc(c.desc)); sb.Replace("%desc%", MSEConvert.ReDesc(c.desc));
if(!string.IsNullOrEmpty(race)) sb.Replace("%atk%", (c.atk<0)?"?":c.atk.ToString());
{ sb.Replace("%def%", (c.def<0)?"?":c.def.ToString());
sb.Replace("%atk%", (c.atk<0)?"?":c.atk.ToString());
sb.Replace("%def%", (c.def<0)?"?":c.def.ToString());
}
sb.Replace("%code%",c.id.ToString("00000000")); sb.Replace("%code%",c.id.ToString("00000000"));
return sb.ToString(); return sb.ToString();
} }
...@@ -150,7 +148,7 @@ static string getSpellTrap(Card c,string img,bool isSpell) ...@@ -150,7 +148,7 @@ static string getSpellTrap(Card c,string img,bool isSpell)
sb.Replace("%name%", MSE.reItalic(c.name)); sb.Replace("%name%", MSE.reItalic(c.name));
sb.Replace("%attribute%", isSpell?"spell":"trap"); sb.Replace("%attribute%", isSpell?"spell":"trap");
if(cfg.STisEn) if(cfg.STisEn)
sb.Replace("%level%", sb.Replace("%level%",
"["+ "["+
(isSpell?"Spell Card":"Trap Card") (isSpell?"Spell Card":"Trap Card")
+MSEConvert.GetST(c) +MSEConvert.GetST(c)
......
No preview for this file type
This diff is collapsed.
No preview for this file type
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