public static bool Dangersense(int i, int j, int type, Player player) { ModTile modTile = GetTile(type); if (modTile != null && modTile.Dangersense(i, j, player)) { return(true); } foreach (GlobalTile globalTile in globalTiles) { if (globalTile.Dangersense(i, j, type, player)) { return(true); } } return(false); }
public static bool Dangersense(int i, int j, int type, Player player) { ModTile modTile = GetTile(type); if (modTile != null && modTile.Dangersense(i, j, player)) { return(true); } foreach (var hook in HookDangersense) { if (hook(i, j, type, player)) { return(true); } } return(false); }