mirror of
https://github.com/zeldaret/st
synced 2026-06-20 16:01:24 -04:00
6062d1f43c
* start overlay 1 * match courselist and delink a lot of files (+ remove SysObject) * fix build issues * fix regressions
28 lines
797 B
C++
28 lines
797 B
C++
#include "Item/ItemManager.hpp"
|
|
#include "Save/SaveManager.hpp"
|
|
#include "System/OverlayManager.hpp"
|
|
#include "Unknown/UnkStruct_027e09a0.hpp"
|
|
#include "Unknown/UnkStruct_027e09a4.hpp"
|
|
|
|
THUMB_BEGIN
|
|
|
|
void ItemManager::func_ov001_020bb9f8() {
|
|
if (data_027e09a4->IsNotCutscene() && gOverlayManager.mLoadedOverlays[OverlaySlot_10] != OverlayIndex_PlayerPhantom) {
|
|
this->mTearsAmount = 0;
|
|
}
|
|
|
|
CourseListEntry *pEntry = data_027e09a0->GetCourseEntry(data_027e09a4->mUnk_00.mSceneIndex);
|
|
|
|
if (pEntry->saveCourseIndex < SaveCourseIndex_Max) {
|
|
this->mKeyAmount = gSaveManager.mUnk_000->unk_030[pEntry->saveCourseIndex].keyAmount;
|
|
} else {
|
|
this->mKeyAmount = 0;
|
|
}
|
|
|
|
if (this->mKeyAmount > MAX_KEYS) {
|
|
this->mKeyAmount = MAX_KEYS;
|
|
}
|
|
}
|
|
|
|
THUMB_END
|