Skip to content

Hand levelling additions

Oinite edited this page Jun 15, 2026 · 2 revisions

Functions

The following parameters are used by all of the following functions, unless otherwise written:

  • hand - The key of a poker hand.
  • card - The card responsible for the level-up; used in some animations.
  • instant - If true, animations are skipped.

Spectrallib.l_chipsmult(hand, card, l_chips, l_mult, instant) -> nil

Additively increases the chips and/or mult level-up amounts of a given hand, that is this function increases the power of Planet Cards, for example. l_chips increases the chips level-up value, and l_mult increases the mult level-up value.

(Added by Entropy)

Spectrallib.xl_chips(hand, card, l_chips, instant) -> nil

Multiplicatively increases the chips level-up amount of a given hand, that is this function increases the power of Planet Cards, for example. l_chips is the value multiplied to the chips level-up value.

(Added by Entropy)

Spectrallib.xl_mult(hand, card, l_mult, instant) -> nil

Multiplicatively increases the mult level-up amount of a given hand, that is this function increases the power of Planet Cards, for example. l_mult is the value multiplied to the mult level-up value.

(Added by Entropy)

Spectrallib.l_asc(hand, card, asc_power, instant) -> nil

Increases the base Ascension Power of a given hand. asc_power increases the hand's Ascension Power.

(Added by Entropy)

Spectrallib.x_levels(args) -> nil

Multiplies hand levels by a given number. args is a table that takes the following fields:

  • level_up - The number to multiply by each hand level.
  • hands - A single or list of poker hand keys to level up.
  • instant - Optional: If true, no animation plays when this function is called.
  • from - Optional: A card or list of cards responsible for the level-up; used in some animations.
  • bypass_calculate - Optional: If true, function will not send out calculation contexts. Otherwise, the following calculation context is sent out:
{
	poker_hand_changed = true,
	slib_x_levels = args.level_up,
	card = args.from,
	scoring_name = hand_key,
	old_parameters = {
		chips = number,
		mult = number,
		<scoring_parameter_key> = number
	},
	new_parameters = {
		chips = number,
		mult = number,
		<scoring_parameter_key> = number
	},
}

(added by Lemniscate)

Clone this wiki locally