Ecosystem-2 icon indicating copy to clipboard operation
Ecosystem-2 copied to clipboard

Foxes not supported?

Open ericwerk opened this issue 6 years ago • 2 comments

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 avatar Aug 17 '19 18:08 ericwerk

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.

ericwerk avatar Aug 21 '19 16:08 ericwerk

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.

mnemanja avatar Sep 06 '19 16:09 mnemanja