mirror of
https://github.com/zeldaret/st
synced 2026-08-23 15:12:15 -04:00
Misc stuff 4 (#59)
* playrget progress and match treasuremanager remaining functions * some docs * fix build issues * random docs * match func_ov094_02172290 * random docs * actor cleanup * match freestanding item funcs * mType -> mpProfile * decompile random functions * docs and start of wip chest stuff * random docs * more random docs * match func_ov036_0211d0a8 * match func_ov036_0211d2dc & func_ov036_0211d570 * match func_ov110_02184a40 * random doc * document letter/stamps system * match func_ov001_020bb9f8 * fix build issues * decompile tres * start decomp chest base * fix regressions * name TRES * name UnkStruct_ov024_020d86b0 * name stamp types and update save struct stuff * name things and document BMG IDs
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
#include "MapObject/MapObjectTreasureSpawned.hpp"
|
||||
#include "System/SysNew.hpp"
|
||||
#include "Unknown/Common.hpp"
|
||||
#include "Unknown/UnkStruct_027e0cd8.hpp"
|
||||
|
||||
static const Vec2p data_ov031_021157b0(0x96B, 0x99A);
|
||||
|
||||
ARM DECL_PROFILE(MapObjectProfileTreasureSpawned);
|
||||
|
||||
ARM MapObject *MapObjectProfileTreasureSpawned::Create() {
|
||||
return new(HeapIndex_ITCM) MapObjectTreasureSpawned();
|
||||
}
|
||||
|
||||
ARM MapObjectProfileTreasureSpawned::MapObjectProfileTreasureSpawned() :
|
||||
MapObjectProfile_Derived2(MapObjectId_TreasureSpawned, MapObjectId_TreasureSpawned) {
|
||||
this->mUnk_0E = 1;
|
||||
this->mUnk_06 = 1;
|
||||
this->mUnk_0C = 0x1333;
|
||||
}
|
||||
|
||||
ARM MapObjectTreasureSpawned::MapObjectTreasureSpawned() :
|
||||
MapObjectChestBase(1) {
|
||||
this->mUnk_074.vfunc_08(GetUnkPointer1<MapObjectProfileTreasureSpawned>());
|
||||
}
|
||||
|
||||
ARM unk32 MapObjectTreasureSpawned::vfunc_3C() {
|
||||
if (data_027e0cd8->func_ov000_02081f3c(this->mUnk_20.mUnk_14, 1)) {
|
||||
return 8;
|
||||
}
|
||||
|
||||
return 3;
|
||||
}
|
||||
|
||||
ARM bool MapObjectTreasureSpawned::vfunc_40() {
|
||||
return true;
|
||||
}
|
||||
|
||||
ARM Vec2p *MapObjectTreasureSpawned::vfunc_54() {
|
||||
return (Vec2p *) &data_ov031_021157b0;
|
||||
}
|
||||
|
||||
ARM MapObjectTreasureSpawned::~MapObjectTreasureSpawned() {}
|
||||
ARM MapObjectProfileTreasureSpawned::~MapObjectProfileTreasureSpawned() {}
|
||||
Reference in New Issue
Block a user