Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var toTag = (s) => (s[0].toUpperCase() + s.substring(1));
- var cropNames = Object.keys(crops);
- var base_growth = (cropNames).map((n) => crops[n].growth.regrow || crops[n].growth.initial);
- var is_regrowing = (cropNames).map((n) => !!crops[n].growth.regrow);
- var keg_times = (cropNames).map((n) => crops[n].produce.kegType === 'Wine' ? 10000 / 1440 : 4000 / 1440);
- var extra_yield = (cropNames).map((n) => crops[n].produce.extra * crops[n].produce.extraPerc);
- var keg_prices = (cropNames).map((n) => crops[n].produce.price * (crops[n].produce.kegType === 'Wine' ? 3 : (crops[n].produce.kegType === 'Juice' ? 2.25 : 0)));
- var jar_prices = (cropNames).map((n) => (crops[n].produce.price * 2 + 50) * (crops[n].produce.jarType ? 1 : 0));
- var seed_costs = (cropNames).map((n) => Math.min.apply(null, Object.values(crops[n].seeds).filter((e) => e > 0)));
Advertisement
Add Comment
Please, Sign In to add comment