Ice_and_Fire icon indicating copy to clipboard operation
Ice_and_Fire copied to clipboard

Adjust pickup AI logic

Open SiverDX opened this issue 1 year ago • 4 comments

Added custom pickup goal, used by

  • pixie
  • hippogryph
  • myrmex worker
  • cockatrice
  • death worm
  • ampithere

should fix #5187

Additionally:

  • added logic to the previously empty add food effect method when dragons eat food (i.e. they should now gain the effects)
  • removed refreshDimensions in EntityMultiPart because it was causing multiple seconds of delay when joining and leaving worlds (dimensions should only be refreshed when needed, not in a tick method)
  • tried to adjust myrmex worker goal logic regarding storing items - didn't work (might be issue by the advanced pathfinding system since they simply don't move - they can see the cocoons and sometimes they get stuck at walls and move a bit once you break some blocks)
  • made the check (whether a myrmex is inside a hive) more simple

SiverDX avatar Feb 21 '24 23:02 SiverDX

now that I think about it

the game time % 4 logic should just be replaced with an internal tick tracker

I think someone else already mentioned it but the tick method of the goal ticks every 2 ticks

so if you're unlucky you get no updates (that's what the force new is there for atm)

will adjust that

SiverDX avatar Feb 22 '24 00:02 SiverDX

(need to still adjust some other goals to use this custom one)

SiverDX avatar Feb 22 '24 08:02 SiverDX

Tried it out with pixie and death worm and both did what they were supposed to in regards to picking up items

SiverDX avatar Feb 22 '24 15:02 SiverDX

Sooooo does this mean I'm just unlucky or do I need to chase those pixies around with cake items until they decide to eat

Loonarin-San avatar Feb 22 '24 21:02 Loonarin-San