Commit 78967768 authored by AntiMetaman's avatar AntiMetaman

Added Type5

We need this for monster that have 5 type lines like Beast / Tuner /
Synchro / Pedulum/ Effect. Without it, DEX will not read it properly.
parent 21fd4bbd
...@@ -42,6 +42,7 @@ public class MseMaker ...@@ -42,6 +42,7 @@ public class MseMaker
public const string TAG_TYPE3 = "type 3"; public const string TAG_TYPE3 = "type 3";
/// <summary>效果3</summary> /// <summary>效果3</summary>
public const string TAG_TYPE4 = "type 4"; public const string TAG_TYPE4 = "type 4";
public const string TAG_TYPE5 = "type 5";
public const string TAG_TEXT = "rule text"; public const string TAG_TEXT = "rule text";
public const string TAG_ATK = "attack"; public const string TAG_ATK = "attack";
public const string TAG_DEF = "defense"; public const string TAG_DEF = "defense";
...@@ -416,6 +417,7 @@ string getMonster(Card c, string img, bool isPendulum,CardPack cardpack=null,boo ...@@ -416,6 +417,7 @@ string getMonster(Card c, string img, bool isPendulum,CardPack cardpack=null,boo
sb.AppendLine(GetLine(TAG_TYPE2, cn2tw(types[1]))); sb.AppendLine(GetLine(TAG_TYPE2, cn2tw(types[1])));
sb.AppendLine(GetLine(TAG_TYPE3, cn2tw(types[2]))); sb.AppendLine(GetLine(TAG_TYPE3, cn2tw(types[2])));
sb.AppendLine(GetLine(TAG_TYPE4, cn2tw(types[3]))); sb.AppendLine(GetLine(TAG_TYPE4, cn2tw(types[3])));
sb.AppendLine(GetLine(TAG_TYPE5, cn2tw(types[4])));
if(cardpack!=null){ if(cardpack!=null){
sb.AppendLine(GetLine(TAG_NUMBER, cardpack.pack_id)); sb.AppendLine(GetLine(TAG_NUMBER, cardpack.pack_id));
if(rarity){ if(rarity){
...@@ -650,7 +652,8 @@ public Card ReadCard(string content, out string img) ...@@ -650,7 +652,8 @@ public Card ReadCard(string content, out string img)
c.type = GetCardType(GetValue(content, TAG_CARDTYPE), tmp, c.type = GetCardType(GetValue(content, TAG_CARDTYPE), tmp,
GetValue(content, TAG_TYPE2), GetValue(content, TAG_TYPE2),
GetValue(content, TAG_TYPE3), GetValue(content, TAG_TYPE3),
GetValue(content, TAG_TYPE4)); GetValue(content, TAG_TYPE4),
GetValue(content, TAG_TYPE5));
long t = GetSpellTrapType(GetValue(content, TAG_LEVEL)); long t = GetSpellTrapType(GetValue(content, TAG_LEVEL));
//不是魔法,陷阱卡片的星数 //不是魔法,陷阱卡片的星数
if (!(c.IsType(CardType.TYPE_SPELL) if (!(c.IsType(CardType.TYPE_SPELL)
......
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