Battle Dome: Difference between revisions

→‎Battle style: Okay, now I get what's going on here. Adding some more detail on the other information that the card displays.
(→‎Battle style: https://github.com/pret/pokeemerald/blob/master/src/battle_dome.c#L4495 ff; there should be integer rounding in there)
(→‎Battle style: Okay, now I get what's going on here. Adding some more detail on the other information that the card displays.)
Line 34: Line 34:
Seedings are determined by their ranking: the sum of the combined base stat totals of all Pokémon, plus 1/20 of the product of the number of different types represented by the Pokémon and the highest level among the Pokémon. If two Trainers tie in ranking, the higher internal Trainer number will win the tiebreaker; the player will always win the tiebreaker against any CPU Trainer, while Dome Ace Tucker will win any tiebreaker against other CPU Trainers. In the event of a tie battle, the higher seed advances and the lower seed is eliminated.
Seedings are determined by their ranking: the sum of the combined base stat totals of all Pokémon, plus 1/20 of the product of the number of different types represented by the Pokémon and the highest level among the Pokémon. If two Trainers tie in ranking, the higher internal Trainer number will win the tiebreaker; the player will always win the tiebreaker against any CPU Trainer, while Dome Ace Tucker will win any tiebreaker against other CPU Trainers. In the event of a tie battle, the higher seed advances and the lower seed is eliminated.


===Battle style===
===Opponent Trainer card===
Before each battle, the player is shown a Trainer card with some information about their opponent. It includes their Trainer class and name, Trainer sprite, the Pokémon in their party, and three lines describing the Trainer.
 
The first line of the description is based on the Trainer's seed in the tournament tree. Trainer's with higher seeds are described as having more potential. Dome Ace Tucker has a unique potential description.
 
The second line of the description is based on the Trainer's Pokémon's moves. Every move in the game has a series of flags for this check, and the moves across the Trainer's party are aggregated to determine what this line should be.
 
The third line of the description is based on the Trainer's Pokémon's stats—specifically, their [[effort values]] and [[nature]].
 
====Move description====
{{incomplete|section|needs=Expansion based on [https://github.com/pret/pokeemerald/blob/master/src/battle_dome.c#L140 Emerald decompilation]}}
{{incomplete|section|needs=Expansion based on [https://github.com/pret/pokeemerald/blob/master/src/battle_dome.c#L140 Emerald decompilation]}}


The battle style of a Trainer is determined by the [[effort values]] of all of the Trainer's Pokémon. A stat is considered to be emphasized if it makes up at least 30% of the team's EVs (taking [[Nature]] into account: for this calculation, EVs on a Pokémon with a beneficial Nature are worth 10% more, while EVs on a hindering Nature are worth 10% less), and neglected if there are less than 1% of the team's EVs in that stat among the entered Pokémon.
====Stat description====
The stat description is determined by the [[effort values]] of the Trainer's Pokémon. A stat is considered to be emphasized if it makes up at least 30% of the team's total EVs, and neglected if it makes up less than 1% of the team's total EVs in that stat among the entered Pokémon. [[Nature]]s are taken into account for this calculation, such that EVs on a Pokémon with a beneficial Nature are worth 10% more, while EVs on a Pokémon with a hindering Nature are worth 10% less.


If there are any emphasized stats, they are shown (if there are three emphasized stats, only the two that make up the most of the team's EV are shown). Otherwise, if there are any neglected stats, they are shown (if there are more than two, only two are shown; stats with hindering Natures among the team Pokémon are preferred for the listing). Otherwise, the Trainer is said to "raise Pokémon in a well-balanced way."
If there are any emphasized stats, they are shown (if there are three emphasized stats, only the two that make up the most of the team's EV are shown). Otherwise, if there are any neglected stats, they are shown (if there are more than two, only two are shown—stats with hindering Natures among the team Pokémon are preferred for the listing). Otherwise, the Trainer is said to "raise Pokémon in a well-balanced way."


===CPU Battles===
===CPU Battles===