Exemple #1
0
        // Function from file: window.dm
        public override bool CheckExit(Ent_Dynamic mover = null, Tile target = null)
        {
            if (mover is Ent_Dynamic && mover.checkpass(2) != 0)
            {
                return(true);
            }

            if (Map13.GetDistance(mover.loc, target) == this.dir)
            {
                return(false);
            }
            return(true);
        }