Commit 99eef59b authored by mercury233's avatar mercury233

add RuleCode & workaround

parent 04ad3005
Pipeline #43810 passed with stages
in 39 minutes and 2 seconds
...@@ -226,6 +226,7 @@ namespace Percy ...@@ -226,6 +226,7 @@ namespace Percy
public int LScale; public int LScale;
public int RScale; public int RScale;
public int LinkMarker; public int LinkMarker;
public int RuleCode;
} }
public struct ScriptData public struct ScriptData
......
...@@ -122,6 +122,7 @@ public class PrecyOcg ...@@ -122,6 +122,7 @@ public class PrecyOcg
retuvalue.Setcode = card.Setcode; retuvalue.Setcode = card.Setcode;
retuvalue.Type = card.Type; retuvalue.Type = card.Type;
retuvalue.LinkMarker = card.LinkMarker; retuvalue.LinkMarker = card.LinkMarker;
retuvalue.RuleCode = card.RuleCode;
return retuvalue; return retuvalue;
} }
......
...@@ -9,6 +9,7 @@ namespace YGOSharp ...@@ -9,6 +9,7 @@ namespace YGOSharp
public int Id; public int Id;
public int Ot; public int Ot;
public int Alias; public int Alias;
public int RuleCode;
public ulong Setcode; public ulong Setcode;
public int Type; public int Type;
...@@ -43,6 +44,7 @@ namespace YGOSharp ...@@ -43,6 +44,7 @@ namespace YGOSharp
r.Id = Id; r.Id = Id;
r.Ot = Ot; r.Ot = Ot;
r.Alias = Alias; r.Alias = Alias;
r.RuleCode = RuleCode;
r.Setcode = Setcode; r.Setcode = Setcode;
r.Type = Type; r.Type = Type;
r.Level = Level; r.Level = Level;
...@@ -71,6 +73,7 @@ namespace YGOSharp ...@@ -71,6 +73,7 @@ namespace YGOSharp
r.Id = Id; r.Id = Id;
r.Ot = Ot; r.Ot = Ot;
r.Alias = Alias; r.Alias = Alias;
r.RuleCode = RuleCode;
r.Setcode = Setcode; r.Setcode = Setcode;
r.Type = Type; r.Type = Type;
r.Level = Level; r.Level = Level;
...@@ -138,6 +141,12 @@ namespace YGOSharp ...@@ -138,6 +141,12 @@ namespace YGOSharp
{ {
this.Str[ii] = reader.GetString(14 + ii); this.Str[ii] = reader.GetString(14 + ii);
} }
// temp
if (this.Id == 6218705)
{
this.RuleCode = 13331639;
this.Alias = 13331639;
}
} }
public Card() public Card()
......
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