Skip to content

Commit

Permalink
V62 Patch
Browse files Browse the repository at this point in the history
  • Loading branch information
DaXcess committed Aug 20, 2024
1 parent 888848a commit df08604
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 27 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# 1.3.1

## V60! <sub><sup><sub><sup><sub><sup><sub>v61
## V60! <sub><sup><sub><sup><sub><sup><sub>v62

V60 released barely a single week after me releasing v1.3.0. Very cool!

Anyways here's the update go boil the creatures or something.

**Additions**:

- Added V61 support
- Added V62 support
- Added VR support for the V60 cutscene
- Added Pitch Locked Canvas (enabled by default) for a more pleasant UI experience
- Added VR interactions to the elevator
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ Here is a list of LCVR versions and which version(s) of Lethal Company it suppor

| LCVR | Lethal Company |
|-------------------|-------------------|
| v1.3.1 *(BETA)* | V61 |
| v1.3.1 *(BETA)* | V62 |
| v1.3.0 *(LATEST)* | V56 |
| v1.2.5 | V50 |
| v1.2.4 | V50 |
Expand Down
23 changes: 0 additions & 23 deletions Source/Patches/ItemPatches.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,27 +59,4 @@ private static void LateUpdatePostfix(GrabbableObject __instance, bool __runOrig
if (!__runOriginal && __instance.radarIcon != null)
__instance.radarIcon.position = __instance.transform.position;
}

/// <summary>
/// Prevent the spray paint item from calling "DiscardItem" too early
/// </summary>
[HarmonyPatch(typeof(SprayPaintItem), nameof(SprayPaintItem.DiscardItem))]
[HarmonyTranspiler]
private static IEnumerable<CodeInstruction> SprayPaintMoveDiscard(IEnumerable<CodeInstruction> instructions)
{
return instructions.Skip(2).AddItem(new CodeInstruction(OpCodes.Ldarg_0)).AddItem(
new CodeInstruction(OpCodes.Callvirt,
Method(typeof(GrabbableObject), nameof(GrabbableObject.DiscardItem))));
}

/// <summary>
/// Correct the "equippedUsableItemQE" field when the walkie talkie is pocketed
/// </summary>
[HarmonyPatch(typeof(WalkieTalkie), nameof(WalkieTalkie.PocketItem))]
[HarmonyPostfix]
private static void OnPocketWalkie(WalkieTalkie __instance)
{
if (__instance.playerHeldBy != null)
__instance.playerHeldBy.equippedUsableItemQE = false;
}
}
2 changes: 1 addition & 1 deletion Source/Plugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public class Plugin : BaseUnityPlugin

private readonly string[] GAME_ASSEMBLY_HASHES =
[
"F34BE4B08F191695BAD3D09F7CB8F8EC82A00B5F93A4EC2269BAE94D9ABCA721", // V61
"45E2312BEEE3C163658C247354F10EE84DE5D594ED18A3D2EFC6B80F07AC1737", // V62
];

public new static Config Config { get; private set; }
Expand Down

0 comments on commit df08604

Please sign in to comment.