Skip to content

Commit d26436d

Browse files
committed
v1.3.2.4, fix ClickerCompat.GetClickerPerSecond
1 parent f5ae380 commit d26436d

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

ClickerCompat.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -371,16 +371,16 @@ internal static int GetClickAmount(Player player)
371371
}
372372

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

382382
/// <summary>
383-
/// Call to get the players' total clicks required for the given effect to trigger on the item
383+
/// Call to get the players' total clicks required for the given effect to trigger on the item.
384384
/// </summary>
385385
/// <param name="player">The player</param>
386386
/// <param name="item">The clicker item</param>

build.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
author = DivermanSam, Barometz and direwolf420
2-
version = 1.3.2
2+
version = 1.3.2.4
33
displayName = The Clicker Class Example Mod
44
homepage = https://github.com/SamsonAllen13/ClickerClassExampleMod
55
includePDB = true

0 commit comments

Comments
 (0)