void SpawnChair(Stencil s, ThingDef thing, ThingDef stuff) { if (s.Check(IsValidChairTile)) { s.Spawn(thing, stuff); } if (s.Chance(chairPawnChance) && s.IsInMap()) { GenCity.SpawnInhabitant(s.pos, s.map); } }