mirror of
https://github.com/APercy/airutils
synced 2025-09-18 17:06:23 +02:00
improve text hp info when damaged
This commit is contained in:
parent
bcf2732e49
commit
7fb54cff3b
@ -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…
Reference in New Issue
Block a user