Jump to content

Friendly Fruit Fly broken AI


Electroely
  • Pending

The fruit fly doesn't directly fly to plants it wants to tend to. Instead it jitters back and forth until it either reaches it or decides it's too far from its fruit.

This can be fixed from scripts/behaviours/findfarmplant.lua: line 39

change
(self.validplantfn and self.validplantfn(self.inst, plant))
to
(self.validplantfn == nil or self.validplantfn(self.inst, plant))
to make sure it's true when a validplantfn isn't required. Tested in a mod and it works.

On the topic, would it be possible to make the fruit fly not block placement? It's really annoying.


Steps to Reproduce

1. Kill Lord of the Fruit Flies
2. Plant some farm plants
3. Observe the Friendly Fruit Fly

  • Like 9



User Feedback




Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
  • Create New...