Commit 8155b0c6 authored by mercury233's avatar mercury233

fix no attribute card

parent cba51021
...@@ -352,14 +352,15 @@ namespace ImgGen ...@@ -352,14 +352,15 @@ namespace ImgGen
} }
} }
int nAttr; int nAttr = -1;
if (data.attribute == Attribute.ATTRIBUTE_EARTH) nAttr = 0; if (data.attribute == Attribute.ATTRIBUTE_EARTH) nAttr = 0;
else if (data.attribute == Attribute.ATTRIBUTE_WATER) nAttr = 1; else if (data.attribute == Attribute.ATTRIBUTE_WATER) nAttr = 1;
else if (data.attribute == Attribute.ATTRIBUTE_FIRE) nAttr = 2; else if (data.attribute == Attribute.ATTRIBUTE_FIRE) nAttr = 2;
else if (data.attribute == Attribute.ATTRIBUTE_WIND) nAttr = 3; else if (data.attribute == Attribute.ATTRIBUTE_WIND) nAttr = 3;
else if (data.attribute == Attribute.ATTRIBUTE_LIGHT) nAttr = 4; else if (data.attribute == Attribute.ATTRIBUTE_LIGHT) nAttr = 4;
else if (data.attribute == Attribute.ATTRIBUTE_DARK) nAttr = 5; else if (data.attribute == Attribute.ATTRIBUTE_DARK) nAttr = 5;
else nAttr = 6; else if (data.attribute == Attribute.ATTRIBUTE_DEVINE) nAttr = 6;
if (nAttr >= 0)
graphics.DrawImage(bAttributes[nAttr], 280, 22, 32, 32); graphics.DrawImage(bAttributes[nAttr], 280, 22, 32, 32);
if (data.attack >= 0) if (data.attack >= 0)
......
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