Revert "Add kill assists (#755)" (#781)

This reverts commit 49f4e6fd47.
This commit is contained in:
LoneWolfHT 2021-02-05 15:46:29 -08:00 committed by GitHub
parent 8315d0074a
commit 510ca896cd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 23 additions and 92 deletions

View file

@ -153,7 +153,6 @@ minetest.register_globalstep(function(dtime)
if player then
player:hud_remove(potential_cowards[k].hud or 0)
ctf.clear_assists(k)
end
potential_cowards[k] = nil

View file

@ -16,10 +16,8 @@ local function regen_all()
local newhp = oldhp + hpregen.amount
if newhp > player:get_properties().hp_max then
newhp = player:get_properties().hp_max
ctf.clear_assists(player:get_player_name())
end
if oldhp ~= newhp then
ctf.add_heal_assist(player:get_player_name(), hpregen.amount)
player:set_hp(newhp)
end
end

View file

@ -117,7 +117,6 @@ minetest.register_globalstep(function(dtime)
if pstat then
local hp = player:get_hp()
if hp < pstat.regen_max then
ctf.add_heal_assist(name, regen_step)
player:set_hp(math.min(hp + regen_step, pstat.regen_max))
else
stop_healing(player)