Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ public SavingByAntiScp207EventArgs(ReferenceHub player, float damageAmount, Dama
Handler = handler;
HitboxType = hitboxType;
DamageAmount = damageAmount;
DamageMultiplier = (Player.Health + Player.ArtificialHealth - AntiScp207.DeathSaveHealth) / damageAmount;
IsAllowed = true;
}

Expand All @@ -48,7 +47,7 @@ public SavingByAntiScp207EventArgs(ReferenceHub player, float damageAmount, Dama
/// <summary>
/// Gets or sets the multiplier for the damage that is applied when the event is allowed.
/// </summary>
public float DamageMultiplier { get; set; }
public float DamageMultiplier { get; set; } = 0;

/// <summary>
/// Gets or sets the multiplier for the damage that if event denied.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ private static IEnumerable<CodeInstruction> Transpiler(IEnumerable<CodeInstructi
new(OpCodes.Ret),
});

index = newInstructions.FindLastIndex(i => i.opcode == OpCodes.Ldloc_2);
index = newInstructions.FindLastIndex(i => i.opcode == OpCodes.Ldc_R4);

newInstructions.InsertRange(index, new CodeInstruction[]
{
Expand Down
Loading