found more anims, also removing != 0 sometimes

This commit is contained in:
Reinmmar
2023-09-24 18:03:34 +02:00
parent bdfaa7dc1a
commit c19e313df4
5 changed files with 91 additions and 85 deletions
+3 -2
View File
@@ -1548,11 +1548,12 @@ void sub_0807F100(Entity* entity, ScriptExecutionContext* context) {
}
void sub_0807F128(Entity* entity, ScriptExecutionContext* context) {
static const u8 sAnimations[] = { 6, 2, 6, 2, 4, 6, 4, 2 };
static const u8 sAnimationStates[] = { IdleWest, IdleEast, IdleWest, IdleEast,
IdleSouth, IdleWest, IdleSouth, IdleEast };
static const u8 sValues[] = { 0xa, 0x14, 0x1e, 0x12, 0x1c, 0x26, 0xc, 0x18 };
u32 rand = Random();
entity->animationState = sAnimations[rand & 7];
entity->animationState = sAnimationStates[rand & 7];
context->unk_1A = sValues[(rand >> 8) % 8];
}