MCPcopy Create free account
hub / github.com/bfbbdecomp/bfbb / fillCombo

Function fillCombo

src/SB/Game/zCombo.cpp:64–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62};
63
64static void fillCombo(zComboReward* reward)
65{
66 S32 rewardLeft = reward->reward;
67 S32 j = 0;
68
69 while (rewardLeft > 0)
70 {
71 if (rewardLeft >= globals.player.g.ShinyValuePurple)
72 {
73 reward->rewardList[j++] = 0;
74 rewardLeft -= globals.player.g.ShinyValuePurple;
75 }
76 else if (rewardLeft >= globals.player.g.ShinyValueBlue)
77 {
78 reward->rewardList[j++] = 1;
79 rewardLeft -= globals.player.g.ShinyValueBlue;
80 }
81 else if (rewardLeft >= globals.player.g.ShinyValueGreen)
82 {
83 reward->rewardList[j++] = 2;
84 rewardLeft -= globals.player.g.ShinyValueGreen;
85 }
86 else if (rewardLeft >= globals.player.g.ShinyValueYellow)
87 {
88 reward->rewardList[j++] = 3;
89 rewardLeft -= globals.player.g.ShinyValueYellow;
90 }
91 else
92 {
93 reward->rewardList[j++] = 4;
94 rewardLeft -= globals.player.g.ShinyValueRed;
95 }
96 }
97
98 reward->rewardNum = j;
99}
100
101void zCombo_Setup()
102{

Callers 1

zCombo_SetupFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected