|
X Complete Initialization for 10 kreds Complete the Quest and earn an exclusive shiny kongpanion + 10 kreds 15% Congratulations! You’ve completed your Kongregate account! Congratulations! You’ve completed your Kartridge quest! Spend your hard earned kreds on some of these games! Clamburger's messagesPublic messages for Clamburger
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.
comment
Loading
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.
Aurian
Jun 9, 2011 12:48pm
Thanks, I appreciate it =) I figured there would be a random factor in it somewhere. |