private string CheckClearForThrown(Loc vector, MapTile activeTile) { Loc newLoc = Loc.AddPts(vector, activeTile.loc); if (!Refs.m.TileByLoc(newLoc).clear) { return("wall"); } foreach (Cubi c in Refs.h.roster) { if (Loc.Same(newLoc, c.loc)) { return("cubi"); } } foreach (Loc pent in Refs.m.pents) { if (Loc.Same(newLoc, pent)) { return("pent"); } } return("clear"); }