mirror of
https://github.com/HarbourMasters/Shipwright
synced 2026-06-16 23:20:16 -04:00
Random bonks while rolling
This commit is contained in:
@@ -8654,8 +8654,10 @@ void func_80844708(Player* this, PlayState* play) {
|
||||
func_8083A060(this, play);
|
||||
}
|
||||
} else {
|
||||
f32 rand = Rand_ZeroOne();
|
||||
uint8_t randomBonk = (rand <= .05);
|
||||
if (this->linearVelocity >= 7.0f) {
|
||||
if (((this->actor.bgCheckFlags & 0x200) && (D_8085360C < 0x2000)) ||
|
||||
if (randomBonk || ((this->actor.bgCheckFlags & 0x200) && (D_8085360C < 0x2000)) ||
|
||||
((this->cylinder.base.ocFlags1 & OC1_HIT) &&
|
||||
(cylinderOc = this->cylinder.base.oc,
|
||||
((cylinderOc->id == ACTOR_EN_WOOD02) &&
|
||||
|
||||
Reference in New Issue
Block a user