Instalar Steam
iniciar sesión
|
idioma
简体中文 (chino simplificado)
繁體中文 (chino tradicional)
日本語 (japonés)
한국어 (coreano)
ไทย (tailandés)
Български (búlgaro)
Čeština (checo)
Dansk (danés)
Deutsch (alemán)
English (inglés)
Español de Hispanoamérica
Ελληνικά (griego)
Français (francés)
Italiano
Bahasa Indonesia (indonesio)
Magyar (húngaro)
Nederlands (holandés)
Norsk (noruego)
Polski (polaco)
Português (Portugués de Portugal)
Português-Brasil (portugués de Brasil)
Română (rumano)
Русский (ruso)
Suomi (finés)
Svenska (sueco)
Türkçe (turco)
Tiếng Việt (vietnamita)
Українська (ucraniano)
Comunicar un error de traducción
I checked the vanilla code again after reading your comment.
In the file Steam\steamapps\common\ProjectZomboid\media\lua\server\Farming\SPlantGlobalObject.lua,
the reason for using getGameTime():getMonth() + 1 is not to apply a one-month offset,
but because getGameTime():getMonth() returns values from 0 to 11 (not 1 to 12).
Therefore, the correct sowing months for barley are August (8), September (9), and October (10).
I also confirmed that the vanilla crop info window shows these months correctly,
and that barley grows properly in August in-game.
Just one thing—regarding RiskMonth, I mistakenly added +1, thinking it required a simple offset as you mentioned.
I've now reverted it back to its original logic.
your mod shows the sowing times for barley as 8, 9, 10, which would imply it's august, september and october
except the actual sow months are september, october and november (9, 10, 11)
and that's not just an ingame typo, if you try to sow barley on august it will die immediately.
the problem is that the source code has all months offset by 1 so you're actually giving misleading info
please check and test stuff before posting the mod...