mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-22 17:18:39 +00:00
Fix damage wraparound if very high damage (#11872)
This commit is contained in:
parent
85da2e284b
commit
b81948a14c
7 changed files with 10 additions and 8 deletions
|
@ -3524,7 +3524,7 @@ Helper functions
|
|||
* `minetest.get_hit_params(groups, tool_capabilities [, time_from_last_punch [, wear]])`:
|
||||
Simulates an item that punches an object.
|
||||
Returns a table with the following fields:
|
||||
* `hp`: How much damage the punch would cause.
|
||||
* `hp`: How much damage the punch would cause (between -65535 and 65535).
|
||||
* `wear`: How much wear would be added to the tool (ignored for non-tools).
|
||||
Parameters:
|
||||
* `groups`: Damage groups of the object
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue