diff options
author | NobodySociety <43542553+NobodySociety@users.noreply.github.com> | 2020-02-26 18:01:41 -0500 |
---|---|---|
committer | NobodySociety <43542553+NobodySociety@users.noreply.github.com> | 2020-02-26 18:01:41 -0500 |
commit | 5af7716e1cd0ecb3cc462edcc807c014d01fa2f4 (patch) | |
tree | 619ebb2b4a7b597d02c7f99f7ca686e951725c33 | |
parent | 0f0806a86488ca2ec348cdc98157afb76e5b98b8 (diff) |
Updated Adding items that act like HMs (markdown)
-rw-r--r-- | Adding-items-that-act-like-HMs.md | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/Adding-items-that-act-like-HMs.md b/Adding-items-that-act-like-HMs.md index 5b03f06..41842cc 100644 --- a/Adding-items-that-act-like-HMs.md +++ b/Adding-items-that-act-like-HMs.md @@ -188,6 +188,27 @@ Even with the item added and it being functional, the game will still check for If we look in [engine/events/overworld.asm](../blob/master/engine/events/overworld.asm) at the bottom, we'll see `TryCutOW`. This function is called when the player interacts with a cuttable tree, normally it checks the party first for a pokemon with cut, then for the appropriate badge, so we'll change it. ```Diff +CutFunction: +... + +.CheckAble: +- ld de, ENGINE_HIVEBADGE +- call CheckBadge +- jr c, .nohivebadge + call CheckMapForSomethingToCut + jr c, .nothingtocut + ld a, $1 + ret + +-.nohivebadge +- ld a, $80 +- ret + +``` + +and + +```Diff TryCutOW:: - ld d, CUT - call CheckPartyMove |