Skip to content
This repository was archived by the owner on Jul 2, 2024. It is now read-only.

Commit

Permalink
Merge branch 'beta' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
Glazelf committed Jul 17, 2021
2 parents b7bb4b5 + 7fcb705 commit 84871a8
Show file tree
Hide file tree
Showing 9 changed files with 970 additions and 239 deletions.
2 changes: 1 addition & 1 deletion MonstieHuntieHax.Core/MonstieHuntieHax.Core.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net5.0-windows</TargetFramework>
<TargetFramework>net5.0-windows7.0</TargetFramework>
<!--<TargetFrameworks>net47;net5.0-windows</TargetFrameworks-->
</PropertyGroup>

Expand Down
49 changes: 46 additions & 3 deletions MonstieHuntieHax.Core/Structures/RAM/DataOffsets.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,57 @@
public static class DataOffsets
{
/// <summary>
/// Main game pointers for game version 1.0.3
/// Pointers for game version 1.0.3
/// </summary>
public const string PointerZeni = "[heap+40732670]"; // u32
public const string PointerBottleCaps = "[heap+407335FE]"; //u16
public const string PointerBottleCaps = "[heap+407335FE]"; // u16

/// <summary>
/// Distances
/// Pointers that should really be optimized out as to not need this many pointers (mostly items).
/// All items are u16, max 999
/// </summary>
// Other Items
public const string PointerDustOfLife = "[heap+407326A6]";
public const string PointerAncientPotion = "[heap+407326B6]";
public const string PointerHeartChurro = "[heap+407354E6]";
public const string PointerSurrogateGem = "[heap+407328EE]";
public const string PointerPowerPaintball = "[heap+40732B0E]";
public const string PointerSuperWhetstone = "[heap+407327EE]";
public const string PointerMegaBarrelBomb = "[heap+40732B16]";
public const string PointerWeaponSphereL = "[heap+4073550E]";
public const string PointerArmorSphereL = "[heap+407354F6]";

/// <summary>
/// Distances between offsets
/// </summary>
public const int DifferenceCharmGathering = 0x10;
public const int DifferenceCharms = 0x8;

/// <summary>
/// Altering Pointers
/// </summary>
// Charms
private static readonly int OffsetCharmTraining = 0x407333FE;
private static readonly int OffsetCharmGathering = OffsetCharmTraining + DifferenceCharmGathering;
private static readonly int OffsetCharmLucky = OffsetCharmGathering + DifferenceCharms * 1;
private static readonly int OffsetCharmFinding = OffsetCharmGathering + DifferenceCharms * 2;
private static readonly int OffsetCharmMounting = OffsetCharmGathering + DifferenceCharms * 3;
private static readonly int OffsetCharmSelling = OffsetCharmGathering + DifferenceCharms * 4;
private static readonly int OffsetCharmBuying = OffsetCharmGathering + DifferenceCharms * 5;
private static readonly int OffsetCharmAdamant = OffsetCharmGathering + DifferenceCharms * 6;
private static readonly int OffsetCharmMight = OffsetCharmGathering + DifferenceCharms * 7;
private static readonly int OffsetCharmRecovery = OffsetCharmGathering + DifferenceCharms * 8;

public static string PointerCharmTraining = $"[heap+{OffsetCharmTraining:X}]";
public static string PointerCharmGathering = $"[heap+{OffsetCharmGathering:X}]";
public static string PointerCharmLucky = $"[heap+{OffsetCharmLucky:X}]";
public static string PointerCharmFinding = $"[heap+{OffsetCharmFinding:X}]";
public static string PointerCharmMounting = $"[heap+{OffsetCharmMounting:X}]";
public static string PointerCharmSelling = $"[heap+{OffsetCharmSelling:X}]";
public static string PointerCharmBuying = $"[heap+{OffsetCharmBuying:X}]";
public static string PointerCharmAdamant = $"[heap+{OffsetCharmAdamant:X}]";
public static string PointerCharmMight = $"[heap+{OffsetCharmMight:X}]";
public static string PointerCharmRecovery = $"[heap+{OffsetCharmRecovery:X}]";


/// <summary>
Expand Down
29 changes: 1 addition & 28 deletions MonstieHuntieHax.Injection/MonstieHuntieHax.Injection.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net5.0-windows</TargetFramework>
<TargetFramework>net5.0-windows7.0</TargetFramework>
<!--<TargetFrameworks>net47;net5.0-windows</TargetFrameworks-->
</PropertyGroup>

Expand All @@ -18,37 +18,10 @@
<PackageReference Include="NETStandard.Library" Version="2.0.3" />
</ItemGroup>

<ItemGroup>
<Compile Update="Properties\Resources.Designer.cs">
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
<Compile Update="Properties\Settings.Designer.cs">
<DesignTimeSharedInput>True</DesignTimeSharedInput>
<AutoGen>True</AutoGen>
<DependentUpon>Settings.settings</DependentUpon>
</Compile>
</ItemGroup>

<ItemGroup>
<EmbeddedResource Update="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
</EmbeddedResource>
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'net5.0-windows'">
<PackageReference Include="System.Configuration.ConfigurationManager">
<Version>5.0.0</Version>
</PackageReference>
</ItemGroup>

<ItemGroup>
<None Update="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
</None>
</ItemGroup>

</Project>
63 changes: 0 additions & 63 deletions MonstieHuntieHax.Injection/Properties/Resources.Designer.cs

This file was deleted.

101 changes: 0 additions & 101 deletions MonstieHuntieHax.Injection/Properties/Resources.resx

This file was deleted.

26 changes: 0 additions & 26 deletions MonstieHuntieHax.Injection/Properties/Settings.Designer.cs

This file was deleted.

6 changes: 0 additions & 6 deletions MonstieHuntieHax.Injection/Properties/Settings.settings

This file was deleted.

Loading

0 comments on commit 84871a8

Please sign in to comment.