From ae00235bcaa60f28a983986dc34bca8772a6579a Mon Sep 17 00:00:00 2001 From: Andrew Marheine Date: Wed, 31 Mar 2021 10:16:27 -0500 Subject: [PATCH] 1 - Reduced Ice Block and Frozen Slime Block max run speed boost when using Ice Skates. - Done --- ILEditing/ILChanges.cs | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/ILEditing/ILChanges.cs b/ILEditing/ILChanges.cs index 4b29fd9965..01e92205af 100644 --- a/ILEditing/ILChanges.cs +++ b/ILEditing/ILChanges.cs @@ -166,13 +166,21 @@ namespace CalamityMod.ILEditing private static void ReduceTileBoostedRunSpeeds() { - // Reduce the run speed boost while running on Asphalt. + // Reduce the run speed boost while running on Asphalt, Frozen Slime Blocks and Ice Blocks. IL.Terraria.Player.Update += (il) => { var cursor = new ILCursor(il); cursor.GotoNext(MoveType.Before, i => i.MatchLdcR4(3.5f)); // The max run speed multiplier for Asphalt. cursor.Remove(); - cursor.Emit(OpCodes.Ldc_R4, 1.75f); // Reduce by 50% to get 1.75. + cursor.Emit(OpCodes.Ldc_R4, 1.75f); // Reduce by 1.75. + + cursor.GotoNext(MoveType.Before, i => i.MatchLdcR4(1.25f)); // The max run speed multiplier for Frozen Slime Blocks. + cursor.Remove(); + cursor.Emit(OpCodes.Ldc_R4, 1.1f); // Reduce by 0.15. + + cursor.GotoNext(MoveType.Before, i => i.MatchLdcR4(1.25f)); // The max run speed multiplier for Ice Blocks. + cursor.Remove(); + cursor.Emit(OpCodes.Ldc_R4, 1.1f); // Reduce by 0.15. }; }