1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2025-06-28 14:16:06 +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 c35814348b
commit 916f3cb093
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