Talk:Farming

From PZwiki

(Deleted subjective observations - made irrelevant by code diving).

it'd be nice if someone could verify these findings and edit the wiki accordingly. Ashghan (talk) 11:25, 28 December 2016 (UTC)

Oh, some notes from code diving Build 35.24, basicFarming.lua and farming_vvegetableconf.lua : (direct quotes in "")

  • If plants have not been watered in 48hrs, they die. If they have less than 70% of min water - they die.
  • plant can get infected on growth (growth stage change calls code for infecting)
  • "base risk for mildew is 2%, but every pt of water below the required water lvl add 1% risk"
  • "base risk for aphid is 2%, but every pt of water below the required water lvl add 1% risk" << aphid is DWF
  • "base risk for flies is 2%, but every pt of water below the required water lvl add 1% risk"
  • if a plant is infected, nearby plants can get infected too, range - 2
  • Water change is dependant on "Plant resilience" setting. Drops 1 point per 5 hours default. 1 point per 12 hours on very resilient, 1 point/2h on very weak.
  • "change health of the plant every 3 hours", though the code seems to do it every 2 hours instead, perhaps the value has changed, but the comment did not.
  • Health change: sunny weather +1; any other weather +0,25; temperature less than 10 -0,25; if appropriately watered (min water < current water < max water) +0,4; if water lower than min water ( >10 pts) then -0,2; if much lower (20pts) then -0,5;
  • Disease magnitude change (same timer as water change): mildew and flies increase by +0,5 or +1 if plant is below min water. DWF seems to increase steadily by 1 BUT! decrease by -2 if plant below min water. i.e you can dehydrate you plants to reduce DWF. Risky, but possible if caught early.
  • pest flies increase required water by +1 per 10 flies magnitude (round down)
  • Mildew effects: "-- < 10 it's ok; -- < 30 -> diseaseLvl = hours in supplement for next growing phase; -- plant don't grow if disease between 30 and 60; plant die if disease > 60"
  • DWF reduce the amount of vegetables you get by 1 per 10 points magnitude (round down), -10 at 100.
  • Rain increases water level by 3
  • Starting plant health is determined by... moon phase! "4-18 -- ascending moon health between 47 and 53, 18-21 -- full moon, the best ! health between 57 and 64, 21-4-- descending moon, the worst, health between 37 and 44"
  • Farming XP = plant health/2, modified by +25 for no disease good water, -10 for disease and/or bad water