sumo_duels/kb.lua

11 lines
360 B
Lua
Raw Permalink Normal View History

2021-03-15 14:56:06 -07:00
minetest.calculate_knockback = function(player, hitter, time_from_last_punch, tool_capabilities, dir, distance, damage)
2021-03-25 15:27:25 -07:00
player:set_hp(20)
2021-03-20 14:54:19 -07:00
if not time_from_last_punch or time_from_last_punch >= 1.5 then
return 1.5
elseif time_from_last_punch <= 1 and time_from_last_punch >= 0.5 then
return 1
else
return 0.5
end
2021-03-15 14:56:06 -07:00
end