Skip to content

Commit 44a9510

Browse files
authored
Consistently use "health points" (#10868)
1 parent 8dae7b4 commit 44a9510

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

doc/lua_api.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -6221,8 +6221,8 @@ object you are working with still exists.
62216221
* `time_from_last_punch` = time since last punch action of the puncher
62226222
* `direction`: can be `nil`
62236223
* `right_click(clicker)`; `clicker` is another `ObjectRef`
6224-
* `get_hp()`: returns number of hitpoints (2 * number of hearts)
6225-
* `set_hp(hp, reason)`: set number of hitpoints (2 * number of hearts).
6224+
* `get_hp()`: returns number of health points
6225+
* `set_hp(hp, reason)`: set number of health points
62266226
* See reason in register_on_player_hpchange
62276227
* Is limited to the range of 0 ... 65535 (2^16 - 1)
62286228
* For players: HP are also limited by `hp_max` specified in the player's

src/constants.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
8989
// Size of player's main inventory
9090
#define PLAYER_INVENTORY_SIZE (8 * 4)
9191

92-
// Default maximum hit points of a player
92+
// Default maximum health points of a player
9393
#define PLAYER_MAX_HP_DEFAULT 20
9494

9595
// Default maximal breath of a player

util/wireshark/minetest.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -873,7 +873,7 @@ end
873873
-- TOCLIENT_HP
874874

875875
do
876-
local f_hp = ProtoField.uint16("minetest.server.hp", "Hitpoints", base.DEC)
876+
local f_hp = ProtoField.uint16("minetest.server.hp", "Health points", base.DEC)
877877

878878
minetest_server_commands[0x33] = {
879879
"HP", 4,

0 commit comments

Comments
 (0)