From e1f4bfc07c245fbd99a415ca867d028df9ab16f2 Mon Sep 17 00:00:00 2001 From: IbanPlay <56191483+IbanPlay@users.noreply.github.com> Date: Fri, 5 Aug 2022 06:55:49 +0200 Subject: [PATCH 1/2] Morse code util "T" fix --- Utilities/MiscUtils.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Utilities/MiscUtils.cs b/Utilities/MiscUtils.cs index 6a4c3093da..e954e0dab4 100644 --- a/Utilities/MiscUtils.cs +++ b/Utilities/MiscUtils.cs @@ -313,7 +313,7 @@ namespace CalamityMod 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', '1', '2', '3', '4', '5', '6', '7', '8', '9', '0' }; string[] MorseKeys = { " ", ".-|", "-...|", "-.-. |", "-..|", ".|", "..-.|" , "--.|", "....|", "..|", ".---|","-.-|",".-..|","--|", - "-.|","---|",".--.|","--.-|",".-.|","...|","_|","..-|", + "-.|","---|",".--.|","--.-|",".-.|","...|","-|","..-|", "...-|",".--|","-..-|","-.--|","--..|",".----|", "..---|","...--|","....-|",".....|","-....|","--...|", "---..|","----.|","-----|" }; From efd8736f724a9b67e871500564441330329ac063 Mon Sep 17 00:00:00 2001 From: IbanPlay <56191483+IbanPlay@users.noreply.github.com> Date: Fri, 5 Aug 2022 07:07:39 +0200 Subject: [PATCH 2/2] Marnite lift rotation clamped --- Items/Armor/MarniteArchitect/MarniteArchitectSet.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Items/Armor/MarniteArchitect/MarniteArchitectSet.cs b/Items/Armor/MarniteArchitect/MarniteArchitectSet.cs index 2e32838358..33f7b06875 100644 --- a/Items/Armor/MarniteArchitect/MarniteArchitectSet.cs +++ b/Items/Armor/MarniteArchitect/MarniteArchitectSet.cs @@ -446,7 +446,7 @@ namespace CalamityMod.Items.Armor.MarniteArchitect public override bool Draw(List playerDrawData, int drawType, Player drawPlayer, ref Texture2D texture, ref Texture2D glowTexture, ref Vector2 drawPosition, ref Rectangle frame, ref Color drawColor, ref Color glowColor, ref float rotation, ref SpriteEffects spriteEffects, ref Vector2 drawOrigin, ref float drawScale, float shadow) { - rotation = drawPlayer.velocity.X * 0.03f; + rotation = MathHelper.Clamp(drawPlayer.velocity.X * 0.03f, - MathHelper.ToRadians(7f), MathHelper.ToRadians(7f)); drawPlayer.fullRotation = rotation; // Draw is called for each mount texture we provide, so we check drawType to avoid duplicate draws.