Skip to main content

Cards

DeckCard​

A card sitting in a Player's deck.

deck_card.package_id​

String, passed to CardProperties.from_package().

deck_card.code​

String, passed to CardProperties.from_package().

deck_card.namespace​

Undefined type, used to resolve to an Action.

CardProperties​

CardProperties.new()​

Returns a new CardProperties table with default values.

CardProperties.from_package(package_id, code?)​

Returns a new CardProperties table using package information.

card_properties.package_id​

String, used for resolving to an Action.

card_properties.namespace​

Undefined type, used for resolving to an Action.

card_properties.short_name​

String, displayed during time freeze.

card_properties.damage​

Number, influences generated HitProps.

Displayed during time freeze.

card_properties.boosted_damage​

Number, represents the increase in damage from boosts. You should also modify damage when adjusting this value, as damage represents the final damage value. Subtract this value from damage to get the original damage value.

card_properties.dynamic_damage​

Boolean or nil, decides whether function card_dynamic_damage(entity): number should be called to resolve damage on frames where this card is unused and visible.

CardProperties.resolve_damage() can be used to calculate the latest damage value.

card_properties.recover​

Number, used by other mods for conditional behavior.

card_properties.code​

String, used by other mods for conditional behavior.

card_properties.element​

Element, influences generated HitProps

card_properties.secondary_element​

Element, influences generated HitProps

card_properties.card_class​

Any of the values below:

  • CardClass.Standard
  • CardClass.Mega
  • CardClass.Giga
  • CardClass.Dark
  • CardClass.Recipe

card_properties.limit​

Number, used by other mods for conditional behavior, defaults to 0.

card_properties.hit_flags​

Hit, influences generated HitProps

card_properties.status_durations​

A table that maps frame durations for status hit flags.

card_properties.status_durations[Hit.Paralyze] = 30

See Hit.duration_for()

card_properties.can_boost​

Boolean or nil, used by other mods for conditional behavior.

card_properties.can_charge​

Boolean or nil, used by other mods for conditional behavior.

card_properties.time_freeze​

Boolean or nil, enables time freeze for the Action.

card_properties.skip_time_freeze_intro​

Boolean or nil, used by Actions to skip displaying the name of the attack and prevent time freeze countering.

Additionally the time freeze caused by this Action will not dim the screen.

card_properties.prevent_time_freeze_counter​

Boolean or nil, used to decide if a time freezing Action can be countered.

card_properties.conceal​

Boolean or nil, hides damage and displays question marks when the card's name is displayed to opponents.

card_properties.tags​

A list of strings, used by other mods for conditional behavior.

CardProperties.icon_texture(card_properties)​

Returns a string, usable anywhere a texture is needed.

CardProperties.resolve_damage(card_properties, entity)​

Returns a number, representing the resolved damage.