public bool IsCutTree(int x, int y) { if (!IsInCurrentArea(x, y)) { return(false); } return(OriginalNpcs.Find(s => s.PositionX == x && s.PositionY == y && s.NpcName.ToLowerInvariant().StartsWith(".cut") && s.Data.Settings.Sprite == 9) != null); }
public bool IsRockSmash(int x, int y) { if (!IsInCurrentArea(x, y)) { return(false); } if (OriginalNpcs.Find(s => s.PositionX == x && s.PositionY == y && s.NpcName.ToLowerInvariant().StartsWith(".rocksmash") && s.Data.Settings.Sprite == 11) != null) { return(true); } return(false); }