Decomp ItemManager::GetShipPartCount

This commit is contained in:
Aetias
2024-02-18 11:37:33 +01:00
parent 5697dceffa
commit 90c42ba870
2 changed files with 4 additions and 13 deletions
-13
View File
@@ -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
+4
View File
@@ -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];
}