1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-13 08:35:20 +02:00

Fix damage wraparound if very high damage (#11872)

This commit is contained in:
Wuzzy
2022-01-06 20:16:35 +00:00
committed by GitHub
parent 85da2e284b
commit b81948a14c
7 changed files with 10 additions and 8 deletions

View File

@@ -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