Games Achievements My Kong Sign In

Clamburger's messages

Public messages for Clamburger

avatar for Aurian
Aurian

Jun 9, 2011 11:47am

Hey! Could you help me check something in the code? I don’t have decompiler here and I pretty much forgot how it’s done xD I’m curious how it calculates harvest value, I know it’s level based but seeing how it differs in amount between plots with same level and same tree I got curious of how it works exactly.

avatar for Clamburger
Clamburger Jun 9, 2011 11:56am

harvestValue = floor(base value * (0.9 + plot grade * 0.1 + Math.random() * 0.2));

Math.random() generates a number between 0 and 1.

avatar for Aurian
Aurian Jun 9, 2011 12:48pm

Thanks, I appreciate it =) I figured there would be a random factor in it somewhere.

Developers Players Support YouTube TikTok X (Twitter) LinkedIn
Join the conversation Join Discord
Terms of Service Privacy Policy Code of Conduct
© 2025 Kongregate