Skip to content

Commit

Permalink
v1.3.2.4, fix ClickerCompat.GetClickerPerSecond
Browse files Browse the repository at this point in the history
  • Loading branch information
direwolf420 committed Jun 12, 2022
1 parent f5ae380 commit d26436d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions ClickerCompat.cs
Original file line number Diff line number Diff line change
Expand Up @@ -371,16 +371,16 @@ internal static int GetClickAmount(Player player)
}

/// <summary>
/// Call to get the players' clicks per second
/// Call to get the players' clicks per second. Use Math.Floor if you need as integer.
/// </summary>
/// <param name="player">The player</param>
internal static int GetClickerPerSecond(Player player)
internal static float GetClickerPerSecond(Player player)
{
return ClickerClass?.Call("GetPlayerStat", versionString, player, "clickerPerSecond") as int? ?? 0;
return ClickerClass?.Call("GetPlayerStat", versionString, player, "clickerPerSecond") as float? ?? 0;
}

/// <summary>
/// Call to get the players' total clicks required for the given effect to trigger on the item
/// Call to get the players' total clicks required for the given effect to trigger on the item.
/// </summary>
/// <param name="player">The player</param>
/// <param name="item">The clicker item</param>
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 = DivermanSam, Barometz and direwolf420
version = 1.3.2
version = 1.3.2.4
displayName = The Clicker Class Example Mod
homepage = https://github.com/SamsonAllen13/ClickerClassExampleMod
includePDB = true
Expand Down

0 comments on commit d26436d

Please sign in to comment.