Skip to content

Commit

Permalink
Version 2.4
Browse files Browse the repository at this point in the history
Fixed Corruption tracker not showing Energy Cells
  • Loading branch information
UltiNaruto committed Aug 14, 2021
1 parent 3eed38b commit a33a97c
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion MPItemTracker2/Forms/MainForm.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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>Exe</OutputType>
<TargetFramework>net4.8</TargetFramework>
<Configurations>Debug_Windows;Release_Windows;Debug_Linux;Release_Linux</Configurations>
<Version>2.3</Version>
<Version>2.4</Version>
<PackageId>MPItemTracker</PackageId>
<Authors>MPItemTracker</Authors>
<Company>MPItemTracker</Company>
Expand Down
8 changes: 6 additions & 2 deletions MPItemTracker2/Wrapper/Corruption/Corruption.cs
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ public override bool IsSwitchingState()

public override bool HasPickup(string pickup)
{
int i;
switch (pickup)
{
case "Energy Tanks":
Expand Down Expand Up @@ -250,9 +251,12 @@ public override bool HasPickup(string pickup)
return HaveCommandVisor;
case "XRay Visor":
return HaveXRayVisor;
case "Energy Cells":
for (i = 1; i <= 9; i++)
if (EnergyCells(i - 1))
return true;
return false;
default:
if (pickup.StartsWith("Energy Cell ", StringComparison.InvariantCulture))
return EnergyCells(Convert.ToInt32(pickup.Substring(12)) - 1);
return false;
}
}
Expand Down
2 changes: 1 addition & 1 deletion MPItemTracker2/Wrapper/Prime/MPT_MP1_NTSC_J.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ internal class MPT_MP1_NTSC_J : Prime
protected const long OFF_CGAMEGLOBALOBJECTS = 0x804DEF10;
protected const long OFF_CGAMESTATE = OFF_CGAMEGLOBALOBJECTS + 0x134;
protected const long OFF_CSTATEMANAGER = 0x804BF69C;
protected const long OFF_MORPHBALLBOMBS_COUNT = 0x804C0F20;
protected const long OFF_MORPHBALLBOMBS_COUNT = 0x804C11A0;

protected override long CPlayer
{
Expand Down
2 changes: 1 addition & 1 deletion MPItemTracker2/Wrapper/Prime/MPT_MP1_NTSC_U.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ internal class MPT_MP1_NTSC_U : Prime
protected const long OFF_CGAMEGLOBALOBJECTS = 0x804DEC90;
protected const long OFF_CGAMESTATE = OFF_CGAMEGLOBALOBJECTS + 0x134;
protected const long OFF_CSTATEMANAGER = 0x804BF41C;
protected const long OFF_MORPHBALLBOMBS_COUNT = 0x804C11A0;
protected const long OFF_MORPHBALLBOMBS_COUNT = 0x804C0F20;

protected override long CPlayer
{
Expand Down

0 comments on commit a33a97c

Please sign in to comment.