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

Added soil_group param to plant definition #3128

Closed
wants to merge 1 commit into from

Conversation

ssdaniel24
Copy link
Contributor

Added this param to give ability to create something like mushrooms that can grow on something like stones etc.

game_api.txt Outdated Show resolved Hide resolved
mods/farming/api.lua Outdated Show resolved Hide resolved
mods/farming/api.lua Outdated Show resolved Hide resolved
@tenplus1
Copy link
Contributor

tenplus1 commented Jun 16, 2024

Rather than adding group checks it may be worthwhile to add a growth_check function for custom crops, that way it can check what it needs inside the function and return a True value when they are met, kinda like this:

https://codeberg.org/tenplus1/farming/src/branch/master/init.lua#L378

@ssdaniel24
Copy link
Contributor Author

Will do this.

@ssdaniel24 ssdaniel24 closed this Jun 16, 2024
@ssdaniel24 ssdaniel24 deleted the feature/soil_group branch June 16, 2024 16:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants