Function snake_sdk::get_health

source ·
pub fn get_health() -> u32
Expand description

Get the current health of the snake. The maximum health is 100. The health decreases by 1 each tick. If the health of a snake ever reaches zero, it will die. A snake can gain health by eating food. Food increases health. Poison damages health.