mirror of
https://github.com/zeldaret/tmc
synced 2026-08-19 22:02:40 -04:00
InitScreenShake time -> dec
This commit is contained in:
+3
-3
@@ -403,7 +403,7 @@ void sub_0802D6F0(GleerokEntity* this) {
|
||||
if (--this->unk_7c.WORD == -1) {
|
||||
super->subAction = 2;
|
||||
this->unk_7c.WORD = 0x5a;
|
||||
InitScreenShake(0x96, 0);
|
||||
InitScreenShake(150, 0);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1018,7 +1018,7 @@ void sub_0802E1D0(GleerokEntity* this) {
|
||||
if (i == 5) {
|
||||
if (!(this->unk_79 & 0x80)) {
|
||||
this->unk_7c.HALF_U.LO = 0xF0;
|
||||
InitScreenShake(0xF0, 0);
|
||||
InitScreenShake(240, 0);
|
||||
} else {
|
||||
for (this->unk_7c.HALF_U.LO = 0; this->unk_7c.HALF_U.LO < 4; this->unk_7c.HALF_U.LO++) {
|
||||
CreateObjectWithParent(super, OBJECT_67, 1, this->unk_7c.HALF_U.LO);
|
||||
@@ -1028,7 +1028,7 @@ void sub_0802E1D0(GleerokEntity* this) {
|
||||
this->unk_7c.HALF_U.LO = 0xB;
|
||||
gScreen.controls.alphaBlend = this->unk_74 | (this->unk_75 << 8);
|
||||
gScreen.controls.layerFXControl = 0x240;
|
||||
InitScreenShake(0x1e, 0);
|
||||
InitScreenShake(30, 0);
|
||||
}
|
||||
super->type2 = 5;
|
||||
}
|
||||
|
||||
@@ -53,7 +53,7 @@ void GyorgMaleEye_OnCollision(GyorgMaleEyeEntity* this) {
|
||||
} else {
|
||||
entity->health = 0;
|
||||
SoundReq(SFX_BOSS_DIE);
|
||||
InitScreenShake(0x28, 0);
|
||||
InitScreenShake(40, 0);
|
||||
}
|
||||
if (super->iframes > 0) {
|
||||
entity->iframes = super->iframes;
|
||||
|
||||
@@ -860,7 +860,7 @@ void sub_0803AFE0(Entity* this) {
|
||||
this->timer = 240;
|
||||
*(u8*)&this->cutsceneBeh = 3;
|
||||
this->z.HALF.HI = 0;
|
||||
InitScreenShake(0xa0, 0);
|
||||
InitScreenShake(160, 0);
|
||||
SoundReq(SFX_158);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -325,7 +325,7 @@ void sub_080342C8(Entity* this) {
|
||||
this->field_0x7c.HALF.HI = 0x708;
|
||||
this->field_0x7c.BYTES.byte1 = 0;
|
||||
this->field_0x80.HALF.HI = 0;
|
||||
InitScreenShake(0x1e, 0);
|
||||
InitScreenShake(30, 0);
|
||||
SoundReq(SFX_1A1);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -202,7 +202,7 @@ void sub_08034F70(Entity* this) {
|
||||
void sub_08034FA0(Entity* this) {
|
||||
if (0 < this->iframes) {
|
||||
this->child->iframes = this->iframes;
|
||||
InitScreenShake(0xc, 1);
|
||||
InitScreenShake(12, 1);
|
||||
}
|
||||
switch (this->type2) {
|
||||
case 0:
|
||||
|
||||
@@ -654,7 +654,7 @@ void OctorokBoss_Action1_ChargeAttack(OctorokBossEntity* this) {
|
||||
super->knockbackDirection = super->direction ^ 0x10;
|
||||
this->heap->fallingStonesTimer += 0x3c;
|
||||
OctorokBoss_SetAttackTimer(this);
|
||||
InitScreenShake(0x3c, 0);
|
||||
InitScreenShake(60, 0);
|
||||
SoundReq(SFX_158);
|
||||
SoundReq(SFX_14C);
|
||||
}
|
||||
@@ -937,7 +937,7 @@ void OctorokBoss_Burning_SubAction1(OctorokBossEntity* this) {
|
||||
super->knockbackSpeed = 0x200;
|
||||
super->knockbackDirection = super->direction ^ 0x10;
|
||||
this->heap->fallingStonesTimer += 0x1e;
|
||||
InitScreenShake(0x1e, 0);
|
||||
InitScreenShake(30, 0);
|
||||
SoundReq(SFX_158);
|
||||
SoundReq(SFX_14C);
|
||||
}
|
||||
|
||||
@@ -667,7 +667,7 @@ void VaatiRebornEnemyType1PreAction(Entity* this) {
|
||||
}
|
||||
if (0 < this->iframes) {
|
||||
SoundReq(SFX_BOSS_HIT);
|
||||
InitScreenShake(0xc, 1);
|
||||
InitScreenShake(12, 1);
|
||||
if (this->timer == 0)
|
||||
this->timer = 0x48;
|
||||
}
|
||||
|
||||
@@ -272,7 +272,7 @@ void VaatiTransfiguredType0Action3(Entity* this) {
|
||||
this->timer = 0xc0;
|
||||
COLLISION_ON(this);
|
||||
SoundReq(SFX_14C);
|
||||
InitScreenShake(0x14, 4);
|
||||
InitScreenShake(20, 4);
|
||||
break;
|
||||
case 1:
|
||||
if (--this->timer == 0) {
|
||||
@@ -327,7 +327,7 @@ void VaatiTransfiguredType0Action3(Entity* this) {
|
||||
this->field_0x86.HALF.LO = 0;
|
||||
sub_080408EC(this);
|
||||
SoundReq(SFX_14C);
|
||||
InitScreenShake(0x1e, 4);
|
||||
InitScreenShake(30, 4);
|
||||
} else {
|
||||
if (this->subtimer != 0) {
|
||||
if (--this->subtimer == 0) {
|
||||
@@ -405,7 +405,7 @@ void VaatiTransfiguredType0Action4(Entity* this) {
|
||||
this->subtimer = 1;
|
||||
}
|
||||
SoundReq(SFX_14C);
|
||||
InitScreenShake(0x1e, 4);
|
||||
InitScreenShake(30, 4);
|
||||
break;
|
||||
case 2:
|
||||
if (--this->timer == 0) {
|
||||
@@ -1075,7 +1075,7 @@ void sub_080409B0(Entity* this) {
|
||||
}
|
||||
} else {
|
||||
if (((this->contactFlags & 0x80) != 0) && (0 < this->iframes)) {
|
||||
InitScreenShake(0xc, 1);
|
||||
InitScreenShake(12, 1);
|
||||
SoundReq(SFX_BOSS_HIT);
|
||||
}
|
||||
if ((this->contactFlags == 0x8a) && (gPlayerState.chargeState.action == 5)) {
|
||||
|
||||
@@ -478,7 +478,7 @@ void VaatiWrathType0ActionB(Entity* this) {
|
||||
this->timer = 0xf0;
|
||||
this->health = 8;
|
||||
this->hitType = 0x38;
|
||||
InitScreenShake(0x14, 0);
|
||||
InitScreenShake(20, 0);
|
||||
InitAnimationForceUpdate(this, 6);
|
||||
InitializeAnimation(((VaatiWrathHeapStruct*)this->myHeap)->type2, 0x16);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user