avatar for Clamburger

Clamburger's profile

About me

  • Member Since: Aug. 27, 2009
  • Last Login: May. 18, 2012
  • Current Points: 6746
  • Comments: 6
  • Forum posts: 75
  • Location: Brisbane, Australia
  • Website: http://clamburger.org
  • Age: 21
  • Sex: Male
Latest Achievements (view all badges)
Who's the Boss? (completed)
Badge earned
Badge Of The Day
Who's the Boss? Badge (medium - 15 points)

Slay every boss in Boss Slayer

Acquired May. 15, 2012

Clamburger's awards

Medal_my-first-quest_130x90
Your First Medal
Dirt-3_ticket
Dirt 3 Racing Challenge
Mission_completion2
Portal 2: Mission Complete
Quest_completion2
Portal 2: Atlas Quest completed
Medal_physics_130x90
Physics Pack
Medal_starter
Graduation Medal

Clamburger's shouts

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.

view all »