mirror of https://github.com/pret/pokeemerald.git
Changed the text to match the language byte no longer being used.
parent
64f51ce3d6
commit
e57b1013ff
|
@ -24,7 +24,7 @@ Below is all of the code changes (and let me know on Discord if you find any bug
|
||||||
|
|
||||||
### Here's my solution for each requirement:
|
### Here's my solution for each requirement:
|
||||||
### If a Pokemon faints, they cannot be revived
|
### If a Pokemon faints, they cannot be revived
|
||||||
Instead of releasing the Pokemon, since some people like to hold onto them, I instead made a fainted Pokemon notbe able to regain HP. The largest challenge with this is that a Pokemon that goes into the PC and out again gets healed automatically and their HP isn't stored in the `BoxMon` struct. So, I added the `Dead` status into the `BoxMon` struct. But because I want this hack to work with a vanilla game save file, I used the most-significant bit of `language` to hold it. The language data only seems important for trading and never holds higher than an 8, so changing the function to get the lower 7 bits for language and the upper bit for Dead will work well. When trading, the dead bit gets cleared.
|
Instead of releasing the Pokemon, since some people like to hold onto them, I instead made a fainted Pokemon not be able to regain HP. The `BoxPokemon` struct has five unused bits, so using one of them allows for the Pokemon to retain their dead data even after depositing into the PC. When trading, the dead bit gets cleared.
|
||||||
After that hurdle is cleared, it's a matter of finding the healing items and party healing functions and ignoring dead Pokemon. In my testing, I found that Sacred Ash does not work at all anymore if a Dead Pokemon is in the party, but that's enough of an edge-case for me to not lose sleep on.
|
After that hurdle is cleared, it's a matter of finding the healing items and party healing functions and ignoring dead Pokemon. In my testing, I found that Sacred Ash does not work at all anymore if a Dead Pokemon is in the party, but that's enough of an edge-case for me to not lose sleep on.
|
||||||
|
|
||||||
### Only the first Pokemon in a route can be caught
|
### Only the first Pokemon in a route can be caught
|
||||||
|
|
Loading…
Reference in New Issue