Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make grass -> dry a longer process #555

Open
joskuijpers opened this issue Aug 12, 2017 · 1 comment
Open

Make grass -> dry a longer process #555

joskuijpers opened this issue Aug 12, 2017 · 1 comment
Assignees
Milestone

Comments

@joskuijpers
Copy link
Member

Use a single density map:

When tedding in the morning, keep wetGrass as wetGrass, but set the densityMap to 1
When tedding in the evening, keep wetGrass as wetGrass but set densityMap to 0

When clock hits mid day, replace all heaps of wetGrass (type = wet), and the density map == 0, to dry grass. So this is always half a day later. (compare type, set type, mask densityMap)
When clock hits midnight, do the same but for densityMap == 1

There are only 2 values, so not tedding will also dry it (we can't set a value as 'not tedded'). Is this desired? Maybe we need to use 2 bits instead? (0 = not touched, 1 = morning tedded, 2 = afternoon tedded). We could then set 0 to 4 at midnight, and 4 to dryGrass, so grass dries in 24 hours. This could depend on rain.

@joskuijpers
Copy link
Member Author

Alternative proposed by @baleBaron

When tedding, swap input/output (swap values of DRY_GRASS and GRASS) so it inputs GRASS and DRYGRASS and outputs GRASS.
Also set the density bit to 1.

At midday and midnight, turn all wet grass into dry grass where bit is 1. (Do this before the wet grass swath reduction).

This does not allow auto-drying in the USA. (maybe this can be done in a simple way by a parameter in growth / daylight / something, and setting grass to drygrass every midnight)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants