Exemplo n.º 1
0
 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);
 }
Exemplo n.º 2
0
 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);
 }