26 lines
631 B
Go
26 lines
631 B
Go
package tome_lib
|
|
|
|
//go:generate enumer -type=CardType -json
|
|
type CardType int
|
|
|
|
const (
|
|
Valk CardType = iota
|
|
Speedster //ace, has haste
|
|
Commander //2, buffs row
|
|
Paladin //3, buffs neighbours
|
|
Scholar //4, draws card
|
|
Warrior //5, nothing
|
|
Fighter //6, nothing
|
|
Seven //7, seven
|
|
ShieldWall //8, only blocks
|
|
|
|
//new cards
|
|
HealthPotion //both players get +1 health
|
|
Tree //grows to 8 after five turns
|
|
Goblin //adds two other 1 strength units
|
|
GoblinSpawn //1 power goblin token
|
|
)
|
|
const (
|
|
EmptyValue CardType = -1
|
|
)
|