Skip to content

Commit

Permalink
Version 2.9.1
Browse files Browse the repository at this point in the history
Added Progressive Suit as alternative to Dark Suit/Light Suit being both displayed
Fixed the type of the application to be a Windows application instead of console application
  • Loading branch information
UltiNaruto committed May 9, 2024
1 parent c51f6e3 commit 1acc06c
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 3 deletions.
2 changes: 1 addition & 1 deletion MPItemTracker2/MPItemTracker2.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<OutputType>WinExe</OutputType>
<TargetFramework>net48</TargetFramework>
<Configurations>Debug_Windows;Release_Windows;Debug_Linux;Release_Linux</Configurations>
<Version>2.9</Version>
<Version>2.9.1</Version>
<PackageId>MPItemTracker</PackageId>
<Authors>MPItemTracker</Authors>
<Company>MPItemTracker</Company>
Expand Down
2 changes: 1 addition & 1 deletion MPItemTracker2/Wrapper/Dolphin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ internal static void DrawUpgradeIcon(Graphics g, Font _Font, String upgrade_titl
}
}

if (str != "x0" && str != "x1")
if (str != "x0" && str != "x1" && !upgrade_title.StartsWith("Progressive "))
{
str_width = (int)g.MeasureString(str, _Font).Width;
g.DrawString(str, _Font, Brushes.White, x + imgSize - str_width, y + imgSize);
Expand Down
20 changes: 19 additions & 1 deletion MPItemTracker2/Wrapper/Echoes/Echoes.cs
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,8 @@ public override bool HasPickup(string pickup)
return HaveDarkSuit;
case "Light Suit":
return HaveLightSuit;
case "Progressive Suit":
return HaveDarkBeam || HaveLightSuit;
case "Gravity Boost":
return HaveGravityBoost;
case "Scan Visor":
Expand Down Expand Up @@ -405,6 +407,12 @@ public override int GetPickupCount(string pickup)
return HaveDarkSuit ? 1 : 0;
case "Light Suit":
return HaveLightSuit ? 1 : 0;
case "Progressive Suit":
if (HaveLightSuit)
return 2;
if (HaveDarkSuit)
return 1;
return 0;
case "Gravity Boost":
return HaveGravityBoost ? 1 : 0;
case "Scan Visor":
Expand Down Expand Up @@ -516,7 +524,17 @@ public override Image GetIcon(string pickup)
{
try
{
return img[pickup];
switch (pickup)
{
case "Progressive Suit":
if (HaveLightSuit)
return img["Light Suit"];
if (HaveDarkSuit)
return img["Dark Suit"];
return null;
default:
return img[pickup];
}
}
catch
{
Expand Down

0 comments on commit 1acc06c

Please sign in to comment.