diff --git a/doc/lua_api.md b/doc/lua_api.md index fbe7c11dc3..38202c03dc 100644 --- a/doc/lua_api.md +++ b/doc/lua_api.md @@ -11079,8 +11079,8 @@ The `PlayerHPChangeReason` table specifies a reason for player health changes. * The `type` field will have one of the following values: * `set_hp`: A mod or the engine called `set_hp`, either without - giving a reason, or by setting `set_hp` as damage type - explicitly + giving a reason, or by setting `set_hp` as damage type + explicitly * `punch`: Was punched. `reason.object` will hold the puncher, or nil if none. * `fall`: Fall damage. * `node_damage`: `damage_per_second` from a neighboring node. @@ -11099,8 +11099,8 @@ The `PlayerHPChangeReason` table specifies a reason for player health changes. * `mod`: Mod or builtin * Mods may add additional fields -Note: The `from` field doesn't need to be provided in the `set_hp` method, -the engine will automatically set it to `mod`. +Note: The `from` is ignored by `ObjectRef:set_hp`, the engine will always +set it to `mod`. Chat command definition -----------------------