Add hpregen for medics
This commit is contained in:
parent
34d891c6c5
commit
72c7563a85
4 changed files with 111 additions and 6 deletions
|
@ -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",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue