Manual

From CCG Kit
Revision as of 01:07, 25 April 2017 by David (Talk | contribs) (Created page with "== Stats == Stats are a fundamental concept in CCG Kit. They represent integer values that change during a game and are used in both players and cards. For example, a player...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Stats

Stats are a fundamental concept in CCG Kit. They represent integer values that change during a game and are used in both players and cards. For example, a player could have life and mana stats and a creature card could have cost, attack and defense stats. Stats are transmitted over the network, which means you should only use them to represent values that can actually change over the course of a game.

Stats have the following properties:

  • Minimum value: The minimum value of the stat.
  • Maximum value: The maximum value of the stat.
  • Modifiers: The modifiers that affect the current value (+3, -1, etc.). They can be permanent or temporary (i.e., they have a duration of X turns). A modifier cannot change the effective value of the stat to be lower than its minimum value or higher than its maximum value.
  • Effective value: The current value of the stat with all its modifiers applied.

Effects

Effects.