Skip to content

Commit 595f9be

Browse files
committed
update for 1.2.6
1 parent 42077e2 commit 595f9be

File tree

3 files changed

+13
-4
lines changed

3 files changed

+13
-4
lines changed

ClickerCompat.cs

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ internal static class ClickerCompat
2222

2323
//This is the version of the calls that are used for the mod.
2424
//If Clicker Class updates, it will keep working on the outdated calls, but new features might not be available
25-
internal static readonly Version apiVersion = new Version(1, 2, 4);
25+
internal static readonly Version apiVersion = new Version(1, 2, 6);
2626

2727
internal static string versionString;
2828

@@ -279,6 +279,15 @@ internal static void SetDisplayTotalClicks(Item item)
279279
{
280280
ClickerClass?.Call("SetDisplayTotalClicks", versionString, item);
281281
}
282+
283+
/// <summary>
284+
/// Call in <see cref="ModItem.SetDefaults"/> for a clicker item to make it display total money generated in the tooltip
285+
/// </summary>
286+
/// <param name="item">The clicker class item</param>
287+
internal static void SetDisplayMoneyGenerated(Item item)
288+
{
289+
ClickerClass?.Call("SetDisplayMoneyGenerated", versionString, item);
290+
}
282291
#endregion
283292

284293
#region Player Calls
@@ -332,7 +341,7 @@ internal static bool GetArmorSet(Player player, string set)
332341

333342
/// <summary>
334343
/// Call to check if a specific accessory effect is enabled (i.e. "Gamer Crate" will have multiple effects enabled). Supported accessories:
335-
/// ChocolateChip, EnchantedLED, HandCream, StickyKeychain, GlassOfMilk, Cookie, ClickingGlove, AncientClickingGlove, RegalClickingGlove.
344+
/// ChocolateChip, EnchantedLED, HandCream, StickyKeychain, GlassOfMilk, Cookie, ClickingGlove, AncientClickingGlove, RegalClickingGlove, GoldenTicket, PortableParticleAccelerator.
336345
/// Visual variants (i.e. EnchantedLED2) are not gettable
337346
/// </summary>
338347
/// <param name="player">The player</param>

Items/Accessories/ExampleClickerAccessory.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public override void SetStaticDefaults()
2020
ClickerCompat.RegisterClickerItem(this);
2121

2222
DisplayName.SetDefault("Example Clicker Accessory");
23-
Tooltip.SetDefault("'Big Red Button'" + "\n" +
23+
Tooltip.SetDefault("'Big Red Button 2'" + "\n" +
2424
"20% increased clicker damage" + "\n" +
2525
"Reduces the amount of clicks required for a click effect by 1" + "\n" +
2626
"Gain up to 15% clicker damage based on your amount of clicks within a second" + "\n" +

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.2.4
2+
version = 1.2.6
33
displayName = The Clicker Class Example Mod
44
homepage = https://github.com/SamsonAllen13/ClickerClassExampleMod
55
includePDB = true

0 commit comments

Comments
 (0)