Skip to content

Commit

Permalink
Update Character.cs
Browse files Browse the repository at this point in the history
Removal of old code comments
  • Loading branch information
nxPublic committed Dec 6, 2022
1 parent b322be8 commit 37f4849
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions ValheimPlus/GameClasses/Character.cs
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,6 @@ public static IEnumerable<CodeInstruction> Transpiler(IEnumerable<CodeInstructio

bool found = false;

// The original code checks if (this.IsPlayer() && num > 4f); if so, it calculates the fall damage as Mathf.Clamp01((num - 4f) / 16f) * 100f
// ... where num is the fall distance.
// We want to remove this calculation and replace it with our own, so we replace the calculation with a call to our own method, defined below this one.
for (int i = 0; i < il.Count; i++)
{
if (!found && il[i].opcode != OpCodes.Newobj)
Expand Down

0 comments on commit 37f4849

Please sign in to comment.