1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2025-07-15 06:00:26 +02:00

passage de variables global en local

passage de variables global en local
This commit is contained in:
2015-01-14 17:33:46 +01:00
committed by LeMagnesium
parent 7e58605553
commit 5fb7a6e662
6 changed files with 20 additions and 20 deletions

View File

@ -19,8 +19,8 @@ function hp_bar:on_step(dtime)
self.object:remove()
return
end
hp = wielder:get_hp()
breath = wielder:get_breath()
local hp = wielder:get_hp()
local breath = wielder:get_breath()
self.object:set_properties({textures = {"health_" .. tostring(hp) .. ".png^breath_" .. tostring(breath) .. ".png"}})
end