]> git.lizzy.rs Git - dragonfireclient.git/commitdiff
Consistently use "health points" (#10868)
authorZughy <63455151+Zughy@users.noreply.github.com>
Wed, 27 Jan 2021 18:42:02 +0000 (19:42 +0100)
committerGitHub <noreply@github.com>
Wed, 27 Jan 2021 18:42:02 +0000 (18:42 +0000)
doc/lua_api.txt
src/constants.h
util/wireshark/minetest.lua

index f751eb5121a9e5ab332a77de93bf056033b6e9e3..12ea85345d23ad2c4e1a9dfc2b3cb28deebbca93 100644 (file)
@@ -6221,8 +6221,8 @@ object you are working with still exists.
     * `time_from_last_punch` = time since last punch action of the puncher
     * `direction`: can be `nil`
 * `right_click(clicker)`; `clicker` is another `ObjectRef`
-* `get_hp()`: returns number of hitpoints (2 * number of hearts)
-* `set_hp(hp, reason)`: set number of hitpoints (2 * number of hearts).
+* `get_hp()`: returns number of health points
+* `set_hp(hp, reason)`: set number of health points
     * See reason in register_on_player_hpchange
     * Is limited to the range of 0 ... 65535 (2^16 - 1)
     * For players: HP are also limited by `hp_max` specified in the player's
index c17f3b6af9b7385791f0fb892b06584492997eef..3cc3af09456abfb9e8c5610118d64b247e5f5281 100644 (file)
@@ -89,7 +89,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 // Size of player's main inventory
 #define PLAYER_INVENTORY_SIZE (8 * 4)
 
-// Default maximum hit points of a player
+// Default maximum health points of a player
 #define PLAYER_MAX_HP_DEFAULT 20
 
 // Default maximal breath of a player
index 13cd6d48264411dba093fb255888a87887f29c2e..dd0507c3e7d0083bca3e00769747d9ebce42c441 100644 (file)
@@ -873,7 +873,7 @@ end
 -- TOCLIENT_HP
 
 do
-       local f_hp = ProtoField.uint16("minetest.server.hp", "Hitpoints", base.DEC)
+       local f_hp = ProtoField.uint16("minetest.server.hp", "Health points", base.DEC)
 
        minetest_server_commands[0x33] = {
                "HP", 4,