From 954afb7516b1f0c3c14f91f8f469dd85d31afdc9 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Sun, 8 Aug 2021 02:38:15 +0200 Subject: [PATCH] Heal NPCs a bit faster --- mods/mobs/mob_npc.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/mobs/mob_npc.lua b/mods/mobs/mob_npc.lua index cb8dcd5..dcdc28c 100644 --- a/mods/mobs/mob_npc.lua +++ b/mods/mobs/mob_npc.lua @@ -121,7 +121,7 @@ for _, npc_type_table in pairs(npc_types) do do_custom = function(self) -- Slowly heal NPC over time self.healing_counter = self.healing_counter + 1 - if self.healing_counter >= 10 then + if self.healing_counter >= 7 then local hp = self.object:get_hp() hp = math.min(20, hp + 1) self.object:set_hp(hp)