mirror of
https://github.com/APercy/airutils.git
synced 2025-03-15 16:11:22 +00:00
improve text hp info when damaged
This commit is contained in:
parent
bcf2732e49
commit
7fb54cff3b
1 changed files with 2 additions and 1 deletions
|
@ -276,10 +276,11 @@ function airutils.testImpact(self, velocity, position)
|
|||
fade = 0.0,
|
||||
pitch = 1.0,
|
||||
}, true)
|
||||
|
||||
airutils.setText(self, self.infotext)
|
||||
|
||||
if self.driver_name then
|
||||
local player_name = self.driver_name
|
||||
airutils.setText(self, self.infotext)
|
||||
|
||||
--minetest.chat_send_all('damage: '.. damage .. ' - hp: ' .. self.hp_max)
|
||||
if self.hp_max < 0 then --if acumulated damage is greater than 50, adieu
|
||||
|
|
Loading…
Add table
Reference in a new issue