1
0
mirror of https://repo.or.cz/minetest_hbarmor.git synced 2025-06-29 23:00:46 +02:00

Display armor as percentage

This commit is contained in:
Wuzzy
2015-02-24 02:52:26 +01:00
parent 7acd5b9d28
commit 5d72f4cd6a
2 changed files with 5 additions and 4 deletions

View File

@ -28,7 +28,7 @@ function hud.set_armor(player_name, ges_state, items)
lvl = 0
end
hud.armor[player_name] = lvl* (items * (20 / max_items))
hud.armor[player_name] = lvl* (items * (100 / max_items))
end
end