Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions scripts/planner.js
Original file line number Diff line number Diff line change
Expand Up @@ -894,12 +894,12 @@ function planner_controller($scope){
mult = mult || 0; // Multiplier given by type of fertilizer used (0, 1, or 2)

var gold_chance = 0.2 * (self.level / 10) + 0.2 * mult * ((self.level + 2) / 12) + 0.01;
var silver_chance = Math.min(0.75, gold_chance * 2);
var silver_chance = Math.min(0.75, gold_chance * 2) * (1 - gold_chance);

var chance = 0;
switch (quality){
case 0:
chance = Math.max(0, 1 - (gold_chance + silver_chance));
chance = 1 - (gold_chance + silver_chance);
break;
case 1:
chance = Math.min(1, silver_chance);
Expand Down Expand Up @@ -1615,4 +1615,4 @@ function planner_controller($scope){
// Initialization runs last since Function.prototype methods
// aren't hoisted
init();
}
}