diff options
| author | fig02 <fig02srl@gmail.com> | 2020-10-28 13:02:35 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-10-28 13:02:35 -0400 |
| commit | 6e000fcc544133d7331f905964e382206d30940a (patch) | |
| tree | 684c16693b73e56a0b301c4973c2c454286342d4 /src/code/z_parameter.c | |
| parent | 3ba022128c834b6c3cda8740738938367024853e (diff) | |
En_Elf Decompiled (#432)
* init matched
* everything but navi OK
* progress
* 4 left
* remove asm
* progress
* progress
* asm and spec
* remove comment
* suggestion
* review1
* use type enum
* name func
* overridelimbdraw
* review 2
* forgot one
* merge master
* format
Diffstat (limited to 'src/code/z_parameter.c')
| -rw-r--r-- | src/code/z_parameter.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/code/z_parameter.c b/src/code/z_parameter.c index 9f72fb887..ea5ce52a9 100644 --- a/src/code/z_parameter.c +++ b/src/code/z_parameter.c @@ -1685,7 +1685,7 @@ u8 Item_Give(GlobalContext* globalCtx, u8 item) { return item; } else if (item == ITEM_MAGIC_SMALL) { if (gSaveContext.unk_13F0 != 10) { - func_80087680(globalCtx); + Magic_Fill(globalCtx); } func_80087708(globalCtx, 12, 5); @@ -1698,7 +1698,7 @@ u8 Item_Give(GlobalContext* globalCtx, u8 item) { return item; } else if (item == ITEM_MAGIC_LARGE) { if (gSaveContext.unk_13F0 != 10) { - func_80087680(globalCtx); + Magic_Fill(globalCtx); } func_80087708(globalCtx, 24, 5); @@ -2256,7 +2256,7 @@ void Inventory_ChangeAmmo(s16 item, s16 ammoChange) { osSyncPrintf("合計 = (%d)\n", AMMO(item)); } -void func_80087680(GlobalContext* globalCtx) { +void Magic_Fill(GlobalContext* globalCtx) { if (gSaveContext.magicAcquired) { gSaveContext.unk_13F2 = gSaveContext.unk_13F0; gSaveContext.unk_13F6 = (gSaveContext.doubleMagic * 0x30) + 0x30; |
