Skip to content

Commit 12dd7bb

Browse files
committed
add fluct comment
1 parent e983a40 commit 12dd7bb

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Items/Accessories/ExampleClickerAccessory.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,13 @@ public override void UpdateAccessory(Player player, bool hideVisual)
3939
{
4040
//Use these methods to adjust clicker class related variables (treat them like player.meleeDamage etc.)
4141
//Only a small sample here
42+
//If you use VS, just mouseover the method name to see what it does
4243
ClickerCompat.SetDamageAdd(player, 0.2f);
44+
ClickerCompat.SetClickerBonusAdd(player, 1);
45+
46+
//Makes the radius go in a wave motion from 0 to 100 additional pixels
4347
float fluct = 1f + (float)Math.Sin(2 * Math.PI * (Main.GameUpdateCount % 60) / 60f);
4448
ClickerCompat.SetClickerRadiusAdd(player, fluct / 2);
45-
ClickerCompat.SetClickerBonusAdd(player, 1);
4649
}
4750
}
4851
}

0 commit comments

Comments
 (0)