GBAlatro
A Demake of Balatro for the GBA
Loading...
Searching...
No Matches
RewardTypeData Struct Reference

Data struct for the different types of rewards. More...

Data Fields

const char * text
 the name of the reward (i.e. "Hands")
 
const u8 text_color
 the color the name of the reward is printed with
 
const int multiplier
 how many dollars the player recieves every time a certain type of reward is counted towards the total cashout. Equal to 1 most of the time, but the Investment Tag increments by a full reward amount per tag so the the multiplier is a full amount.
 
int count
 how many times the reward was earned by the player during the last round
 
int remaining
 how many times the reward still needs to be counted for this End of Round
 

Detailed Description

Data struct for the different types of rewards.

Contains both constant info (display, reward amount), and variables used during the round end animation.

Definition at line 65 of file round_end.c.

Field Documentation

◆ count

int count

how many times the reward was earned by the player during the last round

Definition at line 90 of file round_end.c.

◆ multiplier

const int multiplier

how many dollars the player recieves every time a certain type of reward is counted towards the total cashout. Equal to 1 most of the time, but the Investment Tag increments by a full reward amount per tag so the the multiplier is a full amount.

Note
make this not const if "To the Moon" is ever implemented, since it increases the Interest multiplier from 1 to 2

Definition at line 85 of file round_end.c.

◆ remaining

int remaining

how many times the reward still needs to be counted for this End of Round

Definition at line 95 of file round_end.c.

◆ text

const char* text

the name of the reward (i.e. "Hands")

Definition at line 70 of file round_end.c.

◆ text_color

const u8 text_color

the color the name of the reward is printed with

Definition at line 75 of file round_end.c.


The documentation for this struct was generated from the following file: