diff options
author | mid-kid <esteve.varela@gmail.com> | 2018-03-14 13:28:36 +0100 |
---|---|---|
committer | mid-kid <esteve.varela@gmail.com> | 2018-03-14 13:28:36 +0100 |
commit | 97c511cd2f271252cbc9e9746668081422231ca5 (patch) | |
tree | 35ef1cb72e871ef34e2b0011e514edae2b9cbcb7 /engine/items/updateitemdescription.asm | |
parent | baa0dc5a963a79843b37888bcfe1d2dfe833ade9 (diff) |
Organize the engine/ directory, take 2
Renamed `game` to `games` and `menu` to `menus`.
Moved some functions from `engine/routines/` to their fitting subdirectories.
Made two new subdirectories:
* engine/rtc: Contains all RTC-related things. Menus, hardware, misc
functions.
* engine/items: Contains all item-related things. Pack, item effects,
other item handlers.
Diffstat (limited to 'engine/items/updateitemdescription.asm')
-rw-r--r-- | engine/items/updateitemdescription.asm | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/engine/items/updateitemdescription.asm b/engine/items/updateitemdescription.asm new file mode 100644 index 000000000..fdb1e864d --- /dev/null +++ b/engine/items/updateitemdescription.asm @@ -0,0 +1,13 @@ +UpdateItemDescription: ; 0x244c3 + ld a, [wMenuSelection] + ld [wCurSpecies], a + hlcoord 0, 12 + ld b, 4 + ld c, SCREEN_WIDTH - 2 + call TextBox + ld a, [wMenuSelection] + cp -1 + ret z + decoord 1, 14 + farcall PrintItemDescription + ret |