コード例 #1
0
 private bool CheckForMonstersInThisLocation(GameLocation l)
 {
     foreach (NPC n in l.characters)
     {
         StardewValley.Monsters.Monster m = n as StardewValley.Monsters.Monster;
         if (m != null)
         {
             return(true);
         }
     }
     return(false);
 }