Deobfuscate some values

This commit is contained in:
Clownacy 2020-09-27 21:12:39 +01:00
parent 59aeae07f8
commit 97a042dcc0
6 changed files with 20 additions and 20 deletions

View file

@ -263,9 +263,9 @@ void ActBossChar_Omega(void)
if (gBoss[0].act_wait > 20 && gBoss[0].act_wait < 80 && !(gBoss[0].act_wait % 3))
{
if (Random(0, 9) < 8)
SetNpChar(48, gBoss[0].x, gBoss[0].y - (16 * 0x200), Random(-0x100, 0x100), -0x333, 0, NULL, 0x100);
SetNpChar(48, gBoss[0].x, gBoss[0].y - (16 * 0x200), Random(-0x100, 0x100), -0x10 * 0x200 / 10, 0, NULL, 0x100);
else
SetNpChar(48, gBoss[0].x, gBoss[0].y - (16 * 0x200), Random(-0x100, 0x100), -0x333, 2, NULL, 0x100);
SetNpChar(48, gBoss[0].x, gBoss[0].y - (16 * 0x200), Random(-0x100, 0x100), -0x10 * 0x200 / 10, 2, NULL, 0x100);
PlaySoundObject(39, SOUND_MODE_PLAY);
}
@ -384,7 +384,7 @@ void ActBossChar_Omega(void)
if (gBoss[0].act_wait < 30 && gBoss[0].act_wait % 5 == 0)
{
SetNpChar(48, gBoss[0].x, gBoss[0].y - (16 * 0x200), Random(-341, 341), -0x333, 0, NULL, 0x100);
SetNpChar(48, gBoss[0].x, gBoss[0].y - (16 * 0x200), Random(-341, 341), -0x10 * 0x200 / 10, 0, NULL, 0x100);
PlaySoundObject(39, SOUND_MODE_PLAY);
}

View file

@ -259,14 +259,14 @@ void ActMyChar_Normal(BOOL bKey)
if (gMC.flag & 0x100)
{
max_dash = 0x196;
max_move = 0x2FF;
gravity1 = 0x28;
gravity2 = 0x10;
jump = 0x280;
dash1 = 0x2A;
dash2 = 0x10;
resist = 0x19;
max_dash = 0x32C / 2;
max_move = 0x5FF / 2;
gravity1 = 0x50 / 2;
gravity2 = 0x20 / 2;
jump = 0x500 / 2;
dash1 = 0x200 / 6 / 2;
dash2 = 0x200 / 16 / 2;
resist = 0x200 / 10 / 2;
}
else
{
@ -275,9 +275,9 @@ void ActMyChar_Normal(BOOL bKey)
gravity1 = 0x50;
gravity2 = 0x20;
jump = 0x500;
dash1 = 0x55;
dash2 = 0x20;
resist = 0x33;
dash1 = 0x200 / 6;
dash2 = 0x200 / 16;
resist = 0x200 / 10;
}
// Don't create "?" effect

View file

@ -1241,7 +1241,7 @@ void ActNpc036(NPCHAR *npc)
if (npc->act_no != 5)
{
npc->ym += 0x33;
npc->ym += 0x200 / 10;
if (npc->x < gMC.x)
npc->direct = 2;

View file

@ -1203,7 +1203,7 @@ void ActNpc135(NPCHAR *npc)
npc->direct = 2;
}
npc->ym += 0x33;
npc->ym += 0x200 / 10;
if (npc->ym > 0x5FF)
npc->ym = 0x5FF;

View file

@ -271,13 +271,13 @@ void ActNpc180(NPCHAR *npc)
#else
if (npc->flag && 5)
#endif
npc->ym += 0x10;
npc->ym += 0x200 / 32;
else
npc->ym += 0x33;
npc->ym += 0x200 / 10;
}
else
{
npc->ym += 0x33;
npc->ym += 0x200 / 10;
}
}

View file

@ -1320,7 +1320,7 @@ void ActNpc268(NPCHAR *npc)
break;
}
npc->ym += 0x33;
npc->ym += 0x200 / 10;
if (npc->ym > 0x5FF)
npc->ym = 0x5FF;