message: test trade roll
diff: <<for _i, _trade range $trade>>
  <<set _townPop to $town.population>>
  <<set _trade.roll to (_townPop /= _trade.sv)>> /* Set the number of trades equal to the town's population divided by how many people are needed to support that type of business */
  - <<if _trade.roll lt 1>>
  - <<set _trade.roll *= 100>>
  - <<set _roll to random(1, 100)>> /* if the population cannot support 1, then it's converted into a percentage chance that there's one of them */
  - <<if _trade.roll gte _roll>>
  - <<set _trade.count to 0>>
  - <<else>>
  + <<set _trade.rollPercentage to (_townPop /= _trade.sv) *= 100>>
  + <<set _trade.rollHundred to random(1, 100)>>
  + <<if _trade.roll lt 1 && _trade.rollPercentage gte _trade.rollHundred>>
  <<set _trade.count to 1>>
  - <</if>>
  + <<elseif _trade.roll lt 1 && _trade.rollPercentage lt _trade.rollHundred>>
  + <<set _trade.count to 0>>
  <<else>>
  <<set _trade.count to Math.trunc(_trade.roll)>> /* Truncate the number to a whole number */
  <</if>>
  