Beispiel #1
0
        public override void Apply(GameComponent Entity, WorldManager World)
        {
            var creature = Entity.GetComponent <CreatureAI>();

            World.PlayerFaction.Minions.Remove(creature);
            World.PersistentData.SelectedMinions.Remove(creature);
            Entity.GetRoot().Delete();
            SoundManager.PlaySound(ContentPaths.Audio.change, 0.5f);
        }
Beispiel #2
0
        public override void Apply(GameComponent Entity, WorldManager World)
        {
            var minions = Faction.FilterMinionsWithCapability(World.PlayerFaction.Minions, TaskCategory.Wrangle);

            if (minions.Count > 0)
            {
                World.TaskManager.AddTask(new WrangleAnimalTask(Entity.GetRoot().GetComponent <Creature>())
                {
                    Priority = TaskPriority.Medium
                });
            }
        }
Beispiel #3
0
 public override void Apply(GameComponent Entity, WorldManager World)
 {
     Entity.GetRoot().Die();
 }