Commit 34a63bfa authored by mercury233's avatar mercury233

fix zero star

parent dd0c42bc
Pipeline #33081 passed with stages
in 9 minutes and 55 seconds
...@@ -282,7 +282,7 @@ namespace ImgGen ...@@ -282,7 +282,7 @@ namespace ImgGen
private void DrawStars(Graphics graphics, Data data) private void DrawStars(Graphics graphics, Data data)
{ {
if (!zeroStarCards.Contains(data.code)) if (!data.isType(Type.TYPE_LINK) && !zeroStarCards.Contains(data.code) && !zeroStarCards.Contains(data.alias))
{ {
int nStar; int nStar;
int level = data.level & 0xff; int level = data.level & 0xff;
...@@ -293,7 +293,7 @@ namespace ImgGen ...@@ -293,7 +293,7 @@ namespace ImgGen
graphics.DrawImage(bStar[1], (level==13 ? 27.5f : 41f) + (26.5f * nStar), 69, 28, 28); graphics.DrawImage(bStar[1], (level==13 ? 27.5f : 41f) + (26.5f * nStar), 69, 28, 28);
} }
} }
else if (!data.isType(Type.TYPE_LINK)) else
{ {
for (nStar = 0; nStar < level; nStar++) for (nStar = 0; nStar < level; nStar++)
{ {
......
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