public MobGComponent(World tools, Mob model) : base(tools, model) { movePause = model.WanderChance; Model = model; Tasker.AddAITask(1, new AITaskWander(Navigator, this)); }
public void Die(Mob killer) { if (!Model.Invulnerable && Model.Alive) { Model.Lives--; if (Model.Alive) { Respawn(); invulnerableAfterRespawnTimer = 180; } } }