diff --git a/docs/bugs_and_glitches.md b/docs/bugs_and_glitches.md index ab488c6256..c14f03e081 100644 --- a/docs/bugs_and_glitches.md +++ b/docs/bugs_and_glitches.md @@ -28,6 +28,8 @@ this is some code - [Using Spit Up Moves the Attacker's Sprite Two Pixels Right](#using-spit-up-moves-the-attackers-sprite-two-pixels-right) - [Wild Encounters](#wild-encounters) - [Fishing Encounters ignore Sticky Hold and Suction Cups](#fishing-encounters-ignore-sticky-hold-and-suction-cups) +- [Items](#items) + - [Defog HM Uses Water Palette](#defog-hm-uses-water-palette) - [Title Screen](#title-screen) - [Giratina Hover Range](#giratina-hover-range) - [3D Rendering](#3d-rendering) @@ -237,6 +239,25 @@ Essentially the same as Strength. } ``` +## Items + +### Defog HM Uses Water Palette + +HM05 (Defog) is a Flying-type move, but its TM/HM icon in the bag erroneously +uses the water-type palette instead of the flying-type palette. + +**Fix:** Edit the `sItemArchiveIDs` entry for `ITEM_HM05` in [`src/item.c`](https://github.com/pret/pokeplatinum/blob/main/src/item.c): + +```diff + [ITEM_HM05] = { + .dataID = 0x192, + .iconID = hm_NCGR, +- .paletteID = tm_water_NCLR, // BUG: Defog is a flying type move, but erroneously uses the water palette. ++ .paletteID = tm_flying_NCLR, + .gen3ID = GBA_ITEM_HM05, + }, +``` + ## Wild Encounters ### Fishing Encounters ignore Sticky Hold and Suction Cups diff --git a/src/item.c b/src/item.c index e0a6ecdfee..c1ab469561 100644 --- a/src/item.c +++ b/src/item.c @@ -2572,7 +2572,7 @@ const ItemArchiveIDs sItemArchiveIDs[] = { [ITEM_HM05] = { .dataID = 0x192, .iconID = hm_NCGR, - .paletteID = tm_water_NCLR, + .paletteID = tm_water_NCLR, // BUG: Defog is a flying type move, and thus this should be tm_flying_NCLR. .gen3ID = GBA_ITEM_HM05, }, [ITEM_HM06] = {