Files
tcgdex-golang/models/card_attack.go
2025-08-12 18:57:23 +02:00

17 lines
513 B
Go

package models
// CardAttack describes a single attack of a pokemon, for example 'Confuse Ray'.
type CardAttack struct {
// Name of the attack
Name string `json:"name"`
// Costs of the attack in the same order as listed on the card.
Costs []string `json:"cost"`
// Effect/Description of the attack, may be null for attacks without text.
Effect *string `json:"effect"`
// Damage the attack deals. May just be a number like '30', but can also be a multiplier like 'x20'.
Damage string `json:"damage"`
}