Project Zomboid

Project Zomboid

Snake's Mod Pack
Manuque 2022 年 3 月 31 日 下午 8:55
Suggestion (Le Gourmet)
make the crops return to stage 1 instead of deleting them and having to plant them again.

Grape tree Live between 50 and 100 years
Coffee tree near 25 years
Eggplant a little of years
Tea Tree Live between 30 and 50 years
Pepper Live Long Time too

Bell peppers are a perennial in tropical areas. But in colder climates, they are grown as annuals


Bean = annual cycle (only 1 harvest) continue deleting the plant when harvested


Exemple of the code (from vanilla code) to make it in your mod (if you accept the suggestion)

-- the strawberrie don't disapear, it goes on phase 2 again
if luaObject.typeOfSeed == "Strawberry plant" then
luaObject.nbOfGrow = 1
luaObject.fertilizer = 0;
self:growPlant(luaObject, nil, true)
luaObject:saveData()
else
self:removePlant(luaObject)
end
最后由 Manuque 编辑于; 2022 年 3 月 31 日 下午 9:00