Skip to content

Critical Hit Cards

Sandrem edited this page Dec 25, 2017 · 2 revisions

(For version 0.1.2)

New critical hit card is created as child of class "CriticalHitCard.GenericCriticalHit"

Fields:

  • Name - Name of the critical hit card.
  • Type - CriticalCardType.Ship or CriticalCardType.Pilot.
  • CancelDiceResults - list of dice values that cancel crit during check. For example, DiceSide.Success and DiceSide.Crit. If list is empty (by default) - no dice checks are needed.
  • ImageUrl - path to image of critical hit card.
  • IsFaceUp

Method "AssignCrit"

  • Called to assign faceup damage card to a ship

Method "ApplyEffect"

  • Called when critical hit card is applied to the ship
  • Critical hit effects are added here
  • Critical hit tokens are assigned here

Method "DiscardEffect"

  • Called when critical hit card is flipped and loses it's effect