Decomp ItemManager::AddTreasurePriceShown

This commit is contained in:
Aetias
2024-04-30 19:19:04 +02:00
parent 75f492f8c6
commit 5819677622
2 changed files with 4 additions and 25 deletions
-25
View File
@@ -1,31 +1,6 @@
.include "macros/function.inc"
.include "ov00/Item/ItemManager.inc"
.text
.global _ZN11ItemManager21AddTreasurePriceShownEj
thumb_func_start _ZN11ItemManager21AddTreasurePriceShownEj
_ZN11ItemManager21AddTreasurePriceShownEj: ; 0x020ae76c
push {r4, r5}
mov r2, #0x52
lsl r2, r2, #2
add r2, r0, r2
lsr r0, r1, #5
lsl r0, r0, #2
mov r3, #0x1f
mov r4, #1
and r1, r3
add r3, r4, #0
ldr r5, [r2, r0]
lsl r3, r1
add r1, r5, #0
orr r1, r3
str r1, [r2, r0]
pop {r4, r5}
bx lr
.align 2, 0
thumb_func_end _ZN11ItemManager21AddTreasurePriceShownEj
.rodata
.data
+4
View File
@@ -977,3 +977,7 @@ THUMB void ItemManager::AddShipPartPriceShown(ShipPart part, ShipType type) {
THUMB bool ItemManager::HasTreasurePriceShown(Treasure treasure) const {
return GET_FLAG(mTreasurePriceShownFlags, treasure);
}
THUMB void ItemManager::AddTreasurePriceShown(Treasure treasure) {
SET_FLAG(mTreasurePriceShownFlags, treasure);
}