From d8f05edb44fe0a7bcdce6a2884d15bd1b0920e1b Mon Sep 17 00:00:00 2001 From: Jofairden Date: Thu, 15 Jun 2017 01:09:51 +0200 Subject: [PATCH] v0.1.3.1 speed by units of thousand --- BouncyCoins.cs | 10 +++++----- build.txt | 2 +- description.txt | 3 +++ 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/BouncyCoins.cs b/BouncyCoins.cs index e8e454d..be9eebf 100644 --- a/BouncyCoins.cs +++ b/BouncyCoins.cs @@ -82,8 +82,8 @@ private void LoadModSettings() setting.AddDouble( "bounceSpeed", "Bounce speed", - -100f, - 100f, + -1000f, + 1000f, true); setting.AddComment("Decides the offset of the bounce."); @@ -201,8 +201,8 @@ public override bool PreDrawInWorld(Item item, SpriteBatch spriteBatch, Color li // Do we want to bounce by cosine or sine? double bounceByAngle = player.byCosine - ? Math.Cos(angle * player.speed) - : Math.Sin(angle * player.speed); + ? Math.Cos(angle * player.speed / 1000) + : Math.Sin(angle * player.speed / 1000); bounceByAngle *= player.amplitude * player.ampMult; // Drawing @@ -299,7 +299,7 @@ public override void Initialize() bouncyItems = new List(BouncyCoins.VanillaCoinSet); amplitude = 10d; ampMult = 1d; - speed = 0.075d; + speed = 75d; bounceOffset = 5d; keyFrameActions = new Dictionary(); } diff --git a/build.txt b/build.txt index acf95a5..c9b4ecd 100644 --- a/build.txt +++ b/build.txt @@ -1,5 +1,5 @@ author = Jofairden -version = 0.1.3 +version = 0.1.3.1 displayName = Bouncy Coins buildIgnore = *.csproj, *.user, obj\*, bin\*, .vs\*, *.sln, *.psd, \*.psd, *\*.psd, resources\*, modrelease\*, *.git, *.gitignore, *.git*, .travis.yml includePDB = true diff --git a/description.txt b/description.txt index 86dac6e..df43de4 100644 --- a/description.txt +++ b/description.txt @@ -2,6 +2,9 @@ Makes coins bounce, because it looks fancy. <3 The settings are now also configurable, if you use Flash Kirby's Mod Settings Configurator mod. This mod REQUIRES tModLoader v0.8.3.5 or higher! +v0.1.3.1: + * Updated bounceSpeed to work with units of a thousand, way easier to control now + v0.1.3: * set modSide to client (so you can use this mod even if servers dont have it) * Also added integration with FK's Mod Settings Configurator mod