sovereignx/gflib
psf d1183f4b8a
Add B_SHOW_TYPES and cleaned up IsDoubleBattle (#5131)
* First attempt at a port

* Slightly broken but working

* Got images working and opponent palettes

* half finished compressed spritesheet approach instead

* fix the palettes (smh)

* fix hflip, and a lot of clean-up

* Add B_SHOW_TYPES

* Got Illusion working

* Add num type enum

* Updated function to get type

* Fixed type icon position and cleaned up functions

* Updated illusions and Tera handling

* Added BATTLE_TYPE_IS_SINGLE and DOUBLE

* Removed IS_BATTLE_TYPE_SINGLE

* Implemented BATTLE_TYPE_IS_DOUBLE across repo

* Removed SIDE macro

* Updated config

* Deprecated battler alive macro

* Reindented file

* Added exceptions for 2v1

* Replaced Fainted check with Null check

* Added functionality for only types of caught mons

* UseDoubleBattleCoords updated

* Added ShouldFlipTypeIcon

* Renamed TryLoadTypeIcon

* Refactored functions

* Refactored functions

* Refactored functions

* Refactored functions

* Renamed SEEN to CAUGHT

* Reset config

* Added useSecondPalette and isOrdinary to gTypesInfo

* Further simplified secondPalette and isOrdinary

* Changed isordinary to isSpecialCase

* Renamed to useSecondTypeIconPalette

* Fixed Stellar type interactions

* fixed spacing

* fixed include/config/battle.h

* fixed

* fixed include/config/general.h

* changed type1 and type2

* Moved IsDoubleBattle to include.battle.h
Removed BATTLE_TYPE_IS_DOUBLE
Removed IS_DOUBLE_BATTLE

* Changed IsBattlerFainted to IsBattlerAlive

* Removed IsBattlerNull

* Moved GetBattlerData to be inline

* Renamed GetMonDefensiveTeraType

* Removed IsIllusionActive

* Fixed identation

* found one last isDoubleBattle hold out

* fixed redundant brackets

* Fixed spacing for B_SHOW_TYPES

* Update src/battle_script_commands.c

Co-authored-by: Alex <93446519+AlexOn1ine@users.noreply.github.com>

* Fixed padding

* Reindent file and refactored GetTypeIconHideMovement

* Update include/data.h

---------

Co-authored-by: RavePossum <ravepossum@proton.me>
Co-authored-by: Frank <fdeblasio1004@gmail.com>
Co-authored-by: Alex <93446519+AlexOn1ine@users.noreply.github.com>
2024-08-11 17:55:51 +02:00
..
bg.c Use u32 in gflib functions and remove unused (#4250) 2024-03-06 22:22:05 +01:00
bg.h Use u32 in gflib functions and remove unused (#4250) 2024-03-06 22:22:05 +01:00
blit.c
blit.h
characters.h Revert "Guillotine: Decapitalize everything (#3949)" (#4525) 2024-05-13 19:19:37 +02:00
dma3.h Use u32 in gflib functions and remove unused (#4250) 2024-03-06 22:22:05 +01:00
dma3_manager.c Use u32 in gflib functions and remove unused (#4250) 2024-03-06 22:22:05 +01:00
gpu_regs.c
gpu_regs.h
io_reg.c Use u32 in gflib functions and remove unused (#4250) 2024-03-06 22:22:05 +01:00
io_reg.h
malloc.c Merge branch '_RHH/master' into _RHH/upcoming 2024-07-21 13:36:07 -04:00
malloc.h Merge remote-tracking branch '_pret/master' into RHH/pr/upcoming/pret_20231210 2023-12-10 13:27:09 -03:00
sprite.c Add B_SHOW_TYPES and cleaned up IsDoubleBattle (#5131) 2024-08-11 17:55:51 +02:00
sprite.h Add B_SHOW_TYPES and cleaned up IsDoubleBattle (#5131) 2024-08-11 17:55:51 +02:00
string_util.c Revert "Guillotine: Decapitalize everything (#3949)" (#4525) 2024-05-13 19:19:37 +02:00
string_util.h Revert "Guillotine: Decapitalize everything (#3949)" (#4525) 2024-05-13 19:19:37 +02:00
text.c Allow users to increase MAX_MONEY (#4943) 2024-07-13 11:16:34 +02:00
text.h Merge branch '_RHH/master' into _RHH/upcoming 2024-05-15 09:58:21 -04:00
window.c Narrower fonts 2024-04-25 18:40:37 +01:00
window.h Narrower fonts 2024-04-25 18:40:37 +01:00