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