mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-08-24 23:25:34 -07:00
Random bonks while rolling
This commit is contained in:
parent
c90b32231a
commit
6721c2d791
1 changed files with 3 additions and 1 deletions
|
@ -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) &&
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue