sovereignx/graphics/types
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
..
battle_icons1.pal Add B_SHOW_TYPES and cleaned up IsDoubleBattle (#5131) 2024-08-11 17:55:51 +02:00
battle_icons1.png Add B_SHOW_TYPES and cleaned up IsDoubleBattle (#5131) 2024-08-11 17:55:51 +02:00
battle_icons2.pal Add B_SHOW_TYPES and cleaned up IsDoubleBattle (#5131) 2024-08-11 17:55:51 +02:00
battle_icons2.png Add B_SHOW_TYPES and cleaned up IsDoubleBattle (#5131) 2024-08-11 17:55:51 +02:00
bug.png Fix file permissions. 2018-01-19 15:06:49 -05:00
contest_beauty.png Fix file permissions. 2018-01-19 15:06:49 -05:00
contest_cool.png Fix file permissions. 2018-01-19 15:06:49 -05:00
contest_cute.png Fix file permissions. 2018-01-19 15:06:49 -05:00
contest_smart.png Fix file permissions. 2018-01-19 15:06:49 -05:00
contest_tough.png Fix file permissions. 2018-01-19 15:06:49 -05:00
dark.png Fix file permissions. 2018-01-19 15:06:49 -05:00
dragon.png Fix file permissions. 2018-01-19 15:06:49 -05:00
electric.png Fix file permissions. 2018-01-19 15:06:49 -05:00
fairy.png Update fairy.png 2022-08-27 22:42:05 -04:00
fight.png Fix file permissions. 2018-01-19 15:06:49 -05:00
fire.png Fix file permissions. 2018-01-19 15:06:49 -05:00
flying.png Fix file permissions. 2018-01-19 15:06:49 -05:00
ghost.png Fix file permissions. 2018-01-19 15:06:49 -05:00
grass.png Fix file permissions. 2018-01-19 15:06:49 -05:00
ground.png Fix file permissions. 2018-01-19 15:06:49 -05:00
ice.png Fix file permissions. 2018-01-19 15:06:49 -05:00
move_types_1.pal Fix file permissions. 2018-01-19 15:06:49 -05:00
move_types_2.pal Fix file permissions. 2018-01-19 15:06:49 -05:00
move_types_3.pal Fix file permissions. 2018-01-19 15:06:49 -05:00
mystery.png Fix file permissions. 2018-01-19 15:06:49 -05:00
none.png Set TYPE_NONE as type 0 + other type data tweaks (#4462) 2024-06-01 07:38:22 +02:00
normal.png Fix file permissions. 2018-01-19 15:06:49 -05:00
poison.png Fix file permissions. 2018-01-19 15:06:49 -05:00
psychic.png Fix file permissions. 2018-01-19 15:06:49 -05:00
rock.png Fix file permissions. 2018-01-19 15:06:49 -05:00
steel.png Fix file permissions. 2018-01-19 15:06:49 -05:00
stellar.png Terastallization (#4110) 2024-04-24 11:17:46 +02:00
water.png Fix file permissions. 2018-01-19 15:06:49 -05:00