summaryrefslogtreecommitdiff
path: root/src/update_objects.c
diff options
context:
space:
mode:
authorMegaMech <MegaMech@users.noreply.github.com>2024-05-03 21:38:56 -0600
committerGitHub <noreply@github.com>2024-05-03 21:38:56 -0600
commite86b876992e8fa6c5724771ad5bb20ee49f84ad4 (patch)
treebd2d527039317f2ad0c06cde2ef6612065ac985f /src/update_objects.c
parent1fbf28a78d8b6dd8136aa628b5b1bc3d4c9b9223 (diff)
Changes (#9)
Diffstat (limited to 'src/update_objects.c')
-rw-r--r--src/update_objects.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/update_objects.c b/src/update_objects.c
index 46533bd42..b889b485c 100644
--- a/src/update_objects.c
+++ b/src/update_objects.c
@@ -3621,28 +3621,29 @@ u8 gen_random_item(s16 rank, s16 isCpu)
if (gModeSelection == VERSUS) {
switch (gPlayerCountSelection1) {
case TWO_PLAYERS_SELECTED:
- curve = segmented_to_virtual((void *) common_versus_2_player_item_curve);
+ //curve = segmented_to_virtual((void *) common_versus_2_player_item_curve);
break;
case THREE_PLAYERS_SELECTED:
- curve = segmented_to_virtual((void *) common_versus_3_player_item_curve);
+ //curve = segmented_to_virtual((void *) common_versus_3_player_item_curve);
break;
case FOUR_PLAYERS_SELECTED:
- curve = segmented_to_virtual((void *) common_versus_4_player_item_curve);
+ //curve = segmented_to_virtual((void *) common_versus_4_player_item_curve);
break;
}
randomItem = *((rank * 100) + curve + sRandomItemIndex);
} else if (gModeSelection == BATTLE) {
- curve = segmented_to_virtual((void *) common_battle_item_curve);
+ //curve = segmented_to_virtual((void *) common_battle_item_curve);
randomItem = curve[sRandomItemIndex];
} else { // GP Mode
if (isCpu == 0) {
- curve = segmented_to_virtual((void *) common_grand_prix_human_item_curve);
+ //curve = segmented_to_virtual((void *) common_grand_prix_human_item_curve);
}
else {
- curve = segmented_to_virtual((void *) common_grand_prix_kart_ai_item_curve);
+ //curve = segmented_to_virtual((void *) common_grand_prix_kart_ai_item_curve);
}
- randomItem = *((rank * 100) + curve + sRandomItemIndex);
+ // *((rank * 100) + curve + sRandomItemIndex)
+ randomItem = 1;
}
return randomItem;
}