buyTurnips (producedTurnips, endOfTheYear) {
    let cash = this.turnipDemand.weekly(producedTurnips)
    if (endOfTheYear) this.endOfTheYear()
    return cash
  }
/**
   * Buys produced turnips for the city
   * according to weekly and sometimes yearly demand
   * @param {number} producedTurnips
   * @param {boolean} buyYearlyHarvest
   */
Buys produced turnips for the city
according to weekly and sometimes yearly demand
@param {number} producedTurnips
@param {boolean} buyYearlyHarvest
Buys produced turnips for the city according to weekly and sometimes yearly demand @param { number } producedTurnips @param { boolean } buyYearlyHarvest
buyTurnips (producedTurnips, endOfTheYear) {
    let cash = this.turnipDemand.weekly(producedTurnips)
    if (endOfTheYear) this.endOfTheYear()
    return cash
  }
buyTurnips ( producedTurnips , endOfTheYear ) { let cash = this . turnipDemand . weekly ( producedTurnips ) if ( endOfTheYear ) this . endOfTheYear ( ) return cash }
Buys produced turnips for the city
 according to weekly and sometimes yearly demand
 @param {number} producedTurnips
 @param {boolean} buyYearlyHarvest
Buys produced turnips for the city according to weekly and sometimes yearly demand @param { number } producedTurnips @param { boolean } buyYearlyHarvest