Skip to content
Snippets Groups Projects
Commit 8ab33108 authored by ezsh's avatar ezsh
Browse files

Fix organ farm progress update.

Closes #594.
parent db2781a4
No related branches found
No related tags found
No related merge requests found
......@@ -45,13 +45,13 @@
<<if $organs.length > 0>>
<<run $organs.forEach(function(o) {
if ($organs[o].weeksToCompletion > 0) {
if (o.weeksToCompletion > 0) {
if ($organFarmUpgrade == 3) {
$organs[o].weeksToCompletion -= 4;
o.weeksToCompletion -= 4;
} else if ($organFarmUpgrade == 2) {
$organs[o].weeksToCompletion -= 2;
o.weeksToCompletion -= 2;
} else {
$organs[o].weeksToCompletion--;
o.weeksToCompletion--;
}
}
})>>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment