Terastallization (#4110)
* wrote foundational terastal tests
* implemented baseline test-only Tera functionality; modified GetBattlerType + STAB calculations, misc. changes to some moves
* added tests and func. for Stellar type, more tests for Tera Blast
* more tests for Stellar type, Conversion fixes, Color Change + Conversion2 future proof
* implemented tera blast, expanded stellar type func., fixed tests
* last set of Tera/Tera Blast tests for checklist, protean fix
* implemented in-battle Terastallization, WIP stellar indicator and tera animation
* fixed bad merge
* expanded NUMBER_OF_MON_TYPES, cut down on TYPE_STELLAR hackiness, added Stellar type to summary
* fixed type indicators
* added tera logic to AI
* implemented code review changes, added B_TERA_ORB_NO_COST
* updated AI to calc damage with Tera when applicable; minor rework to AI gimmick handling
* fixed Tera Blast split choice occuring when not Terastallized
* fixed Tera Blast using Last Respects BP calcs
* added tera type to TrainerMon, code review tweaks
2024-04-24 10:17:46 +01:00
|
|
|
#ifndef GUARD_BATTLE_TERASTAL_H
|
|
|
|
#define GUARD_BATTLE_TERASTAL_H
|
|
|
|
|
2024-06-22 21:25:40 +01:00
|
|
|
void ActivateTera(u32 battler);
|
2024-05-07 12:59:52 +01:00
|
|
|
void ApplyBattlerVisualsForTeraAnim(u32 battler);
|
Terastallization (#4110)
* wrote foundational terastal tests
* implemented baseline test-only Tera functionality; modified GetBattlerType + STAB calculations, misc. changes to some moves
* added tests and func. for Stellar type, more tests for Tera Blast
* more tests for Stellar type, Conversion fixes, Color Change + Conversion2 future proof
* implemented tera blast, expanded stellar type func., fixed tests
* last set of Tera/Tera Blast tests for checklist, protean fix
* implemented in-battle Terastallization, WIP stellar indicator and tera animation
* fixed bad merge
* expanded NUMBER_OF_MON_TYPES, cut down on TYPE_STELLAR hackiness, added Stellar type to summary
* fixed type indicators
* added tera logic to AI
* implemented code review changes, added B_TERA_ORB_NO_COST
* updated AI to calc damage with Tera when applicable; minor rework to AI gimmick handling
* fixed Tera Blast split choice occuring when not Terastallized
* fixed Tera Blast using Last Respects BP calcs
* added tera type to TrainerMon, code review tweaks
2024-04-24 10:17:46 +01:00
|
|
|
bool32 CanTerastallize(u32 battler);
|
|
|
|
u32 GetBattlerTeraType(u32 battler);
|
|
|
|
void ExpendTypeStellarBoost(u32 battler, u32 type);
|
|
|
|
bool32 IsTypeStellarBoosted(u32 battler, u32 type);
|
|
|
|
uq4_12_t GetTeraMultiplier(u32 battler, u32 type);
|
|
|
|
|
|
|
|
u16 GetTeraTypeRGB(u32 type);
|
|
|
|
|
|
|
|
#endif
|