message: Extract getHasBrothel function in townRender
diff: @@ -229,11 +229,7 @@ export function townRender (town: Town) {
  town.guard.funding = getGuardFunding(town)
  - if (town.roll.sin > 75 && town.population > 300) {
  - town.hasBrothel = true
  - } else if (town.roll.sin > 20 && town.population > 1250) {
  - town.hasBrothel = true
  - }
  + town.hasBrothel = getHasBrothel(town)
  return town
  }
  @@ -266,3 +262,9 @@ function getGuardFunding (town: Town) {
  if (roll > 20) return 'The guard is quite underfunded, and their equipment is always in disrepair. Their officers are held accountable for their actions only when public pressure calls for it, though $town.guard.name does not have the funding to perform any training exercises.'
  return 'The guard is severely underfunded, and their equipment is always in disrepair. Their officers are held accountable for their actions only when $town.rulerType calls for it, though $town.guard.name does not have the funding to train their recruits, resulting in bullies being commonplace.'
  }
  +
  +function getHasBrothel (town: Town) {
  + if (town.roll.sin > 75 && town.population > 300) return true
  + if (town.roll.sin > 20 && town.population > 1250) return true
  + return false
  +}
  