add ally card type

This commit is contained in:
stryan 2021-11-10 17:44:42 -05:00
parent 8f9ee5cfbb
commit 3648b6ba16
2 changed files with 22 additions and 17 deletions

View File

@ -15,10 +15,14 @@ const (
ShieldWall //8, only blocks
//new cards
//Rank 1
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
//Rank 2
Ally //puts +1 token on allied unit
)
const (
EmptyValue CardType = -1

View File

@ -8,9 +8,9 @@ import (
"fmt"
)
const _CardTypeName = "EmptyValueValkSpeedsterCommanderPaladinScholarWarriorFighterSevenShieldWallHealthPotionTreeGoblinGoblinSpawn"
const _CardTypeName = "EmptyValueValkSpeedsterCommanderPaladinScholarWarriorFighterSevenShieldWallHealthPotionTreeGoblinGoblinSpawnAlly"
var _CardTypeIndex = [...]uint8{0, 10, 14, 23, 32, 39, 46, 53, 60, 65, 75, 87, 91, 97, 108}
var _CardTypeIndex = [...]uint8{0, 10, 14, 23, 32, 39, 46, 53, 60, 65, 75, 87, 91, 97, 108, 112}
func (i CardType) String() string {
i -= -1
@ -20,7 +20,7 @@ func (i CardType) String() string {
return _CardTypeName[_CardTypeIndex[i]:_CardTypeIndex[i+1]]
}
var _CardTypeValues = []CardType{-1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12}
var _CardTypeValues = []CardType{-1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13}
var _CardTypeNameToValueMap = map[string]CardType{
_CardTypeName[0:10]: -1,
@ -37,6 +37,7 @@ var _CardTypeNameToValueMap = map[string]CardType{
_CardTypeName[87:91]: 10,
_CardTypeName[91:97]: 11,
_CardTypeName[97:108]: 12,
_CardTypeName[108:112]: 13,
}
// CardTypeString retrieves an enum value from the enum constants string name.