Add hpregen for medics

This commit is contained in:
rubenwardy 2019-03-22 03:18:45 +00:00
parent 34d891c6c5
commit 72c7563a85
4 changed files with 111 additions and 6 deletions

View file

@ -34,7 +34,7 @@ function hp_bar:on_step(dtime)
end
local hp = math.floor(20 * wielder:get_hp() / wielder:get_properties().hp_max)
local breath = math.floor(20 * wielder:get_breath() / wielder:get_properties().breath_max)
local breath = math.floor(11 * wielder:get_breath() / wielder:get_properties().breath_max)
self.object:set_properties({
textures = {
"health_" .. tostring(hp) .. ".png^breath_" .. tostring(breath) .. ".png",