Slime AI

Slime AI is an AI followed by every Slime in the game.

Behavior
Slimes exhibit the following behavior:


 * Chase the player by jumping towards them
 * Float on water
 * Jump up to higher Wood Platforms, but can not drop down them
 * Take damage from Lava, except the Lava Slime
 * Suffer knockback

Exceptions
Slimes will not chase the player above ground at daytime, not even after hitting the player. However, if nighttime sets in or the player lands in a hit with any weapon, the chasing behaviour sets in.

Strategies
Slimes jiggle up and down slightly, which becomes faster when they are about to jump. It is a good idea to attack just after they land, as you'll have a few seconds to retreat before they jump again.