Exemple #1
0
        public ScaredyCat(Actor self, ScaredyCatInfo info)
        {
            this.self = self;
            this.info = info;
            mobile    = self.Trait <Mobile>();

            if (info.AvoidTerrainTypes.Count > 0)
            {
                avoidTerrainFilter = c => info.AvoidTerrainTypes.Contains(self.World.Map.GetTerrainInfo(c).Type);
            }
        }
Exemple #2
0
 public ScaredyCat(Actor self, ScaredyCatInfo info)
 {
     this.self = self;
     this.info = info;
     mobile = self.Trait<Mobile>();
 }