This reverts commit 49f4e6fd47
.
This commit is contained in:
parent
8315d0074a
commit
510ca896cd
6 changed files with 23 additions and 92 deletions
|
@ -24,9 +24,7 @@ minetest.register_craftitem("ctf_bandages:bandage", {
|
|||
local limit = ctf_bandages.heal_percent *
|
||||
object:get_properties().hp_max
|
||||
if hp > 0 and hp < limit then
|
||||
local hp_add = math.random(3,4)
|
||||
ctf.add_heal_assist(pname, hp_add)
|
||||
hp = hp + hp_add
|
||||
hp = hp + math.random(3,4)
|
||||
if hp > limit then
|
||||
hp = limit
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue