createProducer (structureType, tile) {
    var sType = this.checkStructureType(structureType)

    var producer
    switch (sType.type) {
      case 'refinery':
        producer = this.createRefiner(sType, tile)
        break
      case 'producer_structure':
        producer = this.createPrimaryProducer(sType, tile)
        break
      default:
        tile.moisture -= 25
        producer = this.createSpecialStructure(sType, tile)
    }
    return new AllDecorator({producer: producer, tile: tile})
  }
/**
   * Returns either a function that yields turnips weekly or one that
   * yields only during harvesting months, depending on the structure type.
   */
Returns either a function that yields turnips weekly or one that
yields only during harvesting months, depending on the structure type.
Returns either a function that yields turnips weekly or one that yields only during harvesting months depending on the structure type .
createProducer (structureType, tile) {
    var sType = this.checkStructureType(structureType)
    var producer
    switch (sType.type) {
      case 'refinery':
        producer = this.createRefiner(sType, tile)
        break
      case 'producer_structure':
        producer = this.createPrimaryProducer(sType, tile)
        break
      default:
        tile.moisture -= 25
        producer = this.createSpecialStructure(sType, tile)
    }
    return new AllDecorator({producer: producer, tile: tile})
  }
createProducer ( structureType , tile ) { var sType = this . checkStructureType ( structureType ) var producer switch ( sType . type ) { case 'refinery' : producer = this . createRefiner ( sType , tile ) break case 'producer_structure' : producer = this . createPrimaryProducer ( sType , tile ) break default : tile . moisture -= 25 producer = this . createSpecialStructure ( sType , tile ) } return new AllDecorator ( { producer : producer , tile : tile } ) }
Returns either a function that yields turnips weekly or one that
 yields only during harvesting months, depending on the structure type.
Returns either a function that yields turnips weekly or one that yields only during harvesting months depending on the structure type .