summaryrefslogtreecommitdiff
path: root/src/code_80005FD0.c
diff options
context:
space:
mode:
authorMegaMech <MegaMech@users.noreply.github.com>2025-06-30 13:18:28 -0600
committerGitHub <noreply@github.com>2025-06-30 13:18:28 -0600
commit0332f562817df9c48b5dfe598eaf42668d24643b (patch)
tree9b694379ee5e594442647ac0d0fce47b13543299 /src/code_80005FD0.c
parent7b061dfe3d969ecd4a538b1113eed5969e758e75 (diff)
Update code_80005FD0.c (#404)
Diffstat (limited to 'src/code_80005FD0.c')
-rw-r--r--src/code_80005FD0.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/code_80005FD0.c b/src/code_80005FD0.c
index a3d822bc8..e0a62a252 100644
--- a/src/code_80005FD0.c
+++ b/src/code_80005FD0.c
@@ -7087,15 +7087,15 @@ void cpu_use_item_strategy(s32 playerId) {
switch (temp_s0->branch) {
case CPU_STRATEGY_WAIT_NEXT_ITEM:
temp_s0->actorIndex = -1;
- if (CVarGetInteger("gHarderCPU", 0) == 1) {
- if (((gNumPathPointsTraversed[playerId] + (playerId * 0x14) + 0x64) % 0x8 == 0) &&
- (temp_s0->timer >= 0x200)) {
+
+ // Harder CPU Items
+ if (((gNumPathPointsTraversed[playerId] + (playerId * 0x14) + 0x64) % 0x8 == 0) &&
+ (temp_s0->timer >= 0x200) && (CVarGetInteger("gHarderCPU", 0) == true)) {
cpu_decisions_branch_item(playerId, &temp_s0->branch,
hard_cpu_gen_random_item((s16) gLapCountByPlayerId[playerId],
gGPCurrentRaceRankByPlayerId[playerId]));
- }
- }
- if ((((playerId * 0x14) + 0x64) < gNumPathPointsTraversed[playerId]) && (temp_s0->timer >= 0x259) &&
+ // Stock CPU Items
+ } else if ((((playerId * 0x14) + 0x64) < gNumPathPointsTraversed[playerId]) && (temp_s0->timer >= 0x259) &&
(temp_s0->numItemUse < 3) && (gLapCountByPlayerId[playerId] < 3)) {
cpu_decisions_branch_item(playerId, &temp_s0->branch,
cpu_gen_random_item((s16) gLapCountByPlayerId[playerId],