sovereignx/include
LOuroboros 80ffaa5e2c
Raised the limit of max items per stack to 999 (#3923)
* Expanded the amount of max items per stack from 99 to 999

* Set Battle Pyramid Bag stack limit back to 99
This commit exists for archival purposes.
People who may want to set the limit of item stacks in the Battle Pyramid's bag to 999 can refer to its code diff.

* Reintroduced the Battle Pyramid changes through a MAX_PYRAMID_BAG_ITEM_CAPACITY constant

* Gave 3 digit support to the Battle Pyramid's bag

* Rewrote the comment for MAX_PYRAMID_BAG_ITEM_CAPACITY

* Made DebugAction_Give_Item_SelectQuantity use MAX_ITEM_DIGITS

* Ditched BERRY_CAPACITY_DIGITS and BAG_ITEM_CAPACITY_DIGITS

* Removed MAX_BERRY_CAPACITY
No point in keeping it if we're making all item stacks cap at 999.

* Applied review corrections

* Removed pointless local var in DebugAction_Give_Item_SelectQuantity

* Defined a MAX_PYRAMID_ITEM_DIGITS

* Cleaned up some of the functions in which MAX_ITEM_DIGITS is used

Summary:
-Removed pointless local variables in CheckBagHasSpace, AddBagItem, PrintItemQuantity and PrintItemSoldAmount.
-Removed pointless brackets in an if statement of CheckBagHasSpace.
-Initialized the pocket local variable of CheckBagHasSpace from the get go to save a few lines too.

---------

Co-authored-by: Eduardo Quezada D'Ottone <eduardo602002@gmail.com>
2024-01-14 16:32:38 -03:00
..
config Add updated EV configs (#3993) 2024-01-14 15:26:34 +01:00
constants Raised the limit of max items per stack to 999 (#3923) 2024-01-14 16:32:38 -03:00
gba Merge branch '_RHH/master' into _RHH/upcoming 2024-01-09 09:19:12 -03:00
test VSync BENCHMARKs and avoid AdvanceRandom in tests (#3866) 2023-12-30 11:10:40 +01:00
agb_flash.h
AgbRfu_LinkManager.h
apprentice.h
bard_music.h
battle.h Merge branch '_RHH/master' into _RHH/upcoming 2024-01-11 19:51:11 -03:00
battle_ai_main.h Fix Wall Werrors on modern (#3412) 2023-10-13 18:39:35 +02:00
battle_ai_switch_items.h add emitResult argument to ShouldSwitch AI functions (#3784) 2023-12-21 11:40:04 +01:00
battle_ai_util.h Move functions to battle_ai_util.c 2024-01-12 04:01:33 +09:00
battle_anim.h Merge branch '_RHH/master' into _RHH/upcoming 2024-01-09 09:19:12 -03:00
battle_arena.h
battle_bg.h
battle_controllers.h Adds Raging Bull and various fixes (#3552) 2023-11-19 17:45:58 +01:00
battle_debug.h
battle_dome.h health bar update 2023-08-07 10:29:02 +02:00
battle_dynamax.h Dynamax Cleanup (#3435) 2023-10-23 11:39:22 +01:00
battle_factory.h
battle_factory_screen.h
battle_gfx_sfx_util.h remove almost all usage of active battler 2023-08-30 11:21:10 +02:00
battle_interface.h Ally Switch (#3533) 2023-12-20 15:26:28 +01:00
battle_main.h Refactor trainer classes (#3875) 2024-01-04 13:30:42 +01:00
battle_message.h Dynamax messages (#3581) 2023-11-21 19:18:18 +01:00
battle_pike.h
battle_pyramid.h
battle_pyramid_bag.h
battle_records.h
battle_script_commands.h Renamed seteffectwithchance to setadditionaleffects 2023-12-30 20:29:09 +09:00
battle_scripts.h Applied more review fixes 2024-01-12 03:02:48 +09:00
battle_setup.h Port pokefirered's Vs. Seeker to pokeemerald (#3256) 2023-11-26 18:58:43 +01:00
battle_tent.h
battle_tower.h
battle_transition.h
battle_transition_frontier.h
battle_tv.h
battle_util.h Applied more review fixes 2024-01-12 03:02:48 +09:00
battle_util2.h
battle_z_move.h Removed some hardcoded move IDs (#3982) 2024-01-12 22:41:46 +01:00
berry.h Remove unused function 2024-01-04 16:04:00 +00:00
berry_blender.h
berry_crush.h
berry_fix_program.h
berry_powder.h
berry_tag_screen.h
bike.h
birch_pc.h Refactor dex completion (again) (#3937) 2024-01-11 13:35:31 -03:00
braille_puzzles.h
cable_club.h
clear_save_data_menu.h
clock.h Fixed Cheat Start not initiating time-based events (#3446) 2023-10-22 21:03:54 +02:00
coins.h
confetti_util.h
config.h Optional high-quality RNG (#3780) 2023-12-22 17:39:15 +00:00
contest.h Merge branch 'master' of https://github.com/pret/pokeemerald into pretmergenewyears 2023-12-30 20:49:05 +01:00
contest_ai.h
contest_effect.h
contest_link.h
contest_painting.h
contest_util.h
coord_event_weather.h
credits.h Remove ewram in headers 2023-08-10 20:11:07 -04:00
crt0.h Allocate initialized sections for EWRAM and IWRAM (#3892) 2024-01-02 14:24:52 +00:00
data.h Refactor trainer classes (#3875) 2024-01-04 13:30:42 +01:00
daycare.h HGSS Style Pokedex (#3288) 2023-10-02 17:28:37 -03:00
debug.h Added support for XY's Sky Battles (#2950) 2023-11-26 16:59:44 +01:00
decompress.h Species Simplifier™ - Part 3 (#3562) 2023-12-08 15:05:10 +01:00
decoration.h Remove ewram in headers 2023-08-10 20:11:07 -04:00
decoration_inventory.h
dewford_trend.h
digit_obj_util.h
diploma.h
dodrio_berry_picking.h
dynamic_placeholder_text_util.h
easy_chat.h Merge remote-tracking branch 'pret/master' into RHH/pr/sync/pretsync20230413 2023-04-13 17:05:48 -04:00
egg_hatch.h
ereader_helpers.h
ereader_screen.h
event_data.h
event_object_lock.h
event_object_movement.h Remove redundant table 2024-01-04 16:07:12 +00:00
event_scripts.h Implement Pokemon Box Link functionality (#3837) 2023-12-28 11:47:00 +01:00
evolution_graphics.h
evolution_scene.h
expansion_intro.h
faraway_island.h
field_camera.h
field_control_avatar.h Treat map data as const 2023-03-08 12:00:30 -05:00
field_door.h
field_effect.h
field_effect_helpers.h
field_message_box.h
field_player_avatar.h
field_poison.h
field_screen_effect.h
field_special_scene.h
field_specials.h Merge branch 'feature/dynmulti' into feature/dynmulti-expansion 2023-12-26 14:22:49 +01:00
field_tasks.h
field_weather.h Fix Wall Werrors on modern (#3412) 2023-10-13 18:39:35 +02:00
fieldmap.h Move battle tests off the heap (#3414) 2023-10-13 16:31:10 -03:00
fldeff.h
fldeff_misc.h
fonts.h
fpmath.h Refactor damage formula to match Gen5+ (#3196) 2023-08-11 16:28:38 -04:00
frontier_pass.h
frontier_util.h
global.berry.h Remove leftover code for myself 2024-01-04 16:12:39 +00:00
global.fieldmap.h Port pokefirered's Vs. Seeker to pokeemerald (#3256) 2023-11-26 18:58:43 +01:00
global.h Raised the limit of max items per stack to 999 (#3923) 2024-01-14 16:32:38 -03:00
global.tv.h Fix Bravo Trainer Tower member names 2023-08-08 14:38:00 -04:00
graphics.h Merge branch 'master' of https://github.com/pret/pokeemerald into pretmergenewyears 2023-12-30 20:49:05 +01:00
gym_leader_rematch.h
hall_of_fame.h
heal_location.h
image_processing_effects.h
international_string_util.h Species Simplifier™ - Part 3 (#3562) 2023-12-08 15:05:10 +01:00
intro.h
intro_credits_graphics.h
item.h Moved Item Effects to gItems (#3991) 2024-01-14 10:03:48 +01:00
item_icon.h
item_menu.h Add Mulch effects 2023-12-03 13:17:34 +01:00
item_menu_icons.h
item_use.h Merge branch 'upcoming' into berryexpansion 2023-12-29 14:32:10 +01:00
landmark.h
level_caps.h New Feature: Level Caps (#3632) 2024-01-09 18:47:23 +01:00
libgcnmultiboot.h
librfu.h Detect potential misalignment in modern 2023-07-24 19:42:56 +01:00
lilycove_lady.h
link.h Detect potential misalignment in modern 2023-07-24 19:42:56 +01:00
link_rfu.h
list_menu.h
load_save.h
lottery_corner.h
m4a.h
mail.h
main.h
main_menu.h
map_name_popup.h
match_call.h
math_util.h
mauville_old_man.h
menu.h
menu_helpers.h
menu_specialized.h
metatile_behavior.h
mini_printf.h
minigame_countdown.h
mirage_tower.h
mon_markings.h Detect potential misalignment in modern 2023-07-24 19:42:56 +01:00
money.h Changed 999999 in MaxMoney to MAX_MONEY constant (#3015) 2023-05-20 08:25:59 -04:00
move_relearner.h
multiboot.h
multiboot_pokemon_colosseum.h
mystery_event_menu.h
mystery_event_msg.h
mystery_event_script.h
mystery_gift.h
mystery_gift_client.h
mystery_gift_link.h
mystery_gift_menu.h
mystery_gift_server.h
mystery_gift_view.h
naming_screen.h
new_game.h
option_menu.h
overworld.h Fixed outstanding UB with -fanalyzer on modern 2023-07-21 15:51:03 -04:00
palette.h Detect potential misalignment in modern 2023-07-24 19:42:56 +01:00
palette_util.h
party_menu.h Moved Item Effects to gItems (#3991) 2024-01-14 10:03:48 +01:00
pc_screen_effect.h
play_time.h
player_pc.h
pokeball.h start removing gActiveBattler in controller emitters 2023-08-29 15:21:31 +02:00
pokeblock.h
pokedex.h Removed footprint field when P_FOOTPRINTS is FALSE (#3925) 2024-01-04 21:54:03 +01:00
pokedex_area_region_map.h
pokedex_area_screen.h
pokedex_cry_screen.h
pokedex_plus_hgss.h [pokedex_plus] refactor #if to C if 2023-10-22 03:26:24 +02:00
pokemon.h Moved Item Effects to gItems (#3991) 2024-01-14 10:03:48 +01:00
pokemon_animation.h
pokemon_debug.h
pokemon_icon.h Species Simplifier™ - Part 3 (#3562) 2023-12-08 15:05:10 +01:00
pokemon_jump.h
pokemon_size_record.h
pokemon_storage_system.h Add support for legendary fusion (#3274) 2023-11-23 22:59:51 +01:00
pokemon_summary_screen.h Merge branch 'master' of https://github.com/pret/pokeemerald into pretmergenewyears 2023-12-30 20:49:05 +01:00
pokenav.h Add PokéNav too 2023-12-12 23:20:22 +01:00
random.h Merge branch 'upcoming' of https://github.com/rh-hideout/pokeemerald-expansion into secondary_effects_overhaul_merge 2024-01-01 03:50:36 +09:00
rayquaza_scene.h
record_mixing.h
recorded_battle.h Optional high-quality RNG (#3780) 2023-12-22 17:39:15 +00:00
region_map.h
reload_save.h
reset_rtc_screen.h
reshow_battle_screen.h Ally Switch (#3533) 2023-12-20 15:26:28 +01:00
roamer.h
rotating_gate.h
rotating_tile_puzzle.h
roulette.h
rtc.h Add config for times of day (#3579) 2023-11-24 15:57:08 +01:00
safari_zone.h
save.h
save_location.h
scanline_effect.h Detect potential misalignment in modern 2023-07-24 19:42:56 +01:00
script.h
script_menu.h Merge branch 'feature/dynmulti' into feature/dynmulti-expansion 2023-12-26 14:22:49 +01:00
script_movement.h
script_pokemon_util.h
secret_base.h
shop.h Remove ewram in headers 2023-08-10 20:11:07 -04:00
siirtc.h Renamed time amounts 2023-09-20 19:04:50 -03:00
slot_machine.h
sound.h
start_menu.h
starter_choose.h
strings.h Merge branch 'upcoming' of https://github.com/rh-hideout/pokeemerald-expansion into berryexpansion 2024-01-05 00:32:21 +01:00
task.h
test_runner.h Tests do not allow to use SEND_OUT if the chosen mon is fainted (#3752) 2023-12-23 00:27:40 +01:00
text_window.h
tileset_anims.h
tilesets.h
time_events.h
title_screen.h
trade.h
trader.h
trainer_card.h
trainer_hill.h
trainer_pokemon_sprites.h Backwards-compatible BoxPokémon Refactor (#3438) 2023-12-27 17:48:17 +01:00
trainer_see.h Port pokefirered's Vs. Seeker to pokeemerald (#3256) 2023-11-26 18:58:43 +01:00
trig.h
tv.h
union_room.h
union_room_battle.h
union_room_chat.h Easy Chat always shows words in uppercase 2023-06-06 10:55:42 -04:00
union_room_player_avatar.h
util.h fix -Warray-parameter, -Waddress, -Warray-bounds warnings 2023-10-16 09:36:36 +01:00
vs_seeker.h Port pokefirered's Vs. Seeker to pokeemerald (#3256) 2023-11-26 18:58:43 +01:00
walda_phrase.h
wallclock.h
wild_encounter.h Fixes Synchronize's OW effect and adds configs (#3480) 2023-10-28 23:24:20 -03:00
wonder_news.h