Skip to content

Commit

Permalink
75-max 8 keywords
Browse files Browse the repository at this point in the history
  • Loading branch information
nlsui committed Jun 11, 2024
1 parent a238e31 commit 7764577
Show file tree
Hide file tree
Showing 21 changed files with 119 additions and 105 deletions.
4 changes: 4 additions & 0 deletions cardobject/card.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ func (c Card) ValidateTarget(t jsonschema.Targeting) error {
return nil
}

func (c Card) ValidateKeywordCount() error {
return nil
}

func (c Card) Validate() error {
return c.ValidateType(c)
}
Expand Down
8 changes: 4 additions & 4 deletions cardobject/class.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@ type ClassProvider interface {
ClassRestriction() Class
}

//CULTURE Class
// CULTURE Class
const CULTURE jsonschema.Class = "CULTURE"

//NATURE Class
// NATURE Class
const NATURE jsonschema.Class = "NATURE"

//MYSTICISM Class
// MYSTICISM Class
const MYSTICISM jsonschema.Class = "MYSTICISM"

//TECHNOLOGY Class
// TECHNOLOGY Class
const TECHNOLOGY jsonschema.Class = "TECHNOLOGY"

type Class struct {
Expand Down
12 changes: 6 additions & 6 deletions cardobject/comparator.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,22 @@ import (
"github.com/DecentralCardGame/cardobject/jsonschema"
)

//Contains Comparator
// Contains Comparator
const Contains = "CONTAINS"

//ContainsNot Comparator
// ContainsNot Comparator
const ContainsNot = "CONTAINSNOT"

//Equal Comparator
// Equal Comparator
const Equal = "EQUAL"

//Greater Comparator
// Greater Comparator
const Greater = "GREATER"

//Lesser Comparator
// Lesser Comparator
const Lesser = "LESSER"

//Uneaqual Comparator
// Uneaqual Comparator
const Uneaqual = "UNEQUAL"

var intComparators []string = []string{Equal, Greater, Lesser}
Expand Down
28 changes: 14 additions & 14 deletions cardobject/keyword.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,46 +10,46 @@ import (
const maxKeywordLength int = 10000
const minKeywordLength int = 0

//Anthem Keyword
// Anthem Keyword
const Anthem = "ANTHEM"

//Arm Keyword
// Arm Keyword
const Arm = "ARM"

//Arrival Keyword
// Arrival Keyword
const Arrival = "ARRIVAL"

//Battlecry Keyword
// Battlecry Keyword
const Battlecry = "BATTLECRY"

//Harm Keyword
// Harm Keyword
const Harm = "HARM"

//Kill Keyword
// Kill Keyword
const Kill = "KILL"

//OnConstruction Keyword
// OnConstruction Keyword
const OnConstruction = "ONCONSTRUCTION"

//OnDeath Keyword
// OnDeath Keyword
const OnDeath = "ONDEATH"

//OnSpawn Keyword
// OnSpawn Keyword
const OnSpawn = "ONSPAWN"

//Pay Keyword
// Pay Keyword
const Pay = "PAY"

//Periodic Keyword
// Periodic Keyword
const Periodic = "PERIODIC"

//Produce Keyword
// Produce Keyword
const Produce = "PRODUCE"

//Repair Keyword
// Repair Keyword
const Repair = "REPAIR"

//Tribute Keyword
// Tribute Keyword
const Tribute = "TRIBUTE"

type Keywords []Keyword
Expand Down
32 changes: 16 additions & 16 deletions cardobject/mode.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,52 +7,52 @@ import (
"github.com/DecentralCardGame/cardobject/jsonschema"
)

//All Mode
// All Mode
const All = "ALL"

//Changes Mode
// Changes Mode
const Changes = "CHANGES"

//Chosen Action
// Chosen Action
const ChosenAction = "CHOSENACTION"

//Chosen Entity
// Chosen Entity
const ChosenEntity = "CHOSENENTITY"

//Chosen Place
// Chosen Place
const ChosenPlace = "CHOSENPLACE"

//Decreases Mode
// Decreases Mode
const Decreases = "DECREASES"

//Increases Mode
// Increases Mode
const Increases = "INCREASES"

//Opponent Mode
// Opponent Mode
const Opponent = "OPPONENT"

//Opponents Mode
// Opponents Mode
const Opponents = "OPPONENTS"

//OpponentsChoice Mode
// OpponentsChoice Mode
const OpponentsChoice = "OPPONENTSCHOICE"

//Owners Mode
// Owners Mode
const Owners = "OWNERS"

//Random Mode
// Random Mode
const Random = "RANDOM"

//Target Mode
// Target Mode
const Target = "TARGET"

//This Mode
// This Mode
const This = "THIS"

//You Mode
// You Mode
const You = "YOU"

//Your Mode
// Your Mode
const Your = "YOUR"

var intChangeModes []string = []string{Increases, Decreases, Changes}
Expand Down
10 changes: 5 additions & 5 deletions cardobject/operator.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,19 @@ import (
"github.com/DecentralCardGame/cardobject/jsonschema"
)

//Add Operator
// Add Operator
const Add = "ADD"

//Gain Operator
// Gain Operator
const Gain = "GAIN"

//Lose Operator
// Lose Operator
const Lose = "LOSE"

//Set Operator
// Set Operator
const Set = "SET"

//Subtract Operator
// Subtract Operator
const Subtract = "SUBTRACT"

var abilityEffectOperators []string = []string{Gain}
Expand Down
16 changes: 8 additions & 8 deletions cardobject/property.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,28 +7,28 @@ import (
"github.com/DecentralCardGame/cardobject/jsonschema"
)

//BaseAttack Property
// BaseAttack Property
const BaseAttack = "BASEATTACK"

//BaseCostSum Property
// BaseCostSum Property
const BaseCostSum = "BASECOSTSUM"

//BaseHealth Property
// BaseHealth Property
const BaseHealth = "BASEHEALTH"

//CurrentAttack Property
// CurrentAttack Property
const CurrentAttack = "ATTACK"

//CurrentCostSum Property
// CurrentCostSum Property
const CurrentCostSum = "COSTSUM"

//CurrentHealth Property
// CurrentHealth Property
const CurrentHealth = "HEALTH"

//Name Property
// Name Property
const Name = "NAME"

//Text Property
// Text Property
const Text = "TEXT"

var actionIntProperties []string = []string{BaseCostSum, CurrentCostSum}
Expand Down
4 changes: 2 additions & 2 deletions cardobject/timeEvent.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ import (
"github.com/DecentralCardGame/cardobject/jsonschema"
)

//Combat TimeEvent
// Combat TimeEvent
const Combat = "COMBAT"

//Tickstart TimeEvent
// Tickstart TimeEvent
const Tickstart = "TICKSTART"

var timeEvents []string = []string{Combat, Tickstart}
Expand Down
6 changes: 3 additions & 3 deletions cardobject/token.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ import (
"github.com/DecentralCardGame/cardobject/jsonschema"
)

//Recruit Token
// Recruit Token
const Recruit = "1/1 human Recruit"

//Bot Token
// Bot Token
const Bot = "2/2 Bot"

//Beast Token
// Beast Token
const Beast = "3/3 animal Beast"

var tokenTypes []string = []string{Recruit, Bot, Beast}
Expand Down
16 changes: 8 additions & 8 deletions cardobject/variableNames.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,28 +7,28 @@ import (
"github.com/DecentralCardGame/cardobject/jsonschema"
)

//XVar VariableName
// XVar VariableName
const XVar = "X"

//YVar VariableName
// YVar VariableName
const YVar = "Y"

//ZVar VariableName
// ZVar VariableName
const ZVar = "Z"

//AVar VariableName
// AVar VariableName
const AVar = "A"

//BVar VariableName
// BVar VariableName
const BVar = "B"

//CVar VariableName
// CVar VariableName
const CVar = "C"

//MVar VariableName
// MVar VariableName
const MVar = "M"

//TVar VariableName
// TVar VariableName
const TVar = "T"

var intVariableNames []string = []string{XVar, YVar, ZVar}
Expand Down
14 changes: 7 additions & 7 deletions cardobject/zone.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,25 +7,25 @@ import (
"github.com/DecentralCardGame/cardobject/jsonschema"
)

//AttackLane Zone
// AttackLane Zone
const AttackLane = "ATTACKLANE"

//BlockLane Zone
// BlockLane Zone
const BlockLane = "BLOCKLANE"

//Deck Zone
// Deck Zone
const Deck = "DECK"

//Dustpile Zone
// Dustpile Zone
const Dustpile = "DUSTPILE"

//Field Zone
// Field Zone
const Field = "FIELD"

//Hand Zone
// Hand Zone
const Hand = "HAND"

//Void Zone
// Void Zone
const Void = "VOID"

var dynamicZones []string = []string{Deck, Dustpile, Field, Hand}
Expand Down
Loading

0 comments on commit 7764577

Please sign in to comment.