88// - Star will spin on an alternate axis and be uncollectable.
99
1010void LogOutSpawns (std::string type, int16_t model, int16_t posX, int16_t posY, int16_t posZ) {
11- if (model != MODEL_STAR && model != MODEL_RED_COIN && model != MODEL_RED_COIN_NO_SHADOW
12- && model != MODEL_BLUE_COIN && model != MODEL_BLUE_COIN_NO_SHADOW ) {
11+ if (model != MODEL_STAR && model != MODEL_RED_COIN && model != MODEL_RED_COIN_NO_SHADOW &&
12+ model != MODEL_BLUE_COIN && model != MODEL_BLUE_COIN_NO_SHADOW ) {
1313 return ;
1414 }
1515 std::string locationStr = std::to_string (posX) + " , " + std::to_string (posY) + " , " + std::to_string (posZ);
@@ -20,32 +20,32 @@ void LogOutSpawns(std::string type, int16_t model, int16_t posX, int16_t posY, i
2020void Rando::ActorBehavior::Init () {
2121 REGISTER_LISTENER (SpawnMacroObject, EVENT_PRIORITY_NORMAL , [](IEvent* event) {
2222 SpawnMacroObject* ev = (SpawnMacroObject*)event;
23- if (!IS_RANDO ) {
24- return ;
25- }
26- int16_t model = *(ev->model );
27-
28- LogOutSpawns (" Macro" , model, ev->posX , ev->posY , ev->posZ );
23+ if (!IS_RANDO (selectedFileNum)) {
24+ return ;
25+ }
26+ int16_t model = *(ev->model );
2927
30- // RandoCheckId randoCheckId = Rando::StaticData::GetCheckByLocation(ev->posX, ev->posY, ev->posZ);
31- // if (randoCheckId != RC_UNKNOWN) {
28+ LogOutSpawns (" Macro" , model, ev->posX , ev->posY , ev->posZ );
29+
30+ // RandoCheckId randoCheckId = Rando::StaticData::GetCheckByLocation(ev->posX, ev->posY, ev->posZ);
31+ // if (randoCheckId != RC_UNKNOWN) {
3232 // RandoItemId randoItemId = Rando::StaticData::GetShuffledRandoItem(randoCheckId);
33- // if (randoItemId != RI_UNKNOWN) {
33+ // if (randoItemId != RI_UNKNOWN) {
3434 // int16_t modelId = Rando::StaticData::GetModelByRandoItem(randoItemId);
3535 // *(ev->model) = modelId;
3636 // *(ev->behavior) = Rando::StaticData::GetBehaviorByModel(modelId);
37- // }
38- // }
39- });
37+ // }
38+ // }
39+ });
4040
41- REGISTER_LISTENER (SpawnObject, EVENT_PRIORITY_NORMAL , [](IEvent* event) {
41+ REGISTER_LISTENER (SpawnObject, EVENT_PRIORITY_NORMAL , [](IEvent* event) {
4242 SpawnObject* ev = (SpawnObject*)event;
4343 struct SpawnInfo * info = *(ev->spawnInfo );
4444
4545 uint32_t model = *(ev->model );
46-
46+
4747 LogOutSpawns (" Spawn" , model, info->startPos [0 ], info->startPos [1 ], info->startPos [2 ]);
48-
48+
4949 // RandoCheckId randoCheckId =
5050 // Rando::StaticData::GetCheckByLocation(info->startPos[0], info->startPos[1], info->startPos[2]);
5151 // if (randoCheckId != RC_UNKNOWN) {
@@ -66,4 +66,3 @@ void Rando::ActorBehavior::Init() {
6666 LogOutSpawns (" Star" , MODEL_STAR , ev->posX , ev->posY , ev->posZ );
6767 });
6868}
69-
0 commit comments