diff options
-rw-r--r-- | Add-different-kinds-of-new-items.md | 38 | ||||
-rw-r--r-- | screenshots/mist-stone.png | bin | 0 -> 1815 bytes |
2 files changed, 37 insertions, 1 deletions
diff --git a/Add-different-kinds-of-new-items.md b/Add-different-kinds-of-new-items.md index c906af6..55b9735 100644 --- a/Add-different-kinds-of-new-items.md +++ b/Add-different-kinds-of-new-items.md @@ -342,7 +342,43 @@ Then it's time to implement the specific Pokémon-catching effect. Edit [engine/ ### `EvoStoneEffect`: Mist Stone -TODO +A Mist Stone is a rumored item from Gen 1 that evolves Pokémon into "PokéGods". A more realistic function would be to evolve Pokémon like Machoke or Haunter that otherwise require trading, which can be inconvenient. + +First, add the essential data. Replace `ITEM_64` with `MIST_STONE`; give it a name, description, and attributes (`item_attribute 2100, HELD_NONE, 0, CANT_SELECT, ITEM, ITEMMENU_PARTY, ITEMMENU_NOUSE`); give it the `PokeBallEffect`; and remove `ITEM_64` from `TimeCapsule_CatchRateItems`. + +That's actually all you need to do for the item itself. Now as long as it's declared to evolve a Pokémon, it will do so correctly. + +Edit [data/pokemon/evos_attacks.asm](../blob/master/data/pokemon/evos_attacks.asm): + +```diff + KadabraEvosAttacks: ++ db EVOLVE_ITEM, MIST_STONE, ALAKAZAM + db EVOLVE_TRADE, -1, ALAKAZAM + db 0 ; no more evolutions + ... + + MachokeEvosAttacks: ++ db EVOLVE_ITEM, MIST_STONE, MACHAMP + db EVOLVE_TRADE, -1, MACHAMP + db 0 ; no more evolutions + ... + + GravelerEvosAttacks: ++ db EVOLVE_ITEM, MIST_STONE, GOLEM + db EVOLVE_TRADE, -1, GOLEM + db 0 ; no more evolutions + ... + + HaunterEvosAttacks: ++ db EVOLVE_ITEM, MIST_STONE, GENGAR + db EVOLVE_TRADE, -1, GENGAR + db 0 ; no more evolutions + ... +``` + +(Note that if a Pokémon has too many evolution methods, they'll say "NOT ABLE" to evolve with an item even if they are. This is a known bug with `PlacePartyMonEvoStoneCompatibility` and has [a simple solution](../blob/master/docs/bugs_and_glitches.md#only-the-first-three-evosattacks-evolution-entries-can-have-stone-compatibility-reported-correctly).) + + ### `TownMapEffect`: Town Map diff --git a/screenshots/mist-stone.png b/screenshots/mist-stone.png Binary files differnew file mode 100644 index 0000000..5756dc7 --- /dev/null +++ b/screenshots/mist-stone.png |