Rooted

From IvanWiki
Jump to navigation Jump to search

Coding: This article contains code which is for experienced users only, and may reveal game secrets

Rooted dictates that the character in question cannot move to another tile of its own accord, regardless of available limbs or AGI stat. IsRooted is defined in a character's entry inside char.dat and is currently used by all forms of carnivorous plant and mushroom. Rooted does not prevent a character from interacting with adjacent tiles or enemies, however.

A rooted character can only move via teleportation or levitation, and cannot be knocked back by a kick.

truth character::CanMove() const 

{ 
  return !IsRooted() || StateIsActivated(LEVITATION); 
}