From fe8d04d0b3c2e3af7c406fb6527f1b5230a30137 Mon Sep 17 00:00:00 2001 From: MisterE123 <61124264+MisterE123@users.noreply.github.com> Date: Thu, 9 Nov 2023 13:55:26 -0500 Subject: [PATCH] Fix misrendered fall_damage_add_percent calculation formula (#13969) Co-authored-by: rubenwardy --- doc/lua_api.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/lua_api.md b/doc/lua_api.md index 87555640848f..3a908dcc4158 100644 --- a/doc/lua_api.md +++ b/doc/lua_api.md @@ -2148,11 +2148,13 @@ to games. * `fall_damage_add_percent`: modifies the fall damage suffered when hitting the top of this node. There's also an armor group with the same name. The final player damage is determined by the following formula: + ```lua damage = collision speed * ((node_fall_damage_add_percent + 100) / 100) -- node group * ((player_fall_damage_add_percent + 100) / 100) -- player armor group - (14) -- constant tolerance + ``` Negative damage values are discarded as no damage. * `falling_node`: if there is no walkable block under the node it will fall * `float`: the node will not fall through liquids (`liquidtype ~= "none"`)