diff options
| author | Elliptic Ellipsis <elliptic.ellipsis@gmail.com> | 2022-03-26 00:29:39 +0000 |
|---|---|---|
| committer | Elliptic Ellipsis <elliptic.ellipsis@gmail.com> | 2022-06-21 22:55:11 +0100 |
| commit | 2cd62531cc512bf33e1d7957d443ccc90141226d (patch) | |
| tree | b0c06f5977515ce2aa6fc75b46d590bdd3899407 /src/enemy/slime.c | |
| parent | 2283f80d21a4cd7010fde923bc08137f434f4496 (diff) | |
Some more actionDelays
Diffstat (limited to 'src/enemy/slime.c')
| -rw-r--r-- | src/enemy/slime.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/enemy/slime.c b/src/enemy/slime.c index 506820cc..494d0459 100644 --- a/src/enemy/slime.c +++ b/src/enemy/slime.c @@ -66,7 +66,7 @@ void sub_08044FC8(Entity* this) { void sub_08044FF8(Entity* this) { this->action = 2; - this->timer = (Random() & 31) + 30; + this->timer = (Random() & 0x1F) + 30; this->cutsceneBeh.HALF.LO = this->health; } @@ -76,7 +76,7 @@ void sub_08045018(Entity* this) { this->action = 3; this->timer = 1; if (0 < this->speed) { - this->timer = FixedDiv(4096, this->speed) >> 8; + this->timer = FixedDiv(0x1000, this->speed) >> 8; } if (sub_08049FA0(this) == 0 && (Random() & 3)) { this->direction = (sub_08049EE4(this) + 0xfc + (Random() & 8)) & 24; |
