app/game/server/services/lib/victory_token_gainer.js
VictoryTokenGainer = class VictoryTokenGainer {
constructor(game, player_cards, source) {
this.game = game
this.player_cards = player_cards
this.source = source
}
gain(amount) {
this.player_cards.victory_tokens += amount
let source_text = this.source ? ` due to ${CardView.render(this.source)}` : ''
this.game.log.push(` <strong>${this.player_cards.username}</strong> takes +${amount} ∇${source_text}`)
}
}