// Function from file: LINDA_system.dm public override bool CanPass(dynamic mover = null, dynamic target = null, double?height = null, bool?air_group = null) { height = height ?? 1.5; Obj obstacle = null; Obj obstacle2 = null; if (!Lang13.Bool(target)) { return(false); } if (mover is Ent_Dynamic) { return(!this.density); } else { if (target.blocks_air || this.blocks_air) { return(false); } foreach (dynamic _a in Lang13.Enumerate(this, typeof(Obj))) { obstacle = _a; if (!obstacle.CanPass(mover, target, height)) { return(false); } } foreach (dynamic _b in Lang13.Enumerate(target, typeof(Obj))) { obstacle2 = _b; if (!obstacle2.CanPass(mover, this, height)) { return(false); } } return(true); } }
// Function from file: window.dm public bool can_be_reached(dynamic user = null) { Obj O = null; if (!this.fulltile) { if ((Map13.GetDistance(user, this) & this.dir) != 0) { foreach (dynamic _a in Lang13.Enumerate(this.loc, typeof(Obj))) { O = _a; if (!O.CanPass(user, user.loc, 1)) { return(false); } } } } return(true); }