View Single Post
04/26/24, 09:51 AM   #12
Vilkasmanga
AddOn Author - Click to view addons
Join Date: Dec 2023
Posts: 8
Baertram - Awesome feedback and help, thank you!

Suggestions like "FTbountyValue = FTbountyValue or 0 " are extremely helpful because I know efficiencies like that should exist but I don't always know how - this will definitely be a trick I use going forward.

Thanks also for the tip on localizing FTbountyValue for speed up. Again, a nice touch that isn't something I would have easily stumbled across / appreciated on my own. I need to see if I use FarmersToolkit.BountyValue anywhere outside of this routine but, worst case, I can always drop a single line at the bottom of this routine that sets FarmersToolkit.BountyValue = FTbountyValue - one call versus 4-5 is still a win!

Even though they aren't needed and aren't harmful, I'll probably keep doing semi-colons out of habit from so many other languages that do need them. At this point, I think my fingers are trained to end lines with semi-colon and my eye twitches until I match open and closing parentheses, even if it is just in chat

-V
  Reply With Quote