Spicy dampe

This commit is contained in:
aMannus 2023-02-26 21:32:35 +01:00
commit e8e8997fd8

View file

@ -189,12 +189,14 @@ void EnPoRelay_Race(EnPoRelay* this, PlayState* play) {
Vec3f vec; Vec3f vec;
f32 speed; f32 speed;
f32 multiplier; f32 multiplier;
int16_t minFireTimer = 8.0f;
f32 chanceForFire = 1.0f;
if (this->actionTimer != 0) { if (this->actionTimer != 0) {
this->actionTimer--; this->actionTimer--;
} }
if (this->actionTimer == 0 && Rand_ZeroOne() < 0.03f) { if (this->actionTimer == 0 && Rand_ZeroOne() < chanceForFire) {
this->actionTimer = 32; this->actionTimer = minFireTimer;
if (this->pathIndex < 23) { if (this->pathIndex < 23) {
speed = Rand_ZeroOne() * 3.0f; speed = Rand_ZeroOne() * 3.0f;
if (speed < 1.0f) { if (speed < 1.0f) {