Skip to content

Commit 37f4849

Browse files
committed
Update Character.cs
Removal of old code comments
1 parent b322be8 commit 37f4849

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

ValheimPlus/GameClasses/Character.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,9 +119,6 @@ public static IEnumerable<CodeInstruction> Transpiler(IEnumerable<CodeInstructio
119119

120120
bool found = false;
121121

122-
// The original code checks if (this.IsPlayer() && num > 4f); if so, it calculates the fall damage as Mathf.Clamp01((num - 4f) / 16f) * 100f
123-
// ... where num is the fall distance.
124-
// 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.
125122
for (int i = 0; i < il.Count; i++)
126123
{
127124
if (!found && il[i].opcode != OpCodes.Newobj)

0 commit comments

Comments
 (0)