Skip to content

Commit 7dbd22b

Browse files
committed
Add comments
1 parent 7877733 commit 7dbd22b

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/Patches/OtherPatches.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public static void Prefix(PlatformSpecificData __instance)
2222
public static class SystemInfo_deviceUniqueIdentifier_Getter
2323
{
2424
// Postfix patch of SystemInfo.deviceUniqueIdentifier Getter method
25-
// to hide the user's real unique deviceId by generating a random fake one
25+
// Made to hide the user's real unique deviceId by generating a random fake one
2626
public static void Postfix(ref string __result)
2727
{
2828
if (MalumMenu.spoofDeviceId.Value){

src/Patches/PlayerPhysicsPatches.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,15 @@ public static void Postfix(PlayerPhysics __instance)
4141
[HarmonyPatch(typeof(PlayerPhysics), nameof(PlayerPhysics.SetNormalizedVelocity))]
4242
public static class PlayerPhysics_SetNormalizedVelocity
4343
{
44+
// Prefix patch of PlayerPhysics.SetNormalizedVelocity to double the player's speed when the speedBoost cheat is enabled
4445
public static bool Prefix(PlayerPhysics __instance, Vector2 direction)
4546
{
4647
if (CheatToggles.speedBoost){
48+
49+
// Cheat multiplier
4750
float cheatSpeed = 2f;
4851

52+
// Actual speed of player (no hacks)
4953
float actualSpeed = PlayerControl.LocalPlayer.MyPhysics.Speed * PlayerControl.LocalPlayer.MyPhysics.SpeedMod;
5054

5155
PlayerControl.LocalPlayer.MyPhysics.body.velocity = direction * actualSpeed * cheatSpeed;

0 commit comments

Comments
 (0)