]> de.git.xonotic.org Git - voretournament/voretournament.git/blobdiff - data/qcsrc/server/t_items.qc
Fix consumable health giving one health unit more than it should
[voretournament/voretournament.git] / data / qcsrc / server / t_items.qc
index 73e333334f4061e6f80b327e3c4b2cadb3cfc2eb..69ff60da05c4514ff6ff66c2b69fbd6e15223a38 100644 (file)
@@ -257,7 +257,7 @@ void Item_Consumable_Think()
                        damage_offset = 1;\r
                        if(cvar("g_balance_vore_digestion_distribute")) // apply distributed digestion damage\r
                                damage_offset /= (1 - (self.predator.stomach_load / self.predator.stomach_maxload) * bound(0, cvar("g_balance_vore_digestion_distribute"), 1));\r
-                       damage = cvar("g_balance_vore_digestion_damage_item") / damage_offset;\r
+                       damage = ceil(cvar("g_balance_vore_digestion_damage_item") / damage_offset);\r
 \r
                        self.health -= damage;\r
                        if(self.predator.health + damage <= self.max_health)\r