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