Skip to content

Commit

Permalink
Increased Fall Damage Start (#988)
Browse files Browse the repository at this point in the history
* Increased Fall Damage Start

* Update game.zig
  • Loading branch information
ikabod-kee authored Feb 1, 2025
1 parent 7efa370 commit a93b020
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/game.zig
Original file line number Diff line number Diff line change
Expand Up @@ -1096,7 +1096,7 @@ pub fn update(deltaTime: f64) void { // MARK: update()
Player.super.pos[2] = box.min[2] - hitBox.max[2];
}

const damage: f32 = @floatCast(@round(@max((Player.super.vel[2] * Player.super.vel[2]) / (2 * gravity) - 3, 0)) / 2);
const damage: f32 = @floatCast(@round(@max((Player.super.vel[2] * Player.super.vel[2]) / (2 * gravity) - 7, 0)) / 2);
if (damage > 0.01) {
Inventory.Sync.addHealth(-damage, .fall, .client, Player.id);
}
Expand Down

0 comments on commit a93b020

Please sign in to comment.