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

Foxes not supported? #5

Open
ericwerk opened this issue Aug 17, 2019 · 2 comments
Open

Foxes not supported? #5

ericwerk opened this issue Aug 17, 2019 · 2 comments

Comments

@ericwerk
Copy link

In Animal.cs, in line 202, you cast the foodtarget to a Plant:
eatAmount = ((Plant) foodTarget).Consume (eatAmount);

This fails when the foodTarget is a Rabbit :-)
What did you do in the other code, just remove the eaten Rabbit?

@ericwerk
Copy link
Author

Plants, when eaten, grow smaller until there is no more left, then they die.
Should Rabbits, when "eaten" grow weaker? Cry for help?
I'd love to implement a fight mode and courage for animals, and have them have the choice to come to the aid of attacked friends, if they are courageous enough.

@mnemanja
Copy link

mnemanja commented Sep 6, 2019

Hi @ericwerk, that sounds very interesting.

I would like to suggest changing the title of the issue to something more related to the content of the issue. Like this it has little to do with the support for foxes.

Sorry for not being more helpful.

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

No branches or pull requests

2 participants