diff --git a/devNotes/twine JS.txt b/devNotes/twine JS.txt index 67e059d46608eb393933f5b75dfb093f39902565..98711ecd3661da6d0f2926c35032cb8e9e643671 100644 --- a/devNotes/twine JS.txt +++ b/devNotes/twine JS.txt @@ -2260,14 +2260,14 @@ window.getSlaveCost = function(s) { // TODO: Include them here anyway? } else { cost += foodCost * s.pregType * (s.pregControl === 'speed up' ? 3 : 1); - if (s.pregType >= 10) { - cost += foodCost * s.pregType * (s.pregControl === 'speed up' ? 3 : 1); - } else if (s.pregType >= 30) { - cost += foodCost * 2 * s.pregType * (s.pregControl === 'speed up' ? 3 : 1); + if (s.pregType >= 100) { + cost += foodCost * 5 * s.pregType * (s.pregControl === 'speed up' ? 3 : 1); } else if (s.pregType >= 50) { cost += foodCost * 3 * s.pregType * (s.pregControl === 'speed up' ? 3 : 1); - } else if (s.pregType >= 100) { - cost += foodCost * 5 * s.pregType * (s.pregControl === 'speed up' ? 3 : 1); + } else if (s.pregType >= 30) { + cost += foodCost * 2 * s.pregType * (s.pregControl === 'speed up' ? 3 : 1); + } else if (s.pregType >= 10) { + cost += foodCost * s.pregType * (s.pregControl === 'speed up' ? 3 : 1); } } }