diff options
| author | dannye <33dannye@gmail.com> | 2026-01-17 22:38:33 -0600 |
|---|---|---|
| committer | dannye <33dannye@gmail.com> | 2026-01-17 22:38:33 -0600 |
| commit | bc2354dd6626ce28bb9561547ed2107cfa56c18e (patch) | |
| tree | 5902d4c3389253c76b7c3351e0d7dfecb551c28d /engine/overworld/unused_load_toggleable_object_data.asm | |
| parent | Identify characters in `_OakSpeechText2B` and `Printer_GetMonStats.IDNo` (#144) (diff) | |
| parent | Use macros for `WildMonEncounterSlotChances` (#562) (diff) | |
| download | pokeyellow-bc2354dd6626ce28bb9561547ed2107cfa56c18e.tar.gz pokeyellow-bc2354dd6626ce28bb9561547ed2107cfa56c18e.tar.xz pokeyellow-bc2354dd6626ce28bb9561547ed2107cfa56c18e.zip | |
Merge branch 'master' of https://github.com/pret/pokered
Diffstat (limited to 'engine/overworld/unused_load_toggleable_object_data.asm')
| -rw-r--r-- | engine/overworld/unused_load_toggleable_object_data.asm | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/engine/overworld/unused_load_toggleable_object_data.asm b/engine/overworld/unused_load_toggleable_object_data.asm new file mode 100644 index 00000000..cf53f80a --- /dev/null +++ b/engine/overworld/unused_load_toggleable_object_data.asm @@ -0,0 +1,46 @@ +Func_f0a54: ; unreferenced + ret + +LoadToggleableObjectData:: +; farcalled by an unreferenced function + ld hl, .ToggleableObjectsMaps +.loop + ld a, [hli] + cp -1 + ret z + ld b, a + ld a, [wCurMap] + cp b + jr z, .found + inc hl + inc hl + inc hl + jr .loop + +.found + ld a, [hli] + ld c, a + ld b, 0 + ld a, [hli] + ld h, [hl] + ld l, a + ld de, wToggleableObjectList + call CopyData + ret + +MACRO toggleable_object_map + db \1 + db \3 - \2 + dw \2 +ENDM + +.ToggleableObjectsMaps: + toggleable_object_map BLUES_HOUSE, .BluesHouse, .BluesHouseEnd + db -1 ; end + +.BluesHouse: + db 1, TOGGLE_DAISY_SITTING_COPY + db 2, TOGGLE_DAISY_WALKING_COPY + db 3, TOGGLE_TOWN_MAP_COPY + db -1 ; end +.BluesHouseEnd: |
