mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2025-10-30 08:01:01 +00:00
Update revamped flying damage (#722)
This commit is contained in:
parent
bfdbbea175
commit
1a23932e9b
1 changed files with 1 additions and 1 deletions
|
|
@ -1344,7 +1344,7 @@ u8 determine_player_damage_value(struct MarioState* attacker, u32 interaction) {
|
|||
else if (interaction & INT_GROUND_POUND) { return 3; }
|
||||
else if (interaction & (INT_KICK | INT_SLIDE_KICK | INT_TRIP | INT_TWIRL)) { return 2; }
|
||||
else if (interaction & INT_PUNCH && attacker->actionArg < 3) { return 2; }
|
||||
else if (attacker->action == ACT_FLYING) { return (u8)(attacker->forwardVel / 75.0f) + 1; }
|
||||
else if (attacker->action == ACT_FLYING) { return (u8)(MAX((attacker->forwardVel - 40.0f) / 20.0f, 0)) + 1; }
|
||||
return 1;
|
||||
} else {
|
||||
if (interaction & INT_GROUND_POUND_OR_TWIRL) { return 3; }
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue