public static List<IntVec3> GetEffectZoneCells(IntVec3 alertSpeakerPosition)
{
IEnumerable<IntVec3> cellsInRange = GenRadial.RadialCellsAround(alertSpeakerPosition, Building_AlertSpeaker.alertSpeakerMaxRange, true);
List<IntVec3> effectZoneCells = new List<IntVec3>();
foreach (IntVec3 cell in cellsInRange)
{
if (cell.GetRoom() == alertSpeakerPosition.GetRoom())
{
effectZoneCells.Add(cell);
}
}
return effectZoneCells;
}