mirror of
https://github.com/zeldaret/ph
synced 2026-05-23 23:05:17 -04:00
Decomp ItemManager::GetAmmo
This commit is contained in:
@@ -3,15 +3,6 @@
|
||||
|
||||
.text
|
||||
|
||||
.global _ZNK11ItemManager7GetAmmoEj
|
||||
arm_func_start _ZNK11ItemManager7GetAmmoEj
|
||||
_ZNK11ItemManager7GetAmmoEj: ; 0x020ad72c
|
||||
ldr r2, [r0, #0xb0]
|
||||
mov r0, r1, lsl #0x1
|
||||
ldrh r0, [r2, r0]
|
||||
bx lr
|
||||
arm_func_end _ZNK11ItemManager7GetAmmoEj
|
||||
|
||||
.global _ZN11ItemManager8GiveAmmoEjj
|
||||
arm_func_start _ZN11ItemManager8GiveAmmoEjj
|
||||
_ZN11ItemManager8GiveAmmoEjj: ; 0x020ad73c
|
||||
|
||||
@@ -262,4 +262,8 @@ EquipItem* ItemManager::GetEquipItem(ItemFlag equipId) {
|
||||
return (*this->mEquipItems)[equipId];
|
||||
}
|
||||
}
|
||||
|
||||
u16 ItemManager::GetAmmo(ItemFlag equipId) const {
|
||||
return (*this->mAmmo)[equipId];
|
||||
}
|
||||
#pragma interworking off
|
||||
|
||||
Reference in New Issue
Block a user