Skip to content

Commit

Permalink
v0.1.3.1
Browse files Browse the repository at this point in the history
speed by units of thousand
  • Loading branch information
Jofairden committed Jun 14, 2017
1 parent c921a15 commit d8f05ed
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
10 changes: 5 additions & 5 deletions BouncyCoins.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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.");
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -299,7 +299,7 @@ public override void Initialize()
bouncyItems = new List<int>(BouncyCoins.VanillaCoinSet);
amplitude = 10d;
ampMult = 1d;
speed = 0.075d;
speed = 75d;
bounceOffset = 5d;
keyFrameActions = new Dictionary<int, keyFrameActionDelegate>();
}
Expand Down
2 changes: 1 addition & 1 deletion build.txt
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 3 additions & 0 deletions description.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d8f05ed

Please sign in to comment.