1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2025-08-23 07:21:19 +00:00

Update Room Documentation (#2015)

* Update Room Documentation

* Write more complete documentation, implement suggestions.

* Function name changes; minor comment tweaks

* nit

* Resolve Dragorn fixes

* Resolve Fig suggestions, fix comment wording

* fix bss, fig suggestion

* bss
This commit is contained in:
mzxrules 2024-09-05 08:08:21 -04:00 committed by GitHub
parent dbb059c6a7
commit acb5c7f20c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
27 changed files with 243 additions and 195 deletions

View file

@ -337,7 +337,7 @@ void BossMo_Init(Actor* thisx, PlayState* play2) {
Flags_SetSwitch(play, 0x14);
sMorphaCore = this;
MO_WATER_LEVEL(play) = this->waterLevel = MO_WATER_LEVEL(play);
play->roomCtx.unk_74[0] = 0xA0;
play->roomCtx.drawParams[0] = 0xA0;
play->specialEffects = sEffects;
for (i = 0; i < BOSS_MO_EFFECT_COUNT; i++) {
sEffects[i].type = MO_FX_NONE;
@ -357,7 +357,7 @@ void BossMo_Init(Actor* thisx, PlayState* play2) {
Actor_SpawnAsChild(&play->actorCtx, &this->actor, play, ACTOR_DOOR_WARP1, 0.0f, -280.0f, 0.0f, 0, 0, 0,
WARP_DUNGEON_ADULT);
Actor_Spawn(&play->actorCtx, play, ACTOR_ITEM_B_HEART, -200.0f, -280.0f, 0.0f, 0, 0, 0, 0);
play->roomCtx.unk_74[0] = 0xFF;
play->roomCtx.drawParams[0] = 0xFF;
MO_WATER_LEVEL(play) = -500;
return;
}
@ -1711,9 +1711,9 @@ void BossMo_DeathCs(BossMo* this, PlayState* play) {
}
}
if (sMorphaCore->waterLevel < -200.0f) {
play->roomCtx.unk_74[0]++;
if (play->roomCtx.unk_74[0] >= 0xFF) {
play->roomCtx.unk_74[0] = 0xFF;
play->roomCtx.drawParams[0]++;
if (play->roomCtx.drawParams[0] >= 0xFF) {
play->roomCtx.drawParams[0] = 0xFF;
}
}
if (sMorphaCore->waterLevel < -250.0f) {