ref: 97a042dcc00821c17852fe728588d04edb91a242
parent: 59aeae07f85c2f8adc15c0fa4dd76f7c810173e5
author: Clownacy <Clownacy@users.noreply.github.com>
date: Sun Sep 27 17:12:39 EDT 2020
Deobfuscate some values
--- a/src/BossOhm.cpp
+++ b/src/BossOhm.cpp
@@ -263,9 +263,9 @@
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 @@
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);
}
--- a/src/MyChar.cpp
+++ b/src/MyChar.cpp
@@ -259,14 +259,14 @@
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 @@
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
--- a/src/NpcAct020.cpp
+++ b/src/NpcAct020.cpp
@@ -1241,7 +1241,7 @@
if (npc->act_no != 5)
{
- npc->ym += 0x33;
+ npc->ym += 0x200 / 10;
if (npc->x < gMC.x)
npc->direct = 2;
--- a/src/NpcAct120.cpp
+++ b/src/NpcAct120.cpp
@@ -1203,7 +1203,7 @@
npc->direct = 2;
}
- npc->ym += 0x33;
+ npc->ym += 0x200 / 10;
if (npc->ym > 0x5FF)
npc->ym = 0x5FF;
--- a/src/NpcAct180.cpp
+++ b/src/NpcAct180.cpp
@@ -271,13 +271,13 @@
#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;
}
}
--- a/src/NpcAct260.cpp
+++ b/src/NpcAct260.cpp
@@ -1320,7 +1320,7 @@
break;
}
- npc->ym += 0x33;
+ npc->ym += 0x200 / 10;
if (npc->ym > 0x5FF)
npc->ym = 0x5FF;