Feature added: Restrict Hungry Animals to an area (per age and gender)#151
Open
dandiez wants to merge 3 commits intofluffy-mods:masterfrom
Open
Feature added: Restrict Hungry Animals to an area (per age and gender)#151dandiez wants to merge 3 commits intofluffy-mods:masterfrom
dandiez wants to merge 3 commits intofluffy-mods:masterfrom
Conversation
dandiez
commented
Oct 27, 2019
| pos.y += ListEntryHeight; | ||
| if (_selectedCurrent.RestrictToHungryArea) | ||
| { | ||
| if (_selectedCurrent.RestrictHungryArea.Count != _selectedCurrent.RestrictArea.Count) |
Author
There was a problem hiding this comment.
Without this workaround, if you load an existing save, the GUI goes crazy (I assume because the new array has some sort of bad initialisation data).
I'm sure there is a better way, checking for null correctly, but after trying that I could not get it to work.
Member
|
Hi dandiez! First of all, thank you for the suggestion and implementation. As it is, I cannot accept this pull request. I've deliberately kept the other restrict options simple - adding a per gender/age box to each of them would overly complicate the tab. I'ld be willing to accept a simpler toggle for restricting hungry animals. Alternatively, feel free to keep using your own branch - you've done some good work here! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A new area restriction added to send hungry animals to a specific area (separated by gender and age).
The "food need" limit can be adjusted such that only hungry enough animals are sent there.
The idea behind is to have a bit more control in certain cases, like for example: