We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Sometimes if you overfill a location with food (for example New Village at the endgame) you get a null pointer.
This is a temporary fix in Location.cs to fix that. It's an ugly fix but it will let you finish/win the game :)
public Item FindFood(out IItemCollection owner) { Item item = null; owner = null; for (int i = 0; i < Rooms.Count; i++) { for (int j = 0; j < Rooms[i].Items.Count; j++) { if (Rooms[i].Items[j].FoodValue != 0) { try { if (item == null || item.FoodValue < Rooms[i].Items[j].FoodValue || item.Type == Production.Produce) { item = Rooms[i].Items[j]; owner = Rooms[i].Items; } } catch (Exception) { // log this to get more clarity, but just adding this lets me finish the game } } } } return item; }
The text was updated successfully, but these errors were encountered:
Oh, nice. Thanks for finding and reporting that issue!
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Sometimes if you overfill a location with food (for example New Village at the endgame) you get a null pointer.
This is a temporary fix in Location.cs to fix that. It's an ugly fix but it will let you finish/win the game :)
The text was updated successfully, but these errors were encountered: