app/managers/PlayerAgentManager.js
//record statistical data to be sent to store
record statistical data to be sent to store
record statistical data to be sent to store
recordCardsFootprintToStore(cards, agent) {
    for (const card of cards) {
      const rarity = this.cards[card].rarity
      this.addStoreAction('modules/statistics/add_rarity_count', rarity,'commit')
      if (rarity >= 5) {
        this.addStoreAction('modules/messages/addMessage', {
          name: agent.name,
          message: `${agent.name} just got a card '${card}' of rarity ${rarity}`
        })
      }
    }
  }
recordCardsFootprintToStore ( cards , agent ) { for ( const card of cards ) { const rarity = this . cards [ card ] . rarity this . addStoreAction ( 'modules/statistics/add_rarity_count' , rarity , 'commit' ) if ( rarity >= 5 ) { this . addStoreAction ( 'modules/messages/addMessage' , { name : agent . name , message : ` ${ agent . name } ${ card } ${ rarity } ` } ) } } }
record statistical data to be sent to store
record statistical data to be sent to store