mirror of
https://github.com/zeldaret/ph
synced 2026-05-25 07:22:58 -04:00
Decomp ItemManager::GetShipPartCount
This commit is contained in:
@@ -3,19 +3,6 @@
|
||||
|
||||
.text
|
||||
|
||||
.global _ZNK11ItemManager16GetShipPartCountEjj
|
||||
thumb_func_start _ZNK11ItemManager16GetShipPartCountEjj
|
||||
_ZNK11ItemManager16GetShipPartCountEjj: ; 0x020ad8f0
|
||||
lsl r3, r1, #3
|
||||
add r1, r1, r3
|
||||
add r0, r0, r1
|
||||
add r1, r0, r2
|
||||
mov r0, #0x48
|
||||
ldrsb r0, [r1, r0]
|
||||
bx lr
|
||||
.align 2, 0
|
||||
thumb_func_end _ZNK11ItemManager16GetShipPartCountEjj
|
||||
|
||||
.global _ZN11ItemManager16SetShipPartCountEjjj
|
||||
thumb_func_start _ZN11ItemManager16SetShipPartCountEjjj
|
||||
_ZN11ItemManager16SetShipPartCountEjjj: ; 0x020ad900
|
||||
|
||||
@@ -279,3 +279,7 @@ THUMB ShipType ItemManager::GetEquippedShipPart(ShipPart part) const {
|
||||
THUMB void ItemManager::EquipShipPart(ShipPart part, ShipType type) {
|
||||
this->mEquippedShipParts[part] = type;
|
||||
}
|
||||
|
||||
THUMB s8 ItemManager::GetShipPartCount(ShipPart part, ShipType type) const {
|
||||
return this->mShipParts[part][type];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user